- Timestamp:
- 10/09/08 00:56:40 (3 months ago)
- Location:
- lang/ruby/nicovideo_gem/trunk
- Files:
-
- 4 modified
-
ChangeLog (modified) (1 diff)
-
lib/nicovideo/mechanize-ext.rb (modified) (1 diff)
-
lib/nicovideo/page.rb (modified) (1 diff)
-
lib/nicovideo/version.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/nicovideo_gem/trunk/ChangeLog
r15908 r21009 1 2008-10-09 version 0.1.7 2 3 * fixed subtitle of Nicovideo (summer -> autumn) 4 * fixed mechanize-ext for mechanize 0.8.4 5 6 2008-07-23 version 0.1.6 7 8 * added forgotten file to be added 9 1 10 2008-07-17 version 0.1.5 2 11 -
lang/ruby/nicovideo_gem/trunk/lib/nicovideo/mechanize-ext.rb
r8188 r21009 7 7 def post_data(url, data='', enctype=nil) 8 8 cur_page = current_page || Page.new( nil, {'content-type'=>'text/html'}) 9 9 10 request_data = data 10 abs_url = to_absolute_uri(url, cur_page)11 request = fetch_request(abs_url, :post)12 request.add_field('Content-Length', request_data.size.to_s)13 11 14 page = fetch_page(abs_url, request, cur_page, [request_data]) 15 add_to_history(page) 12 log.debug("query: #{ request_data.inspect }") if log 13 14 # fetch the page 15 page = fetch_page( :uri => url, 16 :referer => cur_page, 17 :verb => :post, 18 :params => [request_data], 19 :headers => { 20 'Content-Length' => request_data.size.to_s, 21 }) 22 add_to_history(page) 16 23 page 17 24 end -
lang/ruby/nicovideo_gem/trunk/lib/nicovideo/page.rb
r15907 r21009 7 7 8 8 BASE_URL = 'http://www.nicovideo.jp' 9 BASE_TITLE1 = '‐ニコニコ動画\( 夏\)'.toutf810 BASE_TITLE2 = 'ニコニコ動画\( 夏\)‐'.toutf89 BASE_TITLE1 = '‐ニコニコ動画\(秋\)'.toutf8 10 BASE_TITLE2 = 'ニコニコ動画\(秋\)‐'.toutf8 11 11 12 12 def initialize agent -
lang/ruby/nicovideo_gem/trunk/lib/nicovideo/version.rb
r16144 r21009 3 3 MAJOR = 0 4 4 MINOR = 1 5 TINY = 65 TINY = 7 6 6 7 7 STRING = [MAJOR, MINOR, TINY].join('.')
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)