sproutvideo-rb 1.9.0 → 2.0.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
2
  SHA256:
3
- metadata.gz: 47db233bcc6fd3d734a1ad76d712d7c164237262d362b19964c18e94672531b9
4
- data.tar.gz: b97f26548146f07cde07fb06cdf24b4e0493136242315b4c5936d9926772ac0d
3
+ metadata.gz: 00fc9e9bad24363a388a4e9d76594700e19798d205849a47bd0da4b8b374a14e
4
+ data.tar.gz: a89cf708bb9952298f2959cdeb3293659f45661db88088ba8b0b6825dd38c8a4
5
5
  SHA512:
6
- metadata.gz: 13a29044a7761786a0fe03fab8cbb52559397b833fee87bba12fbb80adf0878726e103f2635d2165c68a3564eefb02ef7820b6d54f6b2a72579c59f168df5faa
7
- data.tar.gz: 5628e387c711581b685a27262a4d7e8e802e348db65e1433eaa2c245ab7c3f2f99e9df7ca9fbf8cd1fb3d7b7ce0faf4824f67afb8a53b2cebc489b2f818472cb
6
+ metadata.gz: bfd78d4bb733c57743b668f90eee79825dbdc87720bd57708f050badab5e4c829c423b7d73e90fce5e7628a36f87c410df285e9e2c264c2fa56348ce70a03de5
7
+ data.tar.gz: 7f4dd8da964f3e7ea91f9c8768220b254ceb0d57f4b0e326e5f199da5aacdc720acec980ed1186db73d05140945c8e18124cbf9be4a8486de5b546f08f7b6990
data/README.markdown CHANGED
@@ -429,7 +429,6 @@ Sproutvideo::Analytics.download_counts
429
429
  Sproutvideo::Analytics.domains
430
430
  Sproutvideo::Analytics.geo
431
431
  Sproutvideo::Analytics.video_types
432
- Sproutvideo::Analytics.playback_types
433
432
  Sproutvideo::Analytics.device_types
434
433
  ```
435
434
  Each method can also take an options hash containing a :video_id for retrieving overall data for a specific video:
@@ -439,7 +438,6 @@ Sproutvideo::Analytics.download_counts(:video_id => 'abc123')
439
438
  Sproutvideo::Analytics.domains(:video_id => 'abc123')
440
439
  Sproutvideo::Analytics.geo(:video_id => 'abc123')
441
440
  Sproutvideo::Analytics.video_types(:video_id => 'abc123')
442
- Sproutvideo::Analytics.playback_types(:video_id => 'abc123')
443
441
  Sproutvideo::Analytics.device_types(:video_id => 'abc123')
444
442
  ```
445
443
  The following methods can also take an options hash containing a :live_stream_id for retrieving overall data for a specific live_stream:
@@ -25,11 +25,6 @@ module Sproutvideo
25
25
  get(url, options)
26
26
  end
27
27
 
28
- def self.playback_types(options={})
29
- url = build_path("/stats/playback_types", options)
30
- get(url, options)
31
- end
32
-
33
28
  def self.device_types(options={})
34
29
  url = build_path("/stats/device_types", options)
35
30
  get(url, options)
@@ -158,31 +158,6 @@ describe Sproutvideo::Analytics do
158
158
  end
159
159
  end
160
160
 
161
- describe "#playback_types" do
162
- before(:each) do
163
- @url = "#{Sproutvideo.base_url}/stats/playback_types"
164
- end
165
-
166
- it "should GET the correct url for overall method call and return a response" do
167
- RestClient.should_receive(:get).with(
168
- @url,
169
- {'SproutVideo-Api-Key' => @api_key, :params => {}}).and_return(@msg)
170
- Sproutvideo::Analytics.playback_types.class.should == Sproutvideo::Response
171
- end
172
- it "should GET the correct url for individual video method call and return a response" do
173
- RestClient.should_receive(:get).with(
174
- "#{@url}/abc123",
175
- {'SproutVideo-Api-Key' => @api_key, :params => {}}).and_return(@msg)
176
- Sproutvideo::Analytics.playback_types(:video_id => 'abc123').class.should == Sproutvideo::Response
177
- end
178
- it "should GET the correct url if dates are passed in" do
179
- RestClient.should_receive(:get).with(
180
- @url,
181
- {'SproutVideo-Api-Key' => @api_key, :params => {:start_date => '2012-12-31', :end_date => '2013-12-31'}}).and_return(@msg)
182
- Sproutvideo::Analytics.playback_types(:start_date => '2012-12-31', :end_date => '2013-12-31').class.should == Sproutvideo::Response
183
- end
184
- end
185
-
186
161
  describe "#device_types" do
187
162
  before(:each) do
188
163
  @url = "#{Sproutvideo.base_url}/stats/device_types"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sproutvideo-rb"
3
- s.version = "1.9.0"
3
+ s.version = "2.0.0"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sproutvideo-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SproutVideo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-07-11 00:00:00.000000000 Z
@@ -139,7 +139,7 @@ homepage: http://github.com/SproutVideo/sproutvideo-rb
139
139
  licenses:
140
140
  - MIT
141
141
  metadata: {}
142
- post_install_message:
142
+ post_install_message:
143
143
  rdoc_options: []
144
144
  require_paths:
145
145
  - lib
@@ -154,8 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
- rubygems_version: 3.0.3.1
158
- signing_key:
157
+ rubygems_version: 3.1.6
158
+ signing_key:
159
159
  specification_version: 4
160
160
  summary: SproutVideo API Client
161
161
  test_files: []