getvideo 0.0.4 → 0.0.5

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.
@@ -7,12 +7,13 @@ describe Getvideo::Youtube do
7
7
  let(:youtube_s){ Getvideo::Youtube.new "http://youtu.be/ylLzyHk54Z0" }
8
8
  let(:youtube_id){ Getvideo::Youtube.new "ylLzyHk54Z0" }
9
9
  let(:youtube_swf){ Getvideo::Youtube.new "http://www.youtube.com/v/ylLzyHk54Z0" }
10
+ let(:youtube_list_id){ Getvideo::Youtube.new " https://www.youtube.com/watch?v=e87-tv619lU&index=2&list=PL4B081940671C9C87" }
10
11
 
11
12
  describe "#id" do
12
13
  it "should return id" do
13
14
  youtube.id.should == "ylLzyHk54Z0"
14
15
  youtube2.id.should == "S0o4-efO9x4"
15
- youtube3.id.should == "pI47zdMhX3I"
16
+ youtube3.id.should == "5AhMZ04H094"
16
17
  youtube_swf.id.should == "ylLzyHk54Z0"
17
18
  youtube_s.id.should == "ylLzyHk54Z0"
18
19
  youtube_id.id.should == "ylLzyHk54Z0"
@@ -40,10 +41,13 @@ describe Getvideo::Youtube do
40
41
  end
41
42
 
42
43
  describe "#m3u8" do
43
- it{ youtube.m3u8.should match(/youtube\.com/)}
44
+ it{ youtube.m3u8.should match(/googlevideo\.com/)}
44
45
  end
45
46
 
46
47
  describe "media" do
47
- it{ youtube.media["flv"][0].should match(/youtube\.com/)}
48
+ it{
49
+ youtube.media["flv"][0].should match(/googlevideo\.com/)
50
+ youtube_list_id.media.count.should eq(4)
51
+ }
48
52
  end
49
53
  end
metadata CHANGED
@@ -1,55 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getvideo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ye.li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-29 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_xml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: nokogiri
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - '>='
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - '>='
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
69
  description: get video
@@ -59,8 +73,8 @@ executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
62
- - .gitignore
63
- - .rspec
76
+ - ".gitignore"
77
+ - ".rspec"
64
78
  - Gemfile
65
79
  - Guardfile
66
80
  - LICENSE
@@ -69,9 +83,9 @@ files:
69
83
  - getvideo.gemspec
70
84
  - lib/getvideo.rb
71
85
  - lib/getvideo/56.rb
72
- - lib/getvideo/iask.rb
73
86
  - lib/getvideo/iqiyi.rb
74
87
  - lib/getvideo/ku6.rb
88
+ - lib/getvideo/sina.rb
75
89
  - lib/getvideo/sohu.rb
76
90
  - lib/getvideo/tudou.rb
77
91
  - lib/getvideo/version.rb
@@ -80,9 +94,9 @@ files:
80
94
  - lib/getvideo/youtube.rb
81
95
  - spec/56_spec.rb
82
96
  - spec/getvideo_spec.rb
83
- - spec/iask_spec.rb
84
97
  - spec/iqiyi_spec.rb
85
98
  - spec/ku6_spec.rb
99
+ - spec/sina_spec.rb
86
100
  - spec/sohu_spec.rb
87
101
  - spec/spec_helper.rb
88
102
  - spec/tudou_spec.rb
@@ -98,29 +112,28 @@ require_paths:
98
112
  - lib
99
113
  required_ruby_version: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - '>='
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  required_rubygems_version: !ruby/object:Gem::Requirement
105
119
  requirements:
106
- - - '>='
120
+ - - ">="
107
121
  - !ruby/object:Gem::Version
108
122
  version: '0'
109
123
  requirements: []
110
124
  rubyforge_project:
111
- rubygems_version: 2.0.3
125
+ rubygems_version: 2.2.2
112
126
  signing_key:
113
127
  specification_version: 4
114
128
  summary: get video
115
129
  test_files:
116
130
  - spec/56_spec.rb
117
131
  - spec/getvideo_spec.rb
118
- - spec/iask_spec.rb
119
132
  - spec/iqiyi_spec.rb
120
133
  - spec/ku6_spec.rb
134
+ - spec/sina_spec.rb
121
135
  - spec/sohu_spec.rb
122
136
  - spec/spec_helper.rb
123
137
  - spec/tudou_spec.rb
124
138
  - spec/youku_spec.rb
125
139
  - spec/youtube_spec.rb
126
- has_rdoc: