vzaar_api 2.0.1 → 2.0.2

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: 8b2a8bb6c3c1e32cf3a7fecd0d5323fc1fba1972a774b6502aadd1c00352aeb0
4
- data.tar.gz: f34001576b71d42580328f96d3c0623df78ad150b9ab3cd98f5d7d63030dd892
3
+ metadata.gz: 2fab7eff5ea2987e97b8a84fe0633faa74018c4e9f29bde54627326bada4d843
4
+ data.tar.gz: abadc9b81ee22881793a3b383c34d4124ad271dba1915ec5c36a4b202f593ce6
5
5
  SHA512:
6
- metadata.gz: 482edfd45da157a5aec9acc3a8d1b71cc40c825ee1a5417198c29d9ce8a0b40cd0051dea5d257307046794fb774b7ce8b3b60d72dc98b6dcbba04b31b52f2f62
7
- data.tar.gz: 6b7293a4df35e0850ea3237fc79136887d69a8301b22975ff0f41ce9384bf66944285f6500a637774db98ee4ef500e137b074e57987e02ca04c5cfa73ce2bc5f
6
+ metadata.gz: e1f6ac0b1ff3d4c63d8ec650f7f75229dbf55c57a80255890bae216cca86b1de48b061fd7e6601430f01c8ec72e22f34e344e314bcb5c1c1ddf6b1db46c86587
7
+ data.tar.gz: 3773964a5d004140f317f676e7ea22a7f55a9671f802042d0ee2a89ecd9580b8f210c6d980b463d96a54059d2fa00db028a2c69ad871f283b165a71416ff0cb0
@@ -1,4 +1,4 @@
1
1
  module VzaarApi
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  UPLOADER = 'Ruby-2.0.0'
4
4
  end
@@ -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.1
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-01-09 00:00:00.000000000 Z
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
- rubyforge_project:
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.1
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