Changeset 21239 for lang/vim/ruby
- Timestamp:
- 10/13/08 16:34:13 (5 years ago)
- Files:
-
- 1 modified
-
lang/vim/ruby/lang8.vim (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/vim/ruby/lang8.vim
r14722 r21239 27 27 28 28 def post(title, body) 29 page = @agent.get "http://lang-8.com/?m=pc&l=en&a=page_h_diary_add" 30 form = page.forms[0] 29 page = @agent.get "http://lang-8.com/?a=page_h_diary_add" 30 form = page.forms.action('./').first 31 form.lang_option = '2-2' # Language: English 31 32 form.subject = title 32 33 form.body = body 34 form.radiobuttons.value('5').check # Show with all Internet Users 33 35 page = @agent.submit form 34 page = @agent.submit page.forms [0]36 page = @agent.submit page.forms.action('./').first 35 37 end 36 38 37 39 def get_latest 38 40 page = @agent.get 'http://lang-8.com/?m=pc&a=page_fh_diary_list&l=en' 39 [ @agent.get(page.links[43].uri).title,40 "http://lang-8.com/" << page.links[43].uri.to_s.toutf8[2..-1]]41 title = (page/'.heading').first.innerText 42 [title, "http://lang-8.com/" << page.links[41].uri.to_s.toutf8[2..-1]] 41 43 end 42 44 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)