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 +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +0 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -0
- data/lib/trailer_vote/media_types/product_image.rb +1 -1
- data/lib/trailer_vote/media_types/product_video.rb +3 -3
- data/lib/trailer_vote/media_types/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e9d1cea79471659f0cfa1566130f307f05f7967
|
4
|
+
data.tar.gz: 25537d64992601748182f51577d7401466bf037f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5918627d64a7e36bbf11aac52acd6bce93975377cd92bc864047d94fe8085178ae112c880c67aef2f4234b852ebf5d56ccd111357a768712ea65434352783623
|
7
|
+
data.tar.gz: ef8199ce81dd683fc3705d57420aadd2294c669327fce34febf914fbb51ad191c131cd1dab40ea7ae3081d1937183641669c40114e7d29c5467aa9534ba3133c
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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 :
|
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 :
|
64
|
+
attribute :product_videos do
|
65
65
|
collection :_embedded, version_1_base
|
66
66
|
not_strict
|
67
67
|
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.
|
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-
|
11
|
+
date: 2018-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: media_types
|