niconico 1.1.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3d27562af52b7189937026da8ae6814c512e8ff5
4
+ data.tar.gz: bc3e7f6cad8c7950c55231f6434abb18552474b3
5
+ SHA512:
6
+ metadata.gz: 319b03bbc138554b2241be3580ad22eb89b10f4c55c316f89864073a3ae24e9ff7592ee46a02a52a5907124f1bd60de3d022a2e962d16a8a0fb1919704cb1d57
7
+ data.tar.gz: 25a64f57036c164c62288fbc84a510fca7f7a38c5c80d7615b6650b4f41f47e270151d7303071ea6b01e124247d5b7d83d26c907a836d95446c9450738a0d6f0
@@ -1,3 +1,3 @@
1
1
  class Niconico
2
- VERSION = "1.1.3"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -49,9 +49,11 @@ class Niconico
49
49
  end
50
50
  getflv = Hash[@agent.get_file("#{Niconico::URL[:getflv]}?v=#{@thread_id}").scan(/([^&]+)=([^&]+)/).map{|(k,v)| [k.to_sym,CGI.unescape(v)] }]
51
51
 
52
- @title = @page.at("#video_title").inner_text
53
- @description = @page.at("#itab_description p").inner_text
54
- @description_raw = @page.at("#itab_description p").inner_html
52
+ t = @page.at("#videoTitle")
53
+ @title = t.inner_text if !t.nil?
54
+ d = @page.at("div#videoComment>div.videoDescription")
55
+ @description = d.inner_html if !d.nil?
56
+
55
57
  @video_url = getflv[:url]
56
58
  @eco = !(/low$/ =~ @video_url).nil?
57
59
  @type = case @video_url.match(/^http:\/\/(.+\.)?nicovideo\.jp\/smile\?(.+?)=.*$/).to_a[2]
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: niconico
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Shota Fukumori (sora_h)
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-11-17 00:00:00.000000000 Z
11
+ date: 2013-06-23 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: wrapper of Mechanize, optimized for nicovideo. :)
15
14
  email:
@@ -30,27 +29,26 @@ files:
30
29
  - niconico.gemspec
31
30
  homepage: ''
32
31
  licenses: []
32
+ metadata: {}
33
33
  post_install_message:
34
34
  rdoc_options: []
35
35
  require_paths:
36
36
  - lib
37
37
  required_ruby_version: !ruby/object:Gem::Requirement
38
- none: false
39
38
  requirements:
40
- - - ! '>='
39
+ - - '>='
41
40
  - !ruby/object:Gem::Version
42
41
  version: '0'
43
42
  required_rubygems_version: !ruby/object:Gem::Requirement
44
- none: false
45
43
  requirements:
46
- - - ! '>='
44
+ - - '>='
47
45
  - !ruby/object:Gem::Version
48
46
  version: '0'
49
47
  requirements: []
50
48
  rubyforge_project: niconico
51
- rubygems_version: 1.8.11
49
+ rubygems_version: 2.0.0
52
50
  signing_key:
53
- specification_version: 3
51
+ specification_version: 4
54
52
  summary: wrapper of Mechanize, optimized for nicovideo.
55
53
  test_files: []
56
54
  has_rdoc: