vimeo 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +7 -0
- data/Gemfile +23 -0
- data/Gemfile.lock +105 -0
- data/README.markdown +6 -1
- data/Rakefile +17 -34
- data/VERSION.yml +2 -2
- data/lib/vimeo/advanced/base.rb +5 -3
- data/lib/vimeo/advanced/channel.rb +2 -1
- data/lib/vimeo/advanced/simple_upload.rb +7 -2
- data/lib/vimeo/advanced/simple_upload/task.rb +19 -0
- data/lib/vimeo/advanced/video.rb +7 -1
- data/lib/vimeo/advanced/video_embed.rb +6 -0
- data/lib/vimeo/simple/base.rb +1 -1
- data/test/fixtures/advanced/upload/complete.json +5 -0
- data/test/fixtures/advanced/upload/get_ticket.json +2 -1
- data/test/fixtures/advanced/upload/verify_chunks.json +7 -0
- data/test/fixtures/advanced/video_embed/set_privacy.json +4 -0
- data/test/test_helper.rb +11 -11
- data/test/vimeo/advanced/auth_test.rb +2 -2
- data/test/vimeo/advanced/videos_embed_test.rb +8 -1
- data/vimeo.gemspec +39 -20
- metadata +149 -65
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5634dab383d01b7d8e71565da7b384263e0ea831
|
4
|
+
data.tar.gz: a26cbb1e31c914f16f5cb9f73f4bcb1d7e0a6a38
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 49228c3f2849cd1f396e760d85311eb02ebd7694ae319c2af1d96efac60fa4462fff4d60585e19067e2a9e7a2542b24a262ee2dda104c3dfbdde91b15a0ff87d
|
7
|
+
data.tar.gz: b75fad8d427611cf5e779101d1cb1371fc5c8bac0efc926758cd19f072eca38b4f41551a48a2132463e5c7e05e3c6bd380c9b898c933f4e8e871a1bb18ec8e52
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gem "httparty", ">= 0.4.5"
|
4
|
+
gem "httpclient", ">= 2.1.5.2"
|
5
|
+
gem "json", ">= 1.1.9"
|
6
|
+
gem "multipart-post", ">= 1.0.1"
|
7
|
+
gem "oauth", ">= 0.4.3"
|
8
|
+
|
9
|
+
group :development do
|
10
|
+
gem "bundler", "~> 1.0"
|
11
|
+
gem "rake", "0.9.6"
|
12
|
+
gem "rdoc", "~> 3.12"
|
13
|
+
gem "jeweler", "~> 2.0.1"
|
14
|
+
end
|
15
|
+
|
16
|
+
group :test do
|
17
|
+
gem "ruby-prof", ">= 0.9.2"
|
18
|
+
gem "shoulda", ">= 2.11.3"
|
19
|
+
gem "coveralls", require: false
|
20
|
+
gem "test-unit", ">= 0"
|
21
|
+
gem "fakeweb", ">= 1.2.6"
|
22
|
+
gem "mocha", ">= 0.9.8"
|
23
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.2.13)
|
5
|
+
i18n (= 0.6.1)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
addressable (2.3.6)
|
8
|
+
builder (3.2.2)
|
9
|
+
colorize (0.5.8)
|
10
|
+
coveralls (0.6.7)
|
11
|
+
colorize
|
12
|
+
multi_json (~> 1.3)
|
13
|
+
rest-client
|
14
|
+
simplecov (>= 0.7)
|
15
|
+
thor
|
16
|
+
descendants_tracker (0.0.4)
|
17
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
18
|
+
fakeweb (1.3.0)
|
19
|
+
faraday (0.9.0)
|
20
|
+
multipart-post (>= 1.2, < 3)
|
21
|
+
git (1.2.6)
|
22
|
+
github_api (0.11.3)
|
23
|
+
addressable (~> 2.3)
|
24
|
+
descendants_tracker (~> 0.0.1)
|
25
|
+
faraday (~> 0.8, < 0.10)
|
26
|
+
hashie (>= 1.2)
|
27
|
+
multi_json (>= 1.7.5, < 2.0)
|
28
|
+
nokogiri (~> 1.6.0)
|
29
|
+
oauth2
|
30
|
+
hashie (2.1.1)
|
31
|
+
highline (1.6.21)
|
32
|
+
httparty (0.11.0)
|
33
|
+
multi_json (~> 1.0)
|
34
|
+
multi_xml (>= 0.5.2)
|
35
|
+
httpclient (2.3.3)
|
36
|
+
i18n (0.6.1)
|
37
|
+
jeweler (2.0.1)
|
38
|
+
builder
|
39
|
+
bundler (>= 1.0)
|
40
|
+
git (>= 1.2.5)
|
41
|
+
github_api
|
42
|
+
highline (>= 1.6.15)
|
43
|
+
nokogiri (>= 1.5.10)
|
44
|
+
rake
|
45
|
+
rdoc
|
46
|
+
json (1.8.1)
|
47
|
+
jwt (0.1.11)
|
48
|
+
multi_json (>= 1.5)
|
49
|
+
metaclass (0.0.1)
|
50
|
+
mime-types (1.23)
|
51
|
+
mini_portile (0.5.3)
|
52
|
+
mocha (0.14.0)
|
53
|
+
metaclass (~> 0.0.1)
|
54
|
+
multi_json (1.7.7)
|
55
|
+
multi_xml (0.5.4)
|
56
|
+
multipart-post (1.2.0)
|
57
|
+
nokogiri (1.6.1)
|
58
|
+
mini_portile (~> 0.5.0)
|
59
|
+
oauth (0.4.7)
|
60
|
+
oauth2 (0.9.3)
|
61
|
+
faraday (>= 0.8, < 0.10)
|
62
|
+
jwt (~> 0.1.8)
|
63
|
+
multi_json (~> 1.3)
|
64
|
+
multi_xml (~> 0.5)
|
65
|
+
rack (~> 1.2)
|
66
|
+
rack (1.5.2)
|
67
|
+
rake (0.9.6)
|
68
|
+
rdoc (3.12.2)
|
69
|
+
json (~> 1.4)
|
70
|
+
rest-client (1.6.7)
|
71
|
+
mime-types (>= 1.16)
|
72
|
+
ruby-prof (0.13.0)
|
73
|
+
shoulda (3.5.0)
|
74
|
+
shoulda-context (~> 1.0, >= 1.0.1)
|
75
|
+
shoulda-matchers (>= 1.4.1, < 3.0)
|
76
|
+
shoulda-context (1.1.3)
|
77
|
+
shoulda-matchers (2.2.0)
|
78
|
+
activesupport (>= 3.0.0)
|
79
|
+
simplecov (0.7.1)
|
80
|
+
multi_json (~> 1.0)
|
81
|
+
simplecov-html (~> 0.7.1)
|
82
|
+
simplecov-html (0.7.1)
|
83
|
+
test-unit (2.5.5)
|
84
|
+
thor (0.18.1)
|
85
|
+
thread_safe (0.3.3)
|
86
|
+
|
87
|
+
PLATFORMS
|
88
|
+
ruby
|
89
|
+
|
90
|
+
DEPENDENCIES
|
91
|
+
bundler (~> 1.0)
|
92
|
+
coveralls
|
93
|
+
fakeweb (>= 1.2.6)
|
94
|
+
httparty (>= 0.4.5)
|
95
|
+
httpclient (>= 2.1.5.2)
|
96
|
+
jeweler (~> 2.0.1)
|
97
|
+
json (>= 1.1.9)
|
98
|
+
mocha (>= 0.9.8)
|
99
|
+
multipart-post (>= 1.0.1)
|
100
|
+
oauth (>= 0.4.3)
|
101
|
+
rake (= 0.9.6)
|
102
|
+
rdoc (~> 3.12)
|
103
|
+
ruby-prof (>= 0.9.2)
|
104
|
+
shoulda (>= 2.11.3)
|
105
|
+
test-unit
|
data/README.markdown
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Vimeo API Gem
|
2
2
|
|
3
|
+
[![Build Status](https://secure.travis-ci.org/matthooks/vimeo.png?branch=master)](http://travis-ci.org/matthooks/vimeo)
|
4
|
+
[![Dependency Status](https://gemnasium.com/matthooks/vimeo.png?travis)](https://gemnasium.com/matthooks/vimeo)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/matthooks/vimeo.png)](https://codeclimate.com/github/matthooks/vimeo)
|
6
|
+
|
3
7
|
This gem implements a full-featured Ruby interface for the Vimeo API v2.
|
4
8
|
|
5
9
|
For a more in depth look at the API check out [Vimeo's Simple API Documentation](http://www.vimeo.com/api/docs/simple-api) or [Vimeo's Advanced API Documentation](http://www.vimeo.com/api/docs/advanced-api). I would also recommend checking out the [API Forums](http://www.vimeo.com/forum:api) if things aren't working as they should.
|
@@ -164,7 +168,7 @@ Some methods have optional variables. Pass these as a hash at the end of a call.
|
|
164
168
|
album.get_videos("album_id", { :page => "1", :per_page => "25", :full_response => "0", :password => nil })
|
165
169
|
album.remove_video("album_id", "video_id")
|
166
170
|
album.set_description("album_id", "description")
|
167
|
-
album.
|
171
|
+
album.set_password("album_id", "password")
|
168
172
|
album.get_title("album_id", "title")
|
169
173
|
|
170
174
|
### Vimeo::Advanced::Base
|
@@ -302,6 +306,7 @@ Some methods have optional variables. Pass these as a hash at the end of a call.
|
|
302
306
|
|
303
307
|
video_embed.get_presets({ :page => "1", :per_page => "25" })
|
304
308
|
video_embed.set_preset("video_id", "preset_id")
|
309
|
+
video_embed.set_privacy("video_id", "privacy", { :approved_domains => ["example.com"].to_json })
|
305
310
|
|
306
311
|
## Uploads
|
307
312
|
|
data/Rakefile
CHANGED
@@ -1,9 +1,20 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
2
12
|
require 'rake'
|
3
13
|
|
4
|
-
|
5
|
-
|
6
|
-
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
|
7
18
|
gem.name = "vimeo"
|
8
19
|
gem.summary = %Q{A full featured Ruby implementation of the Vimeo API.}
|
9
20
|
gem.description = %Q{A full featured Ruby implementation of the Vimeo API.}
|
@@ -19,17 +30,8 @@ begin
|
|
19
30
|
|
20
31
|
gem.rdoc_options = ['--main', 'README.rdoc', '--inline-source', '--charset=UTF-8']
|
21
32
|
gem.extra_rdoc_files = ['README.rdoc', 'LICENSE', 'CHANGELOG.rdoc']
|
22
|
-
|
23
|
-
gem.add_dependency "httparty", ">= 0.4.5"
|
24
|
-
gem.add_dependency "json", ">= 1.1.9"
|
25
|
-
gem.add_dependency "oauth", ">= 0.4.3"
|
26
|
-
gem.add_dependency "httpclient", ">= 2.1.5.2"
|
27
|
-
gem.add_dependency "multipart-post", ">= 1.0.1"
|
28
|
-
end
|
29
|
-
Jeweler::GemcutterTasks.new
|
30
|
-
rescue LoadError
|
31
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
32
33
|
end
|
34
|
+
Jeweler::RubygemsDotOrgTasks.new
|
33
35
|
|
34
36
|
require 'rake/testtask'
|
35
37
|
Rake::TestTask.new(:test) do |test|
|
@@ -38,21 +40,6 @@ Rake::TestTask.new(:test) do |test|
|
|
38
40
|
test.verbose = true
|
39
41
|
end
|
40
42
|
|
41
|
-
begin
|
42
|
-
require 'rcov/rcovtask'
|
43
|
-
Rcov::RcovTask.new do |test|
|
44
|
-
test.libs << 'test'
|
45
|
-
test.pattern = 'test/**/*_test.rb'
|
46
|
-
test.verbose = true
|
47
|
-
end
|
48
|
-
rescue LoadError
|
49
|
-
task :rcov do
|
50
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
task :test => :check_dependencies
|
55
|
-
|
56
43
|
task :default => :test
|
57
44
|
|
58
45
|
namespace :vimeo do
|
@@ -85,13 +72,9 @@ namespace :vimeo do
|
|
85
72
|
end
|
86
73
|
end
|
87
74
|
|
88
|
-
require '
|
75
|
+
require 'rdoc/task'
|
89
76
|
Rake::RDocTask.new do |rdoc|
|
90
|
-
|
91
|
-
version = File.read('VERSION')
|
92
|
-
else
|
93
|
-
version = ""
|
94
|
-
end
|
77
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
95
78
|
|
96
79
|
rdoc.rdoc_dir = 'rdoc'
|
97
80
|
rdoc.title = "vimeo #{version}"
|
data/VERSION.yml
CHANGED
data/lib/vimeo/advanced/base.rb
CHANGED
@@ -67,10 +67,12 @@ module Vimeo
|
|
67
67
|
class Base
|
68
68
|
extend CreateApiMethod
|
69
69
|
|
70
|
-
ENDPOINT = "
|
70
|
+
ENDPOINT = "https://vimeo.com/api/rest/v2"
|
71
71
|
|
72
72
|
def initialize(consumer_key, consumer_secret, options = {})
|
73
|
-
|
73
|
+
timeout = options.fetch("timeout", 30)
|
74
|
+
|
75
|
+
@oauth_consumer = OAuth::Consumer.new(consumer_key, consumer_secret, :site => 'https://vimeo.com', :http_method => :get, :scheme => :header, :timeout => timeout)
|
74
76
|
unless options[:token].nil? && options[:secret].nil?
|
75
77
|
@access_token = OAuth::AccessToken.new(@oauth_consumer, options[:token], options[:secret])
|
76
78
|
end
|
@@ -123,4 +125,4 @@ private
|
|
123
125
|
|
124
126
|
end # Base
|
125
127
|
end # Advanced
|
126
|
-
end # Vimeo
|
128
|
+
end # Vimeo
|
@@ -33,8 +33,9 @@ module Vimeo
|
|
33
33
|
create_api_method :get_videos,
|
34
34
|
"vimeo.channels.getVideos",
|
35
35
|
:required => [:channel_id],
|
36
|
-
:optional => [:page, :per_page, :full_response]
|
36
|
+
:optional => [:page, :per_page, :full_response],
|
37
37
|
|
38
|
+
:authorized => false
|
38
39
|
# Removes a video from a channel.
|
39
40
|
create_api_method :remove_video,
|
40
41
|
"vimeo.channels.removeVideo",
|
@@ -6,15 +6,20 @@ module Vimeo
|
|
6
6
|
autoload :Task, 'vimeo/advanced/simple_upload/task'
|
7
7
|
autoload :Chunk, 'vimeo/advanced/simple_upload/chunk'
|
8
8
|
|
9
|
+
def stream(filename, size, &block)
|
10
|
+
task = Task.new(self, @oauth_consumer, nil, size, filename)
|
11
|
+
task.stream(&block)
|
12
|
+
end
|
13
|
+
|
9
14
|
# Uploads data (IO streams or files) to Vimeo.
|
10
|
-
def upload(uploadable)
|
15
|
+
def upload(uploadable, *args)
|
11
16
|
case uploadable
|
12
17
|
when File, Tempfile
|
13
18
|
upload_file(uploadable)
|
14
19
|
when String
|
15
20
|
upload_file(File.new(uploadable))
|
16
21
|
else
|
17
|
-
upload_io(uploadable)
|
22
|
+
upload_io(uploadable, *args)
|
18
23
|
end
|
19
24
|
end
|
20
25
|
|
@@ -26,6 +26,25 @@ module Vimeo
|
|
26
26
|
return video_id
|
27
27
|
end
|
28
28
|
|
29
|
+
def stream(&block)
|
30
|
+
raise ArgumentError, "A block is required to stream uploads" unless block_given?
|
31
|
+
|
32
|
+
check_quota
|
33
|
+
authorize
|
34
|
+
|
35
|
+
yield self
|
36
|
+
|
37
|
+
raise UploadError.new, "Validation of chunks failed." unless valid?
|
38
|
+
complete
|
39
|
+
video_id
|
40
|
+
end
|
41
|
+
|
42
|
+
def <<(data)
|
43
|
+
chunk = Chunk.new(self, data)
|
44
|
+
chunk.upload
|
45
|
+
chunks << chunk
|
46
|
+
end
|
47
|
+
|
29
48
|
protected
|
30
49
|
|
31
50
|
# Checks whether the file can be uploaded.
|
data/lib/vimeo/advanced/video.rb
CHANGED
@@ -65,6 +65,11 @@ module Vimeo
|
|
65
65
|
"vimeo.videos.getLikes",
|
66
66
|
:required => [:user_id],
|
67
67
|
:optional => [:page, :per_page, :full_response, :sort]
|
68
|
+
|
69
|
+
create_api_method :get_likers,
|
70
|
+
"vimeo.videos.getLikers",
|
71
|
+
:required => [:video_id],
|
72
|
+
:optional => [:page, :per_page]
|
68
73
|
|
69
74
|
create_api_method :get_subscriptions,
|
70
75
|
"vimeo.videos.getSubscriptions",
|
@@ -128,7 +133,8 @@ module Vimeo
|
|
128
133
|
create_api_method :get_comments_list,
|
129
134
|
"vimeo.videos.comments.getList",
|
130
135
|
:required => [:video_id],
|
131
|
-
:optional => [:page, :per_page]
|
136
|
+
:optional => [:page, :per_page],
|
137
|
+
:authorized => false
|
132
138
|
|
133
139
|
# embed
|
134
140
|
# getPresets has a bug right now: the response is blank http://www.vimeo.com/forums/topic:32411
|
@@ -12,6 +12,12 @@ module Vimeo
|
|
12
12
|
"vimeo.videos.embed.setPreset",
|
13
13
|
:required => [:video_id, :preset_id]
|
14
14
|
|
15
|
+
# Sets the privacy for a video embed.
|
16
|
+
create_api_method :set_privacy,
|
17
|
+
"vimeo.videos.embed.setPrivacy",
|
18
|
+
:required => [:video_id, :privacy],
|
19
|
+
:optional => [:approved_domains]
|
20
|
+
|
15
21
|
end # VideoEmbed
|
16
22
|
end # Advanced
|
17
23
|
end # Vimeo
|
data/lib/vimeo/simple/base.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
2
10
|
require 'test/unit'
|
3
|
-
|
4
|
-
gem 'shoulda', ">= 2.10.2"
|
5
|
-
gem 'fakeweb', ">= 1.2.6"
|
6
|
-
gem 'crack', ">= 0.1.4"
|
7
|
-
gem 'mocha', ">= 0.9.8"
|
8
|
-
|
9
11
|
require 'shoulda'
|
10
12
|
require 'fakeweb'
|
11
|
-
require '
|
12
|
-
require 'mocha'
|
13
|
+
require 'mocha/setup'
|
13
14
|
require 'ruby-prof'
|
14
15
|
|
15
|
-
FakeWeb.allow_net_connect = false
|
16
|
-
|
17
16
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
18
17
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
19
18
|
require 'vimeo'
|
20
19
|
|
21
20
|
class Test::Unit::TestCase
|
22
21
|
def setup
|
22
|
+
FakeWeb.allow_net_connect = false
|
23
23
|
FakeWeb.clean_registry
|
24
24
|
end
|
25
25
|
end
|
@@ -31,7 +31,7 @@ def fixture_file(filename)
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def vimeo_base_url(url = "/")
|
34
|
-
"
|
34
|
+
"https://vimeo.com#{url}"
|
35
35
|
end
|
36
36
|
|
37
37
|
def vimeo_url(url = "")
|
@@ -15,7 +15,7 @@ class AuthTest < Test::Unit::TestCase
|
|
15
15
|
stub_custom_get("/oauth/request_token", "advanced/auth/request_token.txt")
|
16
16
|
token = @auth.get_request_token
|
17
17
|
assert_equal true, token.callback_confirmed?
|
18
|
-
assert_equal "
|
18
|
+
assert_equal "https://vimeo.com/oauth/authorize?oauth_token=#{TOKEN}", token.authorize_url
|
19
19
|
end
|
20
20
|
|
21
21
|
should "receive the user's credentials after checking the OAuth token" do
|
@@ -27,4 +27,4 @@ class AuthTest < Test::Unit::TestCase
|
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
30
|
-
end
|
30
|
+
end
|
@@ -23,5 +23,12 @@ class VideoEmbedTest < Test::Unit::TestCase
|
|
23
23
|
assert_equal "ok", response["stat"]
|
24
24
|
end
|
25
25
|
|
26
|
+
should "be able to set the privacy for a video embed" do
|
27
|
+
stub_post("?privacy=privacy&video_id=video_id&api_key=12345&format=json&method=vimeo.video.embed.setPrivacy&auth_token=token&api_sig=29c01ef0013d2e0aa1d0dbd3fd19b8cc", "advanced/video_embed/set_privacy.json")
|
28
|
+
response = @video_embed.set_privacy("video_id", "privacy")
|
29
|
+
|
30
|
+
assert_equal "ok", response["stat"]
|
31
|
+
end
|
32
|
+
|
26
33
|
end
|
27
|
-
end
|
34
|
+
end
|
data/vimeo.gemspec
CHANGED
@@ -2,14 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: vimeo 1.5.4 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
8
|
s.name = "vimeo"
|
8
|
-
s.version = "1.5.
|
9
|
+
s.version = "1.5.4"
|
9
10
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
11
13
|
s.authors = ["Matt Hooks"]
|
12
|
-
s.date = "
|
14
|
+
s.date = "2014-04-23"
|
13
15
|
s.description = "A full featured Ruby implementation of the Vimeo API."
|
14
16
|
s.email = "matthooks@gmail.com"
|
15
17
|
s.extra_rdoc_files = [
|
@@ -17,7 +19,10 @@ Gem::Specification.new do |s|
|
|
17
19
|
"LICENSE"
|
18
20
|
]
|
19
21
|
s.files = [
|
22
|
+
".travis.yml",
|
20
23
|
"CHANGELOG.rdoc",
|
24
|
+
"Gemfile",
|
25
|
+
"Gemfile.lock",
|
21
26
|
"LICENSE",
|
22
27
|
"README.markdown",
|
23
28
|
"Rakefile",
|
@@ -105,9 +110,11 @@ Gem::Specification.new do |s|
|
|
105
110
|
"test/fixtures/advanced/test/echo.json",
|
106
111
|
"test/fixtures/advanced/test/login.json",
|
107
112
|
"test/fixtures/advanced/test/null.json",
|
113
|
+
"test/fixtures/advanced/upload/complete.json",
|
108
114
|
"test/fixtures/advanced/upload/get_quota.json",
|
109
115
|
"test/fixtures/advanced/upload/get_ticket.json",
|
110
116
|
"test/fixtures/advanced/upload/sample_iTunes.mov",
|
117
|
+
"test/fixtures/advanced/upload/verify_chunks.json",
|
111
118
|
"test/fixtures/advanced/video/add_cast.json",
|
112
119
|
"test/fixtures/advanced/video/add_comment.json",
|
113
120
|
"test/fixtures/advanced/video/add_photos.json",
|
@@ -139,6 +146,7 @@ Gem::Specification.new do |s|
|
|
139
146
|
"test/fixtures/advanced/video/set_title.json",
|
140
147
|
"test/fixtures/advanced/video_embed/get_presets.json",
|
141
148
|
"test/fixtures/advanced/video_embed/set_preset.json",
|
149
|
+
"test/fixtures/advanced/video_embed/set_privacy.json",
|
142
150
|
"test/fixtures/simple/activity/contacts_did.json",
|
143
151
|
"test/fixtures/simple/activity/everyone_did.json",
|
144
152
|
"test/fixtures/simple/activity/happened_to_contacts.json",
|
@@ -190,42 +198,53 @@ Gem::Specification.new do |s|
|
|
190
198
|
]
|
191
199
|
s.homepage = "http://github.com/matthooks/vimeo"
|
192
200
|
s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--charset=UTF-8"]
|
193
|
-
s.require_paths = ["lib"]
|
194
201
|
s.rubyforge_project = "vimeo"
|
195
|
-
s.rubygems_version = "
|
202
|
+
s.rubygems_version = "2.2.0"
|
196
203
|
s.summary = "A full featured Ruby implementation of the Vimeo API."
|
197
204
|
|
198
205
|
if s.respond_to? :specification_version then
|
199
|
-
s.specification_version =
|
206
|
+
s.specification_version = 4
|
200
207
|
|
201
208
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
202
|
-
s.add_development_dependency(%q<shoulda>, [">= 2.11.3"])
|
203
|
-
s.add_development_dependency(%q<fakeweb>, [">= 1.2.6"])
|
204
|
-
s.add_development_dependency(%q<ruby-prof>, [">= 0.9.2"])
|
205
209
|
s.add_runtime_dependency(%q<httparty>, [">= 0.4.5"])
|
206
|
-
s.add_runtime_dependency(%q<json>, [">= 1.1.9"])
|
207
|
-
s.add_runtime_dependency(%q<oauth>, [">= 0.4.3"])
|
208
210
|
s.add_runtime_dependency(%q<httpclient>, [">= 2.1.5.2"])
|
211
|
+
s.add_runtime_dependency(%q<json>, [">= 1.1.9"])
|
209
212
|
s.add_runtime_dependency(%q<multipart-post>, [">= 1.0.1"])
|
213
|
+
s.add_runtime_dependency(%q<oauth>, [">= 0.4.3"])
|
214
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
215
|
+
s.add_development_dependency(%q<rake>, ["= 0.9.6"])
|
216
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
217
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
218
|
+
s.add_development_dependency(%q<shoulda>, [">= 2.11.3"])
|
219
|
+
s.add_development_dependency(%q<fakeweb>, [">= 1.2.6"])
|
220
|
+
s.add_development_dependency(%q<ruby-prof>, [">= 0.9.2"])
|
210
221
|
else
|
211
|
-
s.add_dependency(%q<shoulda>, [">= 2.11.3"])
|
212
|
-
s.add_dependency(%q<fakeweb>, [">= 1.2.6"])
|
213
|
-
s.add_dependency(%q<ruby-prof>, [">= 0.9.2"])
|
214
222
|
s.add_dependency(%q<httparty>, [">= 0.4.5"])
|
215
|
-
s.add_dependency(%q<json>, [">= 1.1.9"])
|
216
|
-
s.add_dependency(%q<oauth>, [">= 0.4.3"])
|
217
223
|
s.add_dependency(%q<httpclient>, [">= 2.1.5.2"])
|
224
|
+
s.add_dependency(%q<json>, [">= 1.1.9"])
|
218
225
|
s.add_dependency(%q<multipart-post>, [">= 1.0.1"])
|
226
|
+
s.add_dependency(%q<oauth>, [">= 0.4.3"])
|
227
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
228
|
+
s.add_dependency(%q<rake>, ["= 0.9.6"])
|
229
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
230
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
231
|
+
s.add_dependency(%q<shoulda>, [">= 2.11.3"])
|
232
|
+
s.add_dependency(%q<fakeweb>, [">= 1.2.6"])
|
233
|
+
s.add_dependency(%q<ruby-prof>, [">= 0.9.2"])
|
219
234
|
end
|
220
235
|
else
|
221
|
-
s.add_dependency(%q<shoulda>, [">= 2.11.3"])
|
222
|
-
s.add_dependency(%q<fakeweb>, [">= 1.2.6"])
|
223
|
-
s.add_dependency(%q<ruby-prof>, [">= 0.9.2"])
|
224
236
|
s.add_dependency(%q<httparty>, [">= 0.4.5"])
|
225
|
-
s.add_dependency(%q<json>, [">= 1.1.9"])
|
226
|
-
s.add_dependency(%q<oauth>, [">= 0.4.3"])
|
227
237
|
s.add_dependency(%q<httpclient>, [">= 2.1.5.2"])
|
238
|
+
s.add_dependency(%q<json>, [">= 1.1.9"])
|
228
239
|
s.add_dependency(%q<multipart-post>, [">= 1.0.1"])
|
240
|
+
s.add_dependency(%q<oauth>, [">= 0.4.3"])
|
241
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
242
|
+
s.add_dependency(%q<rake>, ["= 0.9.6"])
|
243
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
244
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
245
|
+
s.add_dependency(%q<shoulda>, [">= 2.11.3"])
|
246
|
+
s.add_dependency(%q<fakeweb>, [">= 1.2.6"])
|
247
|
+
s.add_dependency(%q<ruby-prof>, [">= 0.9.2"])
|
229
248
|
end
|
230
249
|
end
|
231
250
|
|
metadata
CHANGED
@@ -1,104 +1,183 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
5
|
-
prerelease:
|
4
|
+
version: 1.5.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Matt Hooks
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement:
|
17
|
-
none: false
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
-
type: :
|
19
|
+
version: 0.4.5
|
20
|
+
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: fakeweb
|
27
|
-
requirement: &2152477520 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
23
|
requirements:
|
30
|
-
- -
|
24
|
+
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *2152477520
|
26
|
+
version: 0.4.5
|
36
27
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement:
|
39
|
-
none: false
|
28
|
+
name: httpclient
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
40
30
|
requirements:
|
41
|
-
- -
|
31
|
+
- - ">="
|
42
32
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
44
|
-
type: :
|
33
|
+
version: 2.1.5.2
|
34
|
+
type: :runtime
|
45
35
|
prerelease: false
|
46
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.1.5.2
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
requirement:
|
50
|
-
none: false
|
42
|
+
name: json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
51
44
|
requirements:
|
52
|
-
- -
|
45
|
+
- - ">="
|
53
46
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
47
|
+
version: 1.1.9
|
55
48
|
type: :runtime
|
56
49
|
prerelease: false
|
57
|
-
version_requirements:
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: json
|
60
|
-
requirement: &2152472080 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
51
|
requirements:
|
63
|
-
- -
|
52
|
+
- - ">="
|
64
53
|
- !ruby/object:Gem::Version
|
65
54
|
version: 1.1.9
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: multipart-post
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.0.1
|
66
62
|
type: :runtime
|
67
63
|
prerelease: false
|
68
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.0.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: oauth
|
71
|
-
requirement:
|
72
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
73
72
|
requirements:
|
74
|
-
- -
|
73
|
+
- - ">="
|
75
74
|
- !ruby/object:Gem::Version
|
76
75
|
version: 0.4.3
|
77
76
|
type: :runtime
|
78
77
|
prerelease: false
|
79
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.4.3
|
80
83
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
82
|
-
requirement:
|
83
|
-
none: false
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
84
86
|
requirements:
|
85
|
-
- -
|
87
|
+
- - "~>"
|
86
88
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
88
|
-
type: :
|
89
|
+
version: '1.0'
|
90
|
+
type: :development
|
89
91
|
prerelease: false
|
90
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
91
97
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
93
|
-
requirement:
|
94
|
-
none: false
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
95
100
|
requirements:
|
96
|
-
- -
|
101
|
+
- - '='
|
97
102
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
99
|
-
type: :
|
103
|
+
version: 0.9.6
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.9.6
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rdoc
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.12'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.12'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: jeweler
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 2.0.1
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 2.0.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: shoulda
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.11.3
|
146
|
+
type: :development
|
100
147
|
prerelease: false
|
101
|
-
version_requirements:
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.11.3
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: fakeweb
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 1.2.6
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.2.6
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: ruby-prof
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.9.2
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.9.2
|
102
181
|
description: A full featured Ruby implementation of the Vimeo API.
|
103
182
|
email: matthooks@gmail.com
|
104
183
|
executables: []
|
@@ -107,7 +186,10 @@ extra_rdoc_files:
|
|
107
186
|
- CHANGELOG.rdoc
|
108
187
|
- LICENSE
|
109
188
|
files:
|
189
|
+
- ".travis.yml"
|
110
190
|
- CHANGELOG.rdoc
|
191
|
+
- Gemfile
|
192
|
+
- Gemfile.lock
|
111
193
|
- LICENSE
|
112
194
|
- README.markdown
|
113
195
|
- Rakefile
|
@@ -195,9 +277,11 @@ files:
|
|
195
277
|
- test/fixtures/advanced/test/echo.json
|
196
278
|
- test/fixtures/advanced/test/login.json
|
197
279
|
- test/fixtures/advanced/test/null.json
|
280
|
+
- test/fixtures/advanced/upload/complete.json
|
198
281
|
- test/fixtures/advanced/upload/get_quota.json
|
199
282
|
- test/fixtures/advanced/upload/get_ticket.json
|
200
283
|
- test/fixtures/advanced/upload/sample_iTunes.mov
|
284
|
+
- test/fixtures/advanced/upload/verify_chunks.json
|
201
285
|
- test/fixtures/advanced/video/add_cast.json
|
202
286
|
- test/fixtures/advanced/video/add_comment.json
|
203
287
|
- test/fixtures/advanced/video/add_photos.json
|
@@ -229,6 +313,7 @@ files:
|
|
229
313
|
- test/fixtures/advanced/video/set_title.json
|
230
314
|
- test/fixtures/advanced/video_embed/get_presets.json
|
231
315
|
- test/fixtures/advanced/video_embed/set_preset.json
|
316
|
+
- test/fixtures/advanced/video_embed/set_privacy.json
|
232
317
|
- test/fixtures/simple/activity/contacts_did.json
|
233
318
|
- test/fixtures/simple/activity/everyone_did.json
|
234
319
|
- test/fixtures/simple/activity/happened_to_contacts.json
|
@@ -279,30 +364,29 @@ files:
|
|
279
364
|
- vimeo.gemspec
|
280
365
|
homepage: http://github.com/matthooks/vimeo
|
281
366
|
licenses: []
|
367
|
+
metadata: {}
|
282
368
|
post_install_message:
|
283
369
|
rdoc_options:
|
284
|
-
- --main
|
370
|
+
- "--main"
|
285
371
|
- README.rdoc
|
286
|
-
- --inline-source
|
287
|
-
- --charset=UTF-8
|
372
|
+
- "--inline-source"
|
373
|
+
- "--charset=UTF-8"
|
288
374
|
require_paths:
|
289
375
|
- lib
|
290
376
|
required_ruby_version: !ruby/object:Gem::Requirement
|
291
|
-
none: false
|
292
377
|
requirements:
|
293
|
-
- -
|
378
|
+
- - ">="
|
294
379
|
- !ruby/object:Gem::Version
|
295
380
|
version: '0'
|
296
381
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
297
|
-
none: false
|
298
382
|
requirements:
|
299
|
-
- -
|
383
|
+
- - ">="
|
300
384
|
- !ruby/object:Gem::Version
|
301
385
|
version: '0'
|
302
386
|
requirements: []
|
303
387
|
rubyforge_project: vimeo
|
304
|
-
rubygems_version:
|
388
|
+
rubygems_version: 2.2.0
|
305
389
|
signing_key:
|
306
|
-
specification_version:
|
390
|
+
specification_version: 4
|
307
391
|
summary: A full featured Ruby implementation of the Vimeo API.
|
308
392
|
test_files: []
|