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.
@@ -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|
@@ -1,4 +1,4 @@
1
1
  class YouTubeIt
2
- VERSION = '2.1.10'
2
+ VERSION = '2.1.12'
3
3
  end
4
4
 
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
- - kylejginavan
9
- - chebyte
7
+ authors:
8
+ - kylejginavan
9
+ - chebyte
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2013-01-10 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: nokogiri
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ~>
23
- - !ruby/object:Gem::Version
24
- version: 1.5.2
25
- type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: oauth
29
- prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ~>
34
- - !ruby/object:Gem::Version
35
- version: 0.4.4
36
- type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: oauth2
40
- prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: "0.6"
47
- type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: simple_oauth
51
- prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: 0.1.5
58
- type: :runtime
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: faraday
62
- prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
64
- none: false
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: "0.8"
69
- type: :runtime
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: builder
73
- prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: "0"
80
- type: :runtime
81
- version_requirements: *id006
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
- - kylejginavan@gmail.com
85
- - maurotorres@gmail.com
112
+ email:
113
+ - kylejginavan@gmail.com
114
+ - maurotorres@gmail.com
86
115
  executables: []
87
-
88
116
  extensions: []
89
-
90
- extra_rdoc_files:
91
- - README.rdoc
92
- files:
93
- - lib/youtube_it.rb
94
- - lib/youtube_it/chain_io.rb
95
- - lib/youtube_it/client.rb
96
- - lib/youtube_it/parser.rb
97
- - lib/youtube_it/record.rb
98
- - lib/youtube_it/version.rb
99
- - lib/youtube_it/middleware/faraday_authheader.rb
100
- - lib/youtube_it/middleware/faraday_oauth.rb
101
- - lib/youtube_it/middleware/faraday_oauth2.rb
102
- - lib/youtube_it/middleware/faraday_youtubeit.rb
103
- - lib/youtube_it/model/activity.rb
104
- - lib/youtube_it/model/author.rb
105
- - lib/youtube_it/model/caption.rb
106
- - lib/youtube_it/model/category.rb
107
- - lib/youtube_it/model/comment.rb
108
- - lib/youtube_it/model/contact.rb
109
- - lib/youtube_it/model/content.rb
110
- - lib/youtube_it/model/message.rb
111
- - lib/youtube_it/model/playlist.rb
112
- - lib/youtube_it/model/rating.rb
113
- - lib/youtube_it/model/subscription.rb
114
- - lib/youtube_it/model/thumbnail.rb
115
- - lib/youtube_it/model/user.rb
116
- - lib/youtube_it/model/video.rb
117
- - lib/youtube_it/request/base_search.rb
118
- - lib/youtube_it/request/error.rb
119
- - lib/youtube_it/request/standard_search.rb
120
- - lib/youtube_it/request/user_search.rb
121
- - lib/youtube_it/request/video_search.rb
122
- - lib/youtube_it/request/video_upload.rb
123
- - lib/youtube_it/response/video_search.rb
124
- - README.rdoc
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
- require_paths:
133
- - lib
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
- - !ruby/object:Gem::Version
139
- version: "0"
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
- - !ruby/object:Gem::Version
145
- version: "0"
167
+ requirements:
168
+ - - ! '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
146
171
  requirements: []
147
-
148
172
  rubyforge_project:
149
- rubygems_version: 1.8.15
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
-