howcast 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/howcast-0.7.3.gem +0 -0
- data/howcast.gemspec +3 -2
- data/lib/howcast/client/base.rb +3 -0
- data/spec/howcast/client/homepage_spec.rb +1 -0
- metadata +4 -3
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.4
|
data/howcast-0.7.3.gem
ADDED
Binary file
|
data/howcast.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{howcast}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jingshen Jimmy Zhang", "Ian Smith-Heisters"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-05}
|
13
13
|
s.description = %q{ Howcast offers an Application Programming Interface (API) which allows
|
14
14
|
developers to build applications that interface with Howcast. The Howcast
|
15
15
|
API is RESTful (REpresentational State Transfer) and users of this API will
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"README.markdown",
|
32
32
|
"Rakefile",
|
33
33
|
"VERSION",
|
34
|
+
"howcast-0.7.3.gem",
|
34
35
|
"howcast.gemspec",
|
35
36
|
"lib/howcast.rb",
|
36
37
|
"lib/howcast/client.rb",
|
data/lib/howcast/client/base.rb
CHANGED
@@ -133,6 +133,9 @@ class Howcast::Client
|
|
133
133
|
hash[attribute] = related_videos_for(xml) unless xml.at(node_name).nil?
|
134
134
|
elsif node_name == "videos"
|
135
135
|
hash[attribute] = videos_for(xml) unless xml.at(node_name).nil?
|
136
|
+
elsif node_name == "playlist-thumbnail-url"
|
137
|
+
# TO DO: Resolve this hack, xml attributes aren't named consistently
|
138
|
+
hash[attribute] = !xml.at(node_name).nil? ? xml.at(node_name).inner_text.strip : xml.at("thumbnail-url").inner_text.strip
|
136
139
|
else
|
137
140
|
hash[attribute] = !xml.at(node_name).nil? ? xml.at(node_name).inner_text.strip : ""
|
138
141
|
end
|
@@ -49,5 +49,6 @@ describe Howcast::Client, "homepage" do
|
|
49
49
|
playlists = @hc.homepage.playlists
|
50
50
|
playlists.size.should == 2
|
51
51
|
playlists[0].title.should == "Pranks For the Memories"
|
52
|
+
playlists[0].playlist_thumbnail_url.should == "http://img.howcast.com/thumbnails/2721/ppn_milkhouse_buried_cubicle_prank_sd_medium.jpg"
|
52
53
|
end
|
53
54
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 4
|
9
|
+
version: 0.7.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jingshen Jimmy Zhang
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-04-
|
18
|
+
date: 2010-04-05 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- README.markdown
|
58
58
|
- Rakefile
|
59
59
|
- VERSION
|
60
|
+
- howcast-0.7.3.gem
|
60
61
|
- howcast.gemspec
|
61
62
|
- lib/howcast.rb
|
62
63
|
- lib/howcast/client.rb
|