mikedamage-ruby_tube 0.2.1 → 0.2.3

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/ruby_tube.rb +1 -25
  3. metadata +4 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.3
data/lib/ruby_tube.rb CHANGED
@@ -26,18 +26,6 @@ class RubyTube < YTClient
26
26
  :comment_count => (entry/"gd:comments").search("gd:feedlink").attr("countHint").to_i,
27
27
  :published_at => Time.parse((entry/"published").text),
28
28
  :updated_at => Time.parse((entry/"updated").text),
29
- :thumbnails => {
30
- :small => {
31
- :url => (entry/"media:thumbnail[@url$='default.jpg']").attr("url"),
32
- :width => 120,
33
- :height => 90
34
- },
35
- :large => {
36
- :url => (entry/"media:thumbnail[@url$='hqdefault.jpg]").attr("url"),
37
- :width => 480,
38
- :height => 360
39
- }
40
- },
41
29
  :view_count => (entry/"yt:statistics").empty? ? 0 : (entry/"yt:statistics").attr("viewCount"),
42
30
  :favorite_count => (entry/"yt:statistics").empty? ? 0 : (entry/"yt:statistics").attr("favoriteCount"),
43
31
  :comments => comments((entry/"yt:videoid").text),
@@ -65,18 +53,6 @@ class RubyTube < YTClient
65
53
  :comment_count => (entry/"gd:comments").search("gd:feedlink").attr("countHint").to_i,
66
54
  :published_at => Time.parse((entry/"published").text),
67
55
  :updated_at => Time.parse((entry/"updated").text),
68
- :thumbnails => {
69
- :small => {
70
- :url => (entry/"media:thumbnail[@url$='default.jpg']").attr("url"),
71
- :width => 120,
72
- :height => 90
73
- },
74
- :large => {
75
- :url => (entry/"media:thumbnail[@url$='hqdefault.jpg]").attr("url"),
76
- :width => 480,
77
- :height => 360
78
- }
79
- },
80
56
  :view_count => (entry/"yt:statistics").empty? ? 0 : (entry/"yt:statistics").attr("viewCount"),
81
57
  :favorite_count => (entry/"yt:statistics").empty? ? 0 : (entry/"yt:statistics").attr("favoriteCount"),
82
58
  :comments => comments((entry/"yt:videoid").text),
@@ -161,7 +137,7 @@ class RubyTube < YTClient
161
137
  private
162
138
  def process_thumbnail_urls(hpricot)
163
139
  thumbs = (hpricot/"media:thumbnail")
164
- OpenStruct.new({:big => thumbs.last.attr("url"), :small => thumbs.first.attr("url")})
140
+ OpenStruct.new({:big => thumbs.last["url"], :small => thumbs.first["url"]})
165
141
  end
166
142
 
167
143
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikedamage-ruby_tube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Green
@@ -69,6 +69,7 @@ files:
69
69
  - test/yt_client_test.rb
70
70
  has_rdoc: false
71
71
  homepage: http://github.com/mikedamage/ruby_tube
72
+ licenses:
72
73
  post_install_message:
73
74
  rdoc_options:
74
75
  - --charset=UTF-8
@@ -89,10 +90,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
90
  requirements: []
90
91
 
91
92
  rubyforge_project:
92
- rubygems_version: 1.2.0
93
+ rubygems_version: 1.3.5
93
94
  signing_key:
94
95
  specification_version: 3
95
- summary: Custom Ruby library for working with YouTube videos, for the Acer Timeline contest project
96
+ summary: Simple Ruby library for uploading and finding YouTube videos.
96
97
  test_files:
97
98
  - test/ruby_tube_test.rb
98
99
  - test/test_helper.rb