youtube_it 2.1.10 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/youtube_it/parser.rb +3 -3
- data/lib/youtube_it/version.rb +1 -1
- metadata +156 -133
data/lib/youtube_it/parser.rb
CHANGED
@@ -477,8 +477,8 @@ class YouTubeIt
|
|
477
477
|
:name => thumb_element["name"])
|
478
478
|
end
|
479
479
|
|
480
|
-
rating_element = entry.at_xpath("gd:rating")
|
481
|
-
extended_rating_element = entry.at_xpath("yt:rating")
|
480
|
+
rating_element = entry.at_xpath("gd:rating") rescue nil
|
481
|
+
extended_rating_element = entry.at_xpath("yt:rating") rescue nil
|
482
482
|
|
483
483
|
rating = nil
|
484
484
|
if rating_element
|
@@ -503,7 +503,7 @@ class YouTubeIt
|
|
503
503
|
view_count, favorite_count = 0,0
|
504
504
|
end
|
505
505
|
|
506
|
-
comment_feed = entry.at_xpath('gd:comments/gd:feedLink[@rel="http://gdata.youtube.com/schemas/2007#comments"]')
|
506
|
+
comment_feed = entry.at_xpath('gd:comments/gd:feedLink[@rel="http://gdata.youtube.com/schemas/2007#comments"]') rescue nil
|
507
507
|
comment_count = comment_feed ? comment_feed['countHint'].to_i : 0
|
508
508
|
|
509
509
|
access_control = entry.xpath('yt:accessControl').map do |e|
|
data/lib/youtube_it/version.rb
CHANGED
metadata
CHANGED
@@ -1,154 +1,177 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: youtube_it
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.1.12
|
4
5
|
prerelease:
|
5
|
-
version: 2.1.10
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
|
7
|
+
authors:
|
8
|
+
- kylejginavan
|
9
|
+
- chebyte
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
13
|
+
date: 2013-02-01 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: nokogiri
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.5.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 1.5.2
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: oauth
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 0.4.4
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.4.4
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: oauth2
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.6'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.6'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: simple_oauth
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 0.1.5
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.1.5
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: faraday
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0.8'
|
87
|
+
type: :runtime
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0.8'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: builder
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
82
111
|
description: Upload, delete, update, comment on youtube videos all from one gem.
|
83
|
-
email:
|
84
|
-
|
85
|
-
|
112
|
+
email:
|
113
|
+
- kylejginavan@gmail.com
|
114
|
+
- maurotorres@gmail.com
|
86
115
|
executables: []
|
87
|
-
|
88
116
|
extensions: []
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
- youtube_it.gemspec
|
117
|
+
extra_rdoc_files:
|
118
|
+
- README.rdoc
|
119
|
+
files:
|
120
|
+
- lib/youtube_it/chain_io.rb
|
121
|
+
- lib/youtube_it/client.rb
|
122
|
+
- lib/youtube_it/middleware/faraday_authheader.rb
|
123
|
+
- lib/youtube_it/middleware/faraday_oauth.rb
|
124
|
+
- lib/youtube_it/middleware/faraday_oauth2.rb
|
125
|
+
- lib/youtube_it/middleware/faraday_youtubeit.rb
|
126
|
+
- lib/youtube_it/model/activity.rb
|
127
|
+
- lib/youtube_it/model/author.rb
|
128
|
+
- lib/youtube_it/model/caption.rb
|
129
|
+
- lib/youtube_it/model/category.rb
|
130
|
+
- lib/youtube_it/model/comment.rb
|
131
|
+
- lib/youtube_it/model/contact.rb
|
132
|
+
- lib/youtube_it/model/content.rb
|
133
|
+
- lib/youtube_it/model/message.rb
|
134
|
+
- lib/youtube_it/model/playlist.rb
|
135
|
+
- lib/youtube_it/model/rating.rb
|
136
|
+
- lib/youtube_it/model/subscription.rb
|
137
|
+
- lib/youtube_it/model/thumbnail.rb
|
138
|
+
- lib/youtube_it/model/user.rb
|
139
|
+
- lib/youtube_it/model/video.rb
|
140
|
+
- lib/youtube_it/parser.rb
|
141
|
+
- lib/youtube_it/record.rb
|
142
|
+
- lib/youtube_it/request/base_search.rb
|
143
|
+
- lib/youtube_it/request/error.rb
|
144
|
+
- lib/youtube_it/request/standard_search.rb
|
145
|
+
- lib/youtube_it/request/user_search.rb
|
146
|
+
- lib/youtube_it/request/video_search.rb
|
147
|
+
- lib/youtube_it/request/video_upload.rb
|
148
|
+
- lib/youtube_it/response/video_search.rb
|
149
|
+
- lib/youtube_it/version.rb
|
150
|
+
- lib/youtube_it.rb
|
151
|
+
- README.rdoc
|
152
|
+
- youtube_it.gemspec
|
126
153
|
homepage: http://github.com/kylejginavan/youtube_it
|
127
154
|
licenses: []
|
128
|
-
|
129
155
|
post_install_message:
|
130
156
|
rdoc_options: []
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
require_paths:
|
158
|
+
- lib
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
160
|
none: false
|
136
|
-
requirements:
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ! '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
166
|
none: false
|
142
|
-
requirements:
|
143
|
-
|
144
|
-
|
145
|
-
|
167
|
+
requirements:
|
168
|
+
- - ! '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
146
171
|
requirements: []
|
147
|
-
|
148
172
|
rubyforge_project:
|
149
|
-
rubygems_version: 1.8.
|
173
|
+
rubygems_version: 1.8.23
|
150
174
|
signing_key:
|
151
175
|
specification_version: 3
|
152
176
|
summary: The most complete Ruby wrapper for youtube api's
|
153
177
|
test_files: []
|
154
|
-
|