vzaar_api 2.0.1 → 2.0.2
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/lib/vzaar_api/version.rb +1 -1
- data/lib/vzaar_api/video.rb +1 -1
- data/spec/vzaar_api/video_spec.rb +3 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fab7eff5ea2987e97b8a84fe0633faa74018c4e9f29bde54627326bada4d843
|
4
|
+
data.tar.gz: abadc9b81ee22881793a3b383c34d4124ad271dba1915ec5c36a4b202f593ce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1f6ac0b1ff3d4c63d8ec650f7f75229dbf55c57a80255890bae216cca86b1de48b061fd7e6601430f01c8ec72e22f34e344e314bcb5c1c1ddf6b1db46c86587
|
7
|
+
data.tar.gz: 3773964a5d004140f317f676e7ea22a7f55a9671f802042d0ee2a89ecd9580b8f210c6d980b463d96a54059d2fa00db028a2c69ad871f283b165a71416ff0cb0
|
data/lib/vzaar_api/version.rb
CHANGED
data/lib/vzaar_api/video.rb
CHANGED
@@ -4,7 +4,7 @@ module VzaarApi
|
|
4
4
|
|
5
5
|
ATTR_READERS = [:id, :user_id, :account_id, :categories,
|
6
6
|
:renditions, :legacy_renditions, :url,
|
7
|
-
:thumbnail_url, :state,
|
7
|
+
:thumbnail_url, :state, :duration,
|
8
8
|
:created_at, :updated_at].freeze
|
9
9
|
|
10
10
|
ATTR_ACCESSORS = [:category_ids, :description, :private, :seo_url, :title].freeze
|
@@ -20,6 +20,7 @@ module VzaarApi
|
|
20
20
|
url: 'url',
|
21
21
|
thumbnail_url: 'thumbnail_url',
|
22
22
|
state: 'state',
|
23
|
+
duration: 'duration',
|
23
24
|
categories: categories,
|
24
25
|
renditions: renditions,
|
25
26
|
created_at: 'created_at',
|
@@ -45,6 +46,7 @@ module VzaarApi
|
|
45
46
|
specify { expect(subject.url).to eq 'url' }
|
46
47
|
specify { expect(subject.thumbnail_url).to eq 'thumbnail_url' }
|
47
48
|
specify { expect(subject.state).to eq 'state' }
|
49
|
+
specify { expect(subject.duration).to eq 'duration' }
|
48
50
|
specify { expect(subject.categories.first.id).to eq 'category-id' }
|
49
51
|
specify { expect(subject.renditions.first.id).to eq 'rendition-id' }
|
50
52
|
specify { expect(subject.created_at).to eq 'created_at' }
|
@@ -101,6 +103,7 @@ module VzaarApi
|
|
101
103
|
expect(video.url).to eq 'video-url'
|
102
104
|
expect(video.thumbnail_url).to eq 'https://view.vzaar.localhost/7574982/thumb'
|
103
105
|
expect(video.state).to eq 'ready'
|
106
|
+
expect(video.duration).to eq 66.7
|
104
107
|
expect(video.categories.count).to eq 2
|
105
108
|
expect(video.renditions.count).to eq 8
|
106
109
|
expect(video.legacy_renditions.count).to eq 8
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vzaar_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vzaar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -349,11 +349,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
349
349
|
- !ruby/object:Gem::Version
|
350
350
|
version: '0'
|
351
351
|
requirements: []
|
352
|
-
|
353
|
-
rubygems_version: 2.7.6
|
352
|
+
rubygems_version: 3.0.3
|
354
353
|
signing_key:
|
355
354
|
specification_version: 4
|
356
|
-
summary: vzaar-2.0.
|
355
|
+
summary: vzaar-2.0.2
|
357
356
|
test_files:
|
358
357
|
- spec/fixtures/vcr_cassettes/categories/each_item.yml
|
359
358
|
- spec/fixtures/vcr_cassettes/categories/find.yml
|