sproutvideo-rb 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8a52cda667a7cfda9579e2246db404d9e0c25dde
4
- data.tar.gz: a4050d148fe1f9d8e0abb96f545c7cb25ded780a
2
+ SHA256:
3
+ metadata.gz: 01c75acda409b9a3a9890c2bd9a4a050bd1d592686521a1390e1727b0572bb1c
4
+ data.tar.gz: 2d003362ec7390b3f49a6c60850daa1dc0a4b8b60899624b4db1f658f1929cd4
5
5
  SHA512:
6
- metadata.gz: cf34a568277635123d47ac0a55dc5c1af6fc653485e1aa5c6cc132f83ec6a80ed4eca34d4c9de38c94a7513620b8dde2a042d33b4224be4df76b0a92a9569268
7
- data.tar.gz: b99a8a911241add84fc75beb291c3381e1f75aaf51319ee9ab0d2da0b6b0d4ac102899c529a774e760db819b2f6283b0981a77ddcc5e1ee633bc9440e94be4c4
6
+ metadata.gz: c32f913ec550dfd97e2b5c6ecb2f3a1eb97369d3591450dbca5b241d35994291abe29f8b64fba751d8da40e1001bb1609859f5f9e57a6c1e4a0e59f3ab0cef0c
7
+ data.tar.gz: 7b5964b53f2622c9a8754f4baedb7a83ea84807441cbe83cd5e0dc862ea0efa2807b5807b23b385b2a75fafebd4afb711758fd78728afe0b039e9a3877942486
data/Gemfile CHANGED
@@ -1,11 +1,10 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rest-client"
3
+ gem "rest-client", '~> 1.8.0'
4
+ gem 'json', '~> 1.8.6'
4
5
  gem "multi_json"
5
6
 
6
7
  group :development do
7
8
  gem "rspec", "~> 2.8.0"
8
- gem "rdoc", "~> 3.12"
9
- gem "bundler"
10
- gem "jeweler", "~> 1.8.3"
9
+ gem "rdoc", "~> 3.12.1"
11
10
  end
@@ -2,20 +2,20 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  diff-lcs (1.1.3)
5
- git (1.2.5)
6
- jeweler (1.8.3)
7
- bundler (~> 1.0)
8
- git (>= 1.2.5)
9
- rake
10
- rdoc
11
- json (1.6.5)
12
- mime-types (1.19)
13
- multi_json (1.0.4)
14
- rake (0.9.2.2)
15
- rdoc (3.12)
5
+ domain_name (0.5.20190701)
6
+ unf (>= 0.0.5, < 1.0.0)
7
+ http-cookie (1.0.3)
8
+ domain_name (~> 0.5)
9
+ json (1.8.6)
10
+ mime-types (2.99.3)
11
+ multi_json (1.14.1)
12
+ netrc (0.11.0)
13
+ rdoc (3.12.2)
16
14
  json (~> 1.4)
17
- rest-client (1.6.1)
18
- mime-types (>= 1.16)
15
+ rest-client (1.8.0)
16
+ http-cookie (>= 1.0.2, < 2.0)
17
+ mime-types (>= 1.16, < 3.0)
18
+ netrc (~> 0.7)
19
19
  rspec (2.8.0)
20
20
  rspec-core (~> 2.8.0)
21
21
  rspec-expectations (~> 2.8.0)
@@ -24,14 +24,19 @@ GEM
24
24
  rspec-expectations (2.8.0)
25
25
  diff-lcs (~> 1.1.2)
26
26
  rspec-mocks (2.8.0)
27
+ unf (0.1.4)
28
+ unf_ext
29
+ unf_ext (0.0.7.6)
27
30
 
28
31
  PLATFORMS
29
32
  ruby
30
33
 
31
34
  DEPENDENCIES
32
- bundler
33
- jeweler (~> 1.8.3)
35
+ json (~> 1.8.6)
34
36
  multi_json
