trailer_vote-media_types 0.6.2 → 0.6.3

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
  SHA1:
3
- metadata.gz: 9d1969f736390666d6b8c0fb8e5bc4aec3dc8c46
4
- data.tar.gz: 5539d8691d3c00e9d5437194eb1e168745a8aba4
3
+ metadata.gz: 5e9d1cea79471659f0cfa1566130f307f05f7967
4
+ data.tar.gz: 25537d64992601748182f51577d7401466bf037f
5
5
  SHA512:
6
- metadata.gz: 2439849fbbda9c2a4b6aba4d8d479d37e4ea8e1e22713d9a06e89b30367fc4b7ed3eb0878a350b34239e4b3ad67ccd84018b2ebcab8e171329b80f858b33121a
7
- data.tar.gz: 7e00d8f9e48d3887d4b9a384852205742555610cf6364586e93eab580a2fe44263738700ef2afe989f1756c0bdc6c53be974d5a6b869714229ad29cf61050c9b
6
+ metadata.gz: 5918627d64a7e36bbf11aac52acd6bce93975377cd92bc864047d94fe8085178ae112c880c67aef2f4234b852ebf5d56ccd111357a768712ea65434352783623
7
+ data.tar.gz: ef8199ce81dd683fc3705d57420aadd2294c669327fce34febf914fbb51ad191c131cd1dab40ea7ae3081d1937183641669c40114e7d29c5467aa9534ba3133c
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ AllCops:
5
5
  Exclude:
6
6
  - 'Gemfile'
7
7
  - 'bin/**/*'
8
- TargetRubyVersion: 2.3
8
+ TargetRubyVersion: 2.4
9
9
 
10
10
  Layout/EmptyLinesAroundClassBody:
11
11
  Enabled: false
data/.travis.yml CHANGED
@@ -2,7 +2,6 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.3.0
6
5
  - 2.4
7
6
  - 2.5
8
7
  - 2.6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.6.3
2
+
3
+ - Fix `product_video` create root key
4
+
1
5
  # 0.6.2
2
6
 
3
7
  - Loosen Gem dependency versions to allow any minor update, except for dogfooded gems, which are allowed major updates, until they hit 1.0.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (0.6.2)
4
+ trailer_vote-media_types (0.6.3)
5
5
  media_types (>= 0.6.0, < 1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # TrailerVote::MediaTypes
2
+ [![Build Status](https://travis-ci.com/TrailerVote/trailervote-media-types.svg?branch=master)](https://travis-ci.com/TrailerVote/trailervote-media-types)
3
+ [![Gem Version](https://badge.fury.io/rb/trailer_vote-media_types.svg)](https://badge.fury.io/rb/trailer_vote-media_types)
4
+ [![Maintainability](https://api.codeclimate.com/v1/badges/f5ea339bc868a4e3c362/maintainability)](https://codeclimate.com/github/TrailerVote/trailervote-media-types/maintainability)
2
5
 
3
6
  ## Installation
4
7
 
@@ -17,7 +17,7 @@ module TrailerVote
17
17
  version 1 do
18
18
  version_1_creation = ::MediaTypes::Scheme.new do
19
19
  attribute :identifier, String
20
- attribute :source_url, Types::HttpUrl
20
+ attribute :source_url, AnyOf(Types::HttpUrl, String)
21
21
  attribute :expires_at, AllowNil(Types::Iso8601), optional: true
22
22
  end
23
23
 
@@ -18,7 +18,7 @@ module TrailerVote
18
18
  version 1 do
19
19
  version_1_creation = ::MediaTypes::Scheme.new do
20
20
  attribute :identifier, String
21
- attribute :source_url, Types::HttpUrl
21
+ attribute :source_url, AnyOf(Types::HttpUrl, String)
22
22
  attribute :expires_at, AllowNil(Types::Iso8601), optional: true
23
23
  end
24
24
 
@@ -54,14 +54,14 @@ module TrailerVote
54
54
  end
55
55
 
56
56
  view 'create' do
57
- attribute :video do
57
+ attribute :product_video do
58
58
  merge version_1_creation
59
59
  not_strict
60
60
  end
61
61
  end
62
62
 
63
63
  view 'collection' do
64
- attribute :videos do
64
+ attribute :product_videos do
65
65
  collection :_embedded, version_1_base
66
66
  not_strict
67
67
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '0.6.2'
5
+ VERSION = '0.6.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailer_vote-media_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-06 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: media_types