vimeo 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/lib/vimeo/advanced/video.rb +10 -0
- data/test/fixtures/advanced/video/set_preset.json +4 -0
- data/test/vimeo/advanced/videos_test.rb +9 -0
- data/vimeo.gemspec +7 -7
- metadata +7 -8
data/VERSION.yml
CHANGED
data/lib/vimeo/advanced/video.rb
CHANGED
@@ -125,6 +125,16 @@ module Vimeo
|
|
125
125
|
"vimeo.videos.comments.getList",
|
126
126
|
:required => [:video_id],
|
127
127
|
:optional => [:page, :per_page]
|
128
|
+
|
129
|
+
# embed
|
130
|
+
# getPresets has a bug right now: the response is blank http://www.vimeo.com/forums/topic:32411
|
131
|
+
# create_api_method :get_presets,
|
132
|
+
# "vimeo.videos.embed.getPresets",
|
133
|
+
# :optional => [:page, :per_page]
|
134
|
+
|
135
|
+
create_api_method :set_preset,
|
136
|
+
"vimeo.videos.embed.setPreset",
|
137
|
+
:required => [:preset_id, :video_id]
|
128
138
|
|
129
139
|
end # Video
|
130
140
|
end # Advanced
|
@@ -198,6 +198,15 @@ class VideoTest < Test::Unit::TestCase
|
|
198
198
|
|
199
199
|
assert_equal "ok", response["stat"]
|
200
200
|
end
|
201
|
+
|
202
|
+
# embed
|
203
|
+
|
204
|
+
should "be able to set a preset" do
|
205
|
+
stub_post("?preset_id=preset_id&video_id=video_id&api_key=12345&format=json&method=vimeo.videos.embed.getPresets&api_sig=ed4c2455eabcaad041d44b659b002ff8", "advanced/video/set_preset.json")
|
206
|
+
response = @video.set_preset("preset_id", "video_id")
|
207
|
+
|
208
|
+
assert_equal "ok", response["stat"]
|
209
|
+
end
|
201
210
|
|
202
211
|
end
|
203
212
|
end
|
data/vimeo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vimeo}
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{2011-
|
11
|
+
s.authors = [%q{Matt Hooks}]
|
12
|
+
s.date = %q{2011-09-06}
|
13
13
|
s.description = %q{A full featured Ruby implementation of the Vimeo API.}
|
14
14
|
s.email = %q{matthooks@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -131,6 +131,7 @@ Gem::Specification.new do |s|
|
|
131
131
|
"test/fixtures/advanced/video/search.json",
|
132
132
|
"test/fixtures/advanced/video/set_description.json",
|
133
133
|
"test/fixtures/advanced/video/set_like.json",
|
134
|
+
"test/fixtures/advanced/video/set_preset.json",
|
134
135
|
"test/fixtures/advanced/video/set_privacy.json",
|
135
136
|
"test/fixtures/advanced/video/set_title.json",
|
136
137
|
"test/fixtures/advanced/video_embed/get_presets.json",
|
@@ -185,10 +186,10 @@ Gem::Specification.new do |s|
|
|
185
186
|
"vimeo.gemspec"
|
186
187
|
]
|
187
188
|
s.homepage = %q{http://github.com/matthooks/vimeo}
|
188
|
-
s.rdoc_options = [
|
189
|
-
s.require_paths = [
|
189
|
+
s.rdoc_options = [%q{--main}, %q{README.rdoc}, %q{--inline-source}, %q{--charset=UTF-8}]
|
190
|
+
s.require_paths = [%q{lib}]
|
190
191
|
s.rubyforge_project = %q{vimeo}
|
191
|
-
s.rubygems_version = %q{1.
|
192
|
+
s.rubygems_version = %q{1.8.5}
|
192
193
|
s.summary = %q{A full featured Ruby implementation of the Vimeo API.}
|
193
194
|
s.test_files = [
|
194
195
|
"test/test_helper.rb",
|
@@ -217,7 +218,6 @@ Gem::Specification.new do |s|
|
|
217
218
|
]
|
218
219
|
|
219
220
|
if s.respond_to? :specification_version then
|
220
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
221
221
|
s.specification_version = 3
|
222
222
|
|
223
223
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 2
|
10
|
+
version: 1.4.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Hooks
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-09-06 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: shoulda
|
@@ -287,6 +286,7 @@ files:
|
|
287
286
|
- test/fixtures/advanced/video/search.json
|
288
287
|
- test/fixtures/advanced/video/set_description.json
|
289
288
|
- test/fixtures/advanced/video/set_like.json
|
289
|
+
- test/fixtures/advanced/video/set_preset.json
|
290
290
|
- test/fixtures/advanced/video/set_privacy.json
|
291
291
|
- test/fixtures/advanced/video/set_title.json
|
292
292
|
- test/fixtures/advanced/video_embed/get_presets.json
|
@@ -339,7 +339,6 @@ files:
|
|
339
339
|
- test/vimeo/simple_test.rb
|
340
340
|
- test/vimeo_test.rb
|
341
341
|
- vimeo.gemspec
|
342
|
-
has_rdoc: true
|
343
342
|
homepage: http://github.com/matthooks/vimeo
|
344
343
|
licenses: []
|
345
344
|
|
@@ -372,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
372
371
|
requirements: []
|
373
372
|
|
374
373
|
rubyforge_project: vimeo
|
375
|
-
rubygems_version: 1.
|
374
|
+
rubygems_version: 1.8.5
|
376
375
|
signing_key:
|
377
376
|
specification_version: 3
|
378
377
|
summary: A full featured Ruby implementation of the Vimeo API.
|