sproutvideo-rb 1.9.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.markdown +0 -2
- data/lib/sproutvideo/analytics.rb +0 -5
- data/spec/sproutvideo/analytics_spec.rb +0 -25
- data/sproutvideo-rb.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00fc9e9bad24363a388a4e9d76594700e19798d205849a47bd0da4b8b374a14e
|
|
4
|
+
data.tar.gz: a89cf708bb9952298f2959cdeb3293659f45661db88088ba8b0b6825dd38c8a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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"
|
data/sproutvideo-rb.gemspec
CHANGED
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:
|
|
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.
|
|
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: []
|