howcast 0.4.13 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.4.14 2010-03-10
2
+
3
+ * Add filename to video object
4
+
1
5
  == 0.4.13 2010-03-08
2
6
 
3
7
  * add support for category hierarchy, ingredients, markers, and related videos for video object
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.13
1
+ 0.4.14
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.4.13"
8
+ s.version = "0.4.14"
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-03-08}
12
+ s.date = %q{2010-03-10}
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.4.13.gem",
34
35
  "howcast.gemspec",
35
36
  "lib/howcast.rb",
36
37
  "lib/howcast/client.rb",
@@ -55,7 +56,7 @@ Gem::Specification.new do |s|
55
56
  s.homepage = %q{http://github.com/howcast/howcast-gem}
56
57
  s.rdoc_options = ["--charset=UTF-8"]
57
58
  s.require_paths = ["lib"]
58
- s.rubygems_version = %q{1.3.4}
59
+ s.rubygems_version = %q{1.3.6}
59
60
  s.summary = %q{Howcast API Ruby Wrapper}
60
61
  s.test_files = [
61
62
  "spec/howcast/client/base_spec.rb",
@@ -38,7 +38,8 @@ class Howcast::Client
38
38
  extend WatchAttrAccessors
39
39
  attr_accessor :id, :title, :permalink, :thumbnail_url, :category_id,
40
40
  :views, :username, :duration, :created_at, :rating, :description, :width, :height,
41
- :badges, :easy_steps, :embed, :category_hierarchy, :ingredients, :markers, :related_videos
41
+ :badges, :easy_steps, :embed, :category_hierarchy, :ingredients, :markers, :related_videos,
42
+ :filename
42
43
 
43
44
  # Creates a new Video object which is used to encapsulate all the attributes available
44
45
  # from the Howcast Video API
@@ -68,6 +68,10 @@ describe Howcast::Client, "video" do
68
68
  @hc.video(2).permalink.should == "http://www.howcast.com/videos/233-How-To-Do-a-Noble-Pose"
69
69
  end
70
70
 
71
+ it "should set the filename attribute in the video model response" do
72
+ @hc.video(2).filename.should == "/system/videos/2/33/02/233.flv"
73
+ end
74
+
71
75
  it "should set the category hierarchy in the video model response" do
72
76
  hierarchy = @hc.video(2).category_hierarchy
73
77
  hierarchy.size.should == 3
@@ -89,6 +89,7 @@ module XmlFixturesHelper
89
89
  <easy-steps>true</easy-steps>
90
90
  <badges>Howcast Studios</badges>
91
91
  <title>How To Do a Noble Pose</title>
92
+ <filename>/system/videos/2/33/02/233.flv</filename>
92
93
  <embed>
93
94
  <![CDATA[<object width="425" height="352" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="howcastplayer"><param name="movie" value="http://www.howcast.com/flash/howcast_player.swf?file=233"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.howcast.com/flash/howcast_player.swf?file=233" type="application/x-shockwave-flash" width="425" height="352" allowFullScreen="true" allowScriptAccess="always" ></embed></object>]]>
94
95
  </embed>
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: howcast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 4
8
+ - 14
9
+ version: 0.4.14
5
10
  platform: ruby
6
11
  authors:
7
12
  - Jingshen Jimmy Zhang
@@ -10,29 +15,33 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2010-03-08 00:00:00 -08:00
18
+ date: 2010-03-10 00:00:00 -08:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
22
  name: hpricot
18
- type: :runtime
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
21
25
  requirements:
22
26
  - - ">="
23
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
24
30
  version: "0"
25
- version:
31
+ type: :runtime
32
+ version_requirements: *id001
26
33
  - !ruby/object:Gem::Dependency
27
34
  name: rspec
28
- type: :development
29
- version_requirement:
30
- version_requirements: !ruby/object:Gem::Requirement
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
31
37
  requirements:
32
38
  - - ">="
33
39
  - !ruby/object:Gem::Version
40
+ segments:
41
+ - 0
34
42
  version: "0"
35
- version:
43
+ type: :development
44
+ version_requirements: *id002
36
45
  description: " Howcast offers an Application Programming Interface (API) which allows\n developers to build applications that interface with Howcast. The Howcast\n API is RESTful (REpresentational State Transfer) and users of this API will\n be able: 1) Retreive detailed information about a single video, including\n metadata such as title, description, video views, rating etc; 2) Retrieve a\n list of videos restricted by a set of filters offered by Howcast and sorted\n using several metrics that you can specify (most recent, most views, etc);\n 3) Search for video; 4) And much more. Note: Before you can use our APIs,\n you must register an API key, that is submitted with each request.\n"
37
46
  email: support@howcast.com
38
47
  executables: []
@@ -48,6 +57,7 @@ files:
48
57
  - README.markdown
49
58
  - Rakefile
50
59
  - VERSION
60
+ - howcast-0.4.13.gem
51
61
  - howcast.gemspec
52
62
  - lib/howcast.rb
53
63
  - lib/howcast/client.rb
@@ -81,18 +91,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
91
  requirements:
82
92
  - - ">="
83
93
  - !ruby/object:Gem::Version
94
+ segments:
95
+ - 0
84
96
  version: "0"
85
- version:
86
97
  required_rubygems_version: !ruby/object:Gem::Requirement
87
98
  requirements:
88
99
  - - ">="
89
100
  - !ruby/object:Gem::Version
101
+ segments:
102
+ - 0
90
103
  version: "0"
91
- version:
92
104
  requirements: []
93
105
 
94
106
  rubyforge_project:
95
- rubygems_version: 1.3.4
107
+ rubygems_version: 1.3.6
96
108
  signing_key:
97
109
  specification_version: 3
98
110
  summary: Howcast API Ruby Wrapper