35
- rdoc (~> 3.12)
36
- rest-client
37
+ rdoc (~> 3.12.1)
38
+ rest-client (~> 1.8.0)
37
39
  rspec (~> 2.8.0)
40
+
41
+ BUNDLED WITH
42
+ 1.17.3
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 SproutVideo
1
+ Copyright (c) 2020 SproutVideo
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -22,7 +22,7 @@ ENV['SPROUTVIDEO_API_KEY'] = 'abcd1234'
22
22
  # Videos
23
23
  The following methods are available: `list`, `create`, `details`, `update`, `upload_poster_frame`,`destroy`.
24
24
 
25
- ##list
25
+ ## list
26
26
  By default the videos listing is paginated with 25 videos per page and sorted by upload date in ascending order.
27
27
  You can pass two parameters to control the paging: `page` and `per_page`.
28
28
 
@@ -53,14 +53,14 @@ Sproutvideo::Video.list(:state => "processing")
53
53
  Values of `privacy` is listed at [Video Privacy](http://sproutvideo.com/docs/api.html#VideoPrivacy) section.
54
54
  Values of `state` is listed at [Video States](http://sproutvideo.com/docs/api.html#VideoStates) section.
55
55
 
56
- ##details
56
+ ## details
57
57
  The string passed to details is the ID of a SproutVideo video.
58
58
 
59
59
  ```ruby
60
60
  Sproutvideo::Video.details('abc123')
61
61
  ```
62
62
 
63
- ##create
63
+ ## create
64
64
  The most basic upload you can perform is to just pass the path to the video file to the method. The title of the video will default to the name of the file.
65
65
 
66
66
  ```ruby
@@ -97,21 +97,21 @@ Sproutvideo::Video.create('/path/to/video.mp4',
97
97
  :notification_url => 'http://example.com/webhook_url')
98
98
  ```
99
99
 
100
- ##update
100
+ ## update
101
101
  The first parameter is the id of the video you wish to edit. The second parameter is a hash of attributes to update on the video.
102
102
 
103
103
  ```ruby
104
104
  Sproutvideo::Video.update('abc123', :title => 'Updated Title')
105
105
  ```
106
106
 
107
- ##replace
107
+ ## Replace a video
108
108
  The first parameter is the id of the video you wish to replace. The second parameter is the local path to the video file.
109
109
 
110
110
  ```ruby
111
111
  Sproutvideo::Video.replace('abc123', '/path/to/video.mp4')
112
112
  ```
113
113
 
114
- # Tags
114
+ ## Dealing with tags
115
115
  To add a tag to a video, make sure to include all of the tags currently associated with the video. For instance if the video already has tags with the ids "abc" and "123" and you want to add a tag with the id "def" do pass "abc", "123" and "def" to the update method.
116
116
 
117
117
  ```ruby
@@ -131,25 +131,25 @@ You can remove all of the tags from a video by just passing an empty array as th
131
131
  ```ruby
132
132
  Sproutvideo::Video.update('abc123', :tags => [])
133
133
  ```
134
- ##Upload poster frame
134
+ ## Upload poster frame
135
135
  You can upload a custom poster frame for a video by calling the upload_poster_frame method. The first parameter is the id of the video for wish you'd like the poster frame to be associated and the second parameter is the path to the image file.
136
136
 
137
137
  ```ruby
138
138
  SproutVideo::Video.upload_poster_frame('abc123', '/path/to/image.jpg')
139
139
  ```
140
140
 
141
- ##destroy
141
+ ## destroy
142
142
  Pass in the id of the video you wish to delete.
143
143
 
144
144
  ```ruby
145
145
  Sproutvideo::Video.destroy('abc123')
146
146
  ```
147
147
 
148
- ##Signed Embed Codes
148
+ ## Signed Embed Codes
149
149
  You can use this convenience method to sign an embed code. It will return the embed code URL which can be used to build an iframe embed code.
150
150
  `Sproutvideo::Video.signed_embed_code(video_id, security_token, query_parameters, expiration_time, protocol)`
151
151
 
152
- ###Parameters
152
+ ### Parameters
153
153
  video_id - _String_ (_Required_)
154
154
  : The id of the video for which you're generating the signed embed code
155
155
 
@@ -165,7 +165,7 @@ expiration_time - _Integer_ (_Optional_)
165
165
  protocol - _String_ (_Optional_)
166
166
  : `http` or `https`. Defaults to `http`
167
167
 
168
- ###Examples
168
+ ### Examples
169
169
  ```ruby
170
170
  Sproutvideo::Video.signed_embed_code('abc123','def456') #sign a base embed code with no other options
171
171
  Sproutvideo::Video.signed_embed_code('abc123','def456', {'type' => 'hd'}) #set parameters for the embed code such as changing the default video type to HD
@@ -180,11 +180,12 @@ The following methods are available: `create`
180
180
  Sproutvideo::UploadToken.create
181
181
  Sproutvideo::UploadToken.create(:return_url => 'http://example.com')
182
182
  Sproutvideo::UploadToken.create(:return_url => 'http://example.com', :seconds_valid => 3600)
183
+ ```
183
184
 
184
185
  # Tags
185
186
  The following methods are available: `list`, `create`, `details`, `update`, `destroy`.
186
187
 
187
- ##list
188
+ ## list
188
189
  By default the tag listing is paginated with 25 tags per page and sorted by created at date in ascending order. You can pass two parameters to control the paging: page and per_page.
189
190
 
190
191
  ```ruby
@@ -193,27 +194,69 @@ Sproutvideo::Tag.list(:per_page => 10)
193
194
  Sproutvideo::Tag.list(:per_page => 10, :page => 2)
194
195
  ```
195
196
 
196
- ##create
197
+ ## create
197
198
 
198
199
  ```ruby
199
200
  Sproutvideo::Tag.create(:name => 'new tag')
200
201
  ```
201
202
 
202
- ##update
203
+ ## update
203
204
  ```ruby
204
205
  Sproutvideo::Tag.update('abc123', :name => 'updated tag name')
205
206
  ```
206
207
 
207
- ##destroy
208
+ ## destroy
208
209
  Pass in the id of the tag you wish to delete.
209
210
 
210
211
  ```ruby
211
212
  Sproutvideo::Tag.destroy('abc123')
212
213
  ```
214
+ # Folders
215
+ The following methods are available: `list`, `create`, `details`, `update`, `destroy`.
216
+ ## list
217
+ By default, the folder listing is paginated with 25 folders per page and sorted by `created_at` date in ascending order. You can pass tow parameters to control the paging: `page` and `per_page`. If you do not pass in a `parent_id` only the folders within the root folder will be returned. To get the folders in a specific folder, make sure to pass in that folder's id using the `parent_id` parameter.
218
+ ```ruby
219
+ Sproutvideo::Folder.list
220
+ Sproutvideo::Folder.last(:per_page => 10)
221
+ Sproutvideo::Folder.last(:per_page => 10, :page => 2)
222
+ Sproutvideo::Folder.last(:parent_id => 'def456')
223
+ ```
224
+
225
+ ## create
226
+ Creating a folder without a `parent_id` will place that folder in the root folder. Passing in a `parent_id` will place the newly created folder in the folder specified by `parent_id`.
227
+
228
+ ```ruby
229
+ # folder is created in the root folder.
230
+ Sproutvideo::Folder.create(:name => 'New Folder')
231
+
232
+ # folder is created as a child of the folder specified by the id 'def456'
233
+ Sproutvideo::Folder.create(:name => 'New Folder', :parent_id => 'def456')
234
+ ```
235
+
236
+ ## details
237
+ ```ruby
238
+ Sproutvideo::Folder.details('def456')
239
+ ```
240
+
241
+ ## update
242
+ ```ruby
243
+ Sproutvideo::Folder.update('def456', :name => 'New Folder Name')
244
+ ```
245
+
246
+ ## delete
247
+ By default, when deleting a folder, all of the contents of that folder (videos and folders), will be moved the root folder to prevent unintended data loss. If you wish to actually delete all of the content of a folder, make sure to pass in `delete_all` as true.
248
+
249
+ ```ruby
250
+ # delete the folder and move it's contents to the root folder
251
+ Sproutvideo::Folder.delete('def456')
252
+
253
+ # delete the folder and everything in it.
254
+ Sproutvideo::Folder.delete('def456', :delete_all => true)
255
+ ```
213
256
 
214
257
  # Playlists
215
258
  The following methods are available: `list`, `create`, `details`, `update`, `destroy`.
216
- ##list
259
+ ## list
217
260
  By default the playlist listing is paginated with 25 playlists per page and sorted by created at date in ascending order. You can pass two parameters to control the paging: page and per_page.
218
261
 
219
262
  ```ruby
@@ -222,7 +265,7 @@ Sproutvideo::Playlist.list(:per_page => 10)
222
265
  Sproutvideo::Playlist.list(:per_page => 10, :page => 2)
223
266
  ```
224
267
 
225
- ##create
268
+ ## create
226
269
  You can add videos to a playlist when creating it by passing in the videos you'd like to add in the videos parameter in the order you'd like them to appear.
227
270
 
228
271
  ```ruby
@@ -231,7 +274,7 @@ Sproutvideo::Playlist.create(
231
274
  :privacy => 2,
232
275
  :videos => ['abc123','def456','ghi789'])
233
276
  ```
234
- ##update
277
+ ## update
235
278
 
236
279
  ```ruby
237
280
  Sproutvideo::Playlist.update('abc123',
@@ -258,7 +301,7 @@ You can remove all of the videos from a playlist by just passing an empty array
258
301
  Sproutvideo::Playlist.update('abc123', :videos => [])
259
302
  ```
260
303
 
261
- ##destroy
304
+ ## destroy
262
305
  Pass in the id of the playlist you wish to delete.
263
306
 
264
307
  ```ruby
@@ -328,6 +371,20 @@ Sproutvideo::AccessGrant.create(
328
371
  :video_id => 'abc123',
329
372
  :login_id => 'abc123')
330
373
  ```
374
+ ## bulk_create
375
+ bulk_create takes an array of access grant objects and creates them in a single API call to efficiently create access grants in bulk and reduce the number of API calls needed.
376
+
377
+ ```ruby
378
+ Sproutvideo::AccessGrant.bulk_create([
379
+ {
380
+ :video_id => 'abc123',
381
+ :login_id => 'abc123'
382
+ },{
383
+ :video_id => 'def456',
384
+ :login_id => 'def456'
385
+ }
386
+ ])
387
+ ```
331
388
 
332
389
  ## details
333
390
  The string passed to details is the ID of a SproutVideo login.
@@ -346,7 +403,7 @@ Sproutvideo::AccessGrant.update('abc123',
346
403
  :access_ends_at => DateTime.parse('8/4/2014'))
347
404
  ```
348
405
 
349
- ## destory
406
+ ## destroy
350
407
  Pass in the id of the access grant you wish to delete.
351
408
 
352
409
  ```ruby
@@ -393,7 +450,7 @@ Lastly, the geo method can take an optional :country to retrieve playback data b
393
450
  Sproutvideo::Analytics.geo(:video_id => 'abc123', :country => 'US')
394
451
  ```
395
452
 
396
- #Engagement
453
+ # Engagement
397
454
  You can grab the total number of seconds of your videos that have been watched like this:
398
455
  ```ruby
399
456
  Sproutvideo::Analytics.engagement
@@ -13,3 +13,4 @@ require 'sproutvideo/access_grant.rb'
13
13
  require 'sproutvideo/analytics.rb'
14
14
  require 'sproutvideo/upload_token.rb'
15
15
  require 'sproutvideo/account.rb'
16
+ require 'sproutvideo/folder.rb'
@@ -26,5 +26,9 @@ module Sproutvideo
26
26
  delete("/access_grants/#{access_grant_id}", options)
27
27
  end
28
28
 
29
+ def self.bulk_create(access_grants, options={})
30
+ post("/access_grants/bulk", options)
31
+ end
32
+
29
33
  end
30
34
  end
@@ -20,7 +20,7 @@ module Sproutvideo
20
20
  Response.new(resp)
21
21
  end
22
22
 
23
- def self.upload(path, file_path, options={})
23
+ def self.upload(path, file_path, options = {})
24
24
  resp = nil
25
25
 
26
26
  method = options.delete(:method) == :PUT ? :PUT : :POST
@@ -48,7 +48,7 @@ module Sproutvideo
48
48
  Response.new(resp)
49
49
  end
50
50
 
51
- def self.get(path, options={})
51
+ def self.get(path, options = {})
52
52
  begin
53
53
  resp = RestClient.get(
54
54
  "#{base_url}#{path}",
@@ -59,7 +59,7 @@ module Sproutvideo
59
59
  Response.new(resp)
60
60
  end
61
61
 
62
- def self.put(path, options={})
62
+ def self.put(path, options = {})
63
63
  body = MultiJson.encode(options.dup)
64
64
  begin
65
65
  resp = RestClient.put(
@@ -72,11 +72,11 @@ module Sproutvideo
72
72
  Response.new(resp)
73
73
  end
74
74
 
75
- def self.delete(path, options={})
75
+ def self.delete(path, options = {})
76
76
  begin
77
77
  resp = RestClient.delete(
78
78
  "#{base_url}#{path}",
79
- {'SproutVideo-Api-Key' => api_key})
79
+ {'SproutVideo-Api-Key' => api_key, :params => options.dup})
80
80
  rescue => e
81
81
  resp = e.response
82
82
  end
@@ -1,3 +1,3 @@
1
1
  module Sproutvideo
2
- VERSION = "1.6.0"
2
+ VERSION = "1.7.0"
3
3
  end
@@ -55,7 +55,7 @@ module Sproutvideo
55
55
 
56
56
  string_to_sign << "#{url_params}"
57
57
 
58
- digest = OpenSSL::Digest::Digest.new('sha1')
58
+ digest = OpenSSL::Digest.new('sha1')
59
59
  b64_hmac = [OpenSSL::HMAC.digest(digest, Sproutvideo.api_key, string_to_sign)].pack("m").strip
60
60
  signature = CGI.escape(b64_hmac)
61
61
 
@@ -13,7 +13,7 @@ describe Sproutvideo::AccessGrant do
13
13
  end
14
14
 
15
15
  it "should POST the correct url and return a response" do
16
- data = {:email => 'test@example.com', :password => 'password'}
16
+ data = {:video_id => 'video_id', :login_d => 'login_id'}
17
17
  RestClient.should_receive(:post).with(
18
18
  @url,
19
19
  MultiJson.encode(data),
@@ -71,7 +71,7 @@ describe Sproutvideo::AccessGrant do
71
71
  end
72
72
 
73
73
  it "should PUT the correct url and return a response" do
74
- data = {:password => 'new password'}
74
+ data = {:allowed_plays => 10}
75
75
 
76
76
  RestClient.should_receive(:put).with(
77
77
  @url,
@@ -91,9 +91,20 @@ describe Sproutvideo::AccessGrant do
91
91
  it "should DELETE the correct url and return a response" do
92
92
  RestClient.should_receive(:delete).with(
93
93
  @url,
94
- {'SproutVideo-Api-Key' => @api_key}).and_return(@msg)
94
+ {'SproutVideo-Api-Key' => @api_key, :params=> {}}).and_return(@msg)
95
95
  Sproutvideo::AccessGrant.destroy(@access_grant_id).class.should == Sproutvideo::Response
96
96
  end
97
97
  end
98
98
 
99
+ describe "#bulk_create" do
100
+ it "should POST the correct url and return a response" do
101
+ data = [{:video_id => 'video_id', :login_id => 'login_id_1'}, {:video_id => 'video_id', :login_id => 'login_id_2'}]
102
+ RestClient.should_receive(:post).with(
103
+ "#{Sproutvideo.base_url}/access_grants/bulk",
104
+ MultiJson.encode(data),
105
+ {'SproutVideo-Api-Key' => @api_key}).and_return(@msg)
106
+ Sproutvideo::AccessGrant.bulk_create(data).class.should == Sproutvideo::Response
107
+ end
108
+ end
109
+
99
110
  end
@@ -91,7 +91,7 @@ describe Sproutvideo::Login do
91
91
  it "should DELETE the correct url and return a response" do
92
92
  RestClient.should_receive(:delete).with(
93
93
  @url,
94
- {'SproutVideo-Api-Key' => @api_key}).and_return(@msg)
94
+ {'SproutVideo-Api-Key' => @api_key, :params => {}}).and_return(@msg)
95
95
  Sproutvideo::Login.destroy(@login_id).class.should == Sproutvideo::Response
96
96
  end
97
97
  end
@@ -91,7 +91,7 @@ describe Sproutvideo::Playlist do
91
91
  it "should DELETE the correct url and return a response" do
92
92
  RestClient.should_receive(:delete).with(
93
93
  @url,
94
- {'SproutVideo-Api-Key' => @api_key}).and_return(@msg)
94
+ {'SproutVideo-Api-Key' => @api_key, :params => {}}).and_return(@msg)
95
95
  Sproutvideo::Playlist.destroy(@playlist_id).class.should == Sproutvideo::Response
96
96
  end
97
97
  end
@@ -91,7 +91,7 @@ describe Sproutvideo::Tag do
91
91
  it "should DELETE the correct url and return a response" do
92
92
  RestClient.should_receive(:delete).with(
93
93
  @url,
94
- {'SproutVideo-Api-Key' => @api_key}).and_return(@msg)
94
+ {'SproutVideo-Api-Key' => @api_key, :params => {}}).and_return(@msg)
95
95
  Sproutvideo::Tag.destroy(@tag_id).class.should == Sproutvideo::Response
96
96
  end
97
97
  end
@@ -154,7 +154,7 @@ describe Sproutvideo::Video do
154
154
  it "should DELETE the correct url and return a response" do
155
155
  RestClient.should_receive(:delete).with(
156
156
  @url,
157
- {'SproutVideo-Api-Key' => @api_key}).and_return(@msg)
157
+ {'SproutVideo-Api-Key' => @api_key, :params => {}}).and_return(@msg)
158
158
  Sproutvideo::Video.destroy(@video_id).class.should == Sproutvideo::Response
159
159
  end
160
160
  end
@@ -163,8 +163,8 @@ describe Sproutvideo::Video do
163
163
  before(:each) do
164
164
  @video_id = 1
165
165
  @security_token = 'abc123'
166
- @digest = OpenSSL::Digest::Digest.new('sha1')
167
- OpenSSL::Digest::Digest.stub!(:new).and_return(@digest)
166
+ @digest = OpenSSL::Digest.new('sha1')
167
+ OpenSSL::Digest.stub!(:new).and_return(@digest)
168
168
  time = Time.now
169
169
  Time.stub!(:now).and_return(time)
170
170
  @expires_time = time.to_i+300
@@ -2,16 +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: sproutvideo-rb 1.6.0 ruby lib
5
+ # stub: sproutvideo-rb 1.7.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "sproutvideo-rb"
9
- s.version = "1.6.0"
9
+ s.version = "1.7.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["SproutVideo"]
14
- s.date = "2016-10-20"
14
+ s.date = "2020-01-16"
15
15
  s.description = "SproutVideo API Client"
16
16
  s.email = "support@sproutvideo.com"
17
17
  s.extra_rdoc_files = [
@@ -62,27 +62,24 @@ Gem::Specification.new do |s|
62
62
  s.specification_version = 4
63
63
 
64
64
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
65
- s.add_runtime_dependency(%q<rest-client>, [">= 0"])
65
+ s.add_runtime_dependency(%q<rest-client>, ["~> 1.8.0"])
66
+ s.add_runtime_dependency(%q<json>, ["~> 1.8.6"])
66
67
  s.add_runtime_dependency(%q<multi_json>, [">= 0"])
67
68
  s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
68
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
69
- s.add_development_dependency(%q<bundler>, [">= 0"])
70
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
69
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12.1"])
71
70
  else
72
- s.add_dependency(%q<rest-client>, [">= 0"])
71
+ s.add_dependency(%q<rest-client>, ["~> 1.8.0"])
72
+ s.add_dependency(%q<json>, ["~> 1.8.6"])
73
73
  s.add_dependency(%q<multi_json>, [">= 0"])
74
74
  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
75
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
76
- s.add_dependency(%q<bundler>, [">= 0"])
77
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
75
+ s.add_dependency(%q<rdoc>, ["~> 3.12.1"])
78
76
  end
79
77
  else
80
- s.add_dependency(%q<rest-client>, [">= 0"])
78
+ s.add_dependency(%q<rest-client>, ["~> 1.8.0"])
79
+ s.add_dependency(%q<json>, ["~> 1.8.6"])
81
80
  s.add_dependency(%q<multi_json>, [">= 0"])
82
81
  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
83
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
84
- s.add_dependency(%q<bundler>, [">= 0"])
85
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
82
+ s.add_dependency(%q<rdoc>, ["~> 3.12.1"])
86
83
  end
87
84
  end
88
85
 
metadata CHANGED
@@ -1,99 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sproutvideo-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SproutVideo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.8.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.8.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: multi_json
28
+ name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.8.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 1.8.6
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: 2.8.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 2.8.0
55
- - !ruby/object:Gem::Dependency
56
- name: rdoc
42
+ name: multi_json
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - ~>
45
+ - - ">="
60
46
  - !ruby/object:Gem::Version
61
- version: '3.12'
62
- type: :development
47
+ version: '0'
48
+ type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ~>
52
+ - - ">="
67
53
  - !ruby/object:Gem::Version
68
- version: '3.12'
54
+ version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
- name: bundler
56
+ name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - '>='
59
+ - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '0'
61
+ version: 2.8.0
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - '>='
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: 2.8.0
83
69
  - !ruby/object:Gem::Dependency
84
- name: jeweler
70
+ name: rdoc
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ~>
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 1.8.3
75
+ version: 3.12.1
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ~>
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 1.8.3
82
+ version: 3.12.1
97
83
  description: SproutVideo API Client
98
84
  email: support@sproutvideo.com
99
85
  executables: []
@@ -145,19 +131,17 @@ require_paths:
145
131
  - lib
146
132
  required_ruby_version: !ruby/object:Gem::Requirement
147
133
  requirements:
148
- - - '>='
134
+ - - ">="
149
135
  - !ruby/object:Gem::Version
150
136
  version: '0'
151
137
  required_rubygems_version: !ruby/object:Gem::Requirement
152
138
  requirements:
153
- - - '>='
139
+ - - ">="
154
140
  - !ruby/object:Gem::Version
155
141
  version: '0'
156
142
  requirements: []
157
- rubyforge_project:
158
- rubygems_version: 2.4.2
143
+ rubygems_version: 3.0.3
159
144
  signing_key:
160
145
  specification_version: 4
161
146
  summary: SproutVideo API Client
162
147
  test_files: []
163
- has_rdoc: