trailer_vote-media_types 0.7.2 → 0.7.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: 849842ea0171754a9bd14bbf1da64eebffeb0132
4
- data.tar.gz: 584727b554554087d33be1647788c09c93998341
3
+ metadata.gz: 552ef6fffc7fad197c559feb665c4a31df8ff7ca
4
+ data.tar.gz: c136278d847ed36f3918e6640be64c76a1bbfde3
5
5
  SHA512:
6
- metadata.gz: 6263e50f238e58afa5370b2d87285c3528cb80d65ac8c877cc23f64bf41c496b287b91ff5cc35cf8b70c141653f3debe77fa9362e353c5a17e484167e8b9bacc
7
- data.tar.gz: bc70540eb92018404a8d80388197721563ac3d0a874343b3da60c7c023ab8279c5cd545ef49dea2319f78d5df2a26d931165ef0ff0fb37635a5aaef167adaefd
6
+ metadata.gz: f9ab63404806bf4f9a545277e6883e25dfc35643b7ce1c3370fbb14f333afab0799b9fa4fedc72959bfa3da5a2b1422d54957f51cde20b206a63c3c67c33a394
7
+ data.tar.gz: fb88bcb7ad27f14f05e87e13eed40089541df3cc32d5c9acc52112d46332b611dcdc7fb2baa61ac836de2fe43c0c64f13055c4cf268871581c5c1a8f9245e9de
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
- # 0.7.2.
1
+ # 0.7.3
2
+
3
+ - Add `type` to image self link
4
+ - Add `type` to image index links
5
+ - Add `type` to video self link
6
+ - Add `type` to video index links
7
+
8
+ # 0.7.2
2
9
 
3
10
  - Allow for `content_digest` and dimensions on image links (output)
4
11
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (0.7.2)
4
+ trailer_vote-media_types (0.7.3)
5
5
  media_types (>= 0.6.0, < 1)
6
6
 
7
7
  GEM
@@ -33,41 +33,16 @@ module TrailerVote
33
33
  not_strict
34
34
  end
35
35
 
36
- link :self
37
- link :original, allow_nil: true, optional: true do
38
- attribute :content_digest, String
39
- attribute :width, Numeric
40
- attribute :height, Numeric
41
- end
42
- link :thumbnail, allow_nil: true, optional: true do
43
- attribute :content_digest, String
44
- attribute :width, Numeric
45
- attribute :height, Numeric
46
- end
47
- link :xlarge, allow_nil: true, optional: true do
48
- attribute :content_digest, String
49
- attribute :width, Numeric
50
- attribute :height, Numeric
51
- end
52
- link :large, allow_nil: true, optional: true do
53
- attribute :content_digest, String
54
- attribute :width, Numeric
55
- attribute :height, Numeric
56
- end
57
- link :medium, allow_nil: true, optional: true do
58
- attribute :content_digest, String
59
- attribute :width, Numeric
60
- attribute :height, Numeric
61
- end
62
- link :small, allow_nil: true, optional: true do
63
- attribute :content_digest, String
64
- attribute :width, Numeric
65
- attribute :height, Numeric
36
+ link :self do
37
+ attribute :type, Types::ProductImageType
66
38
  end
67
- link :xsmall, allow_nil: true, optional: true do
68
- attribute :content_digest, String
69
- attribute :width, Numeric
70
- attribute :height, Numeric
39
+
40
+ %i[original thumbnail xlarge large medium small xsmall].each do |size|
41
+ link size, allow_nil: true, optional: true do
42
+ attribute :content_digest, String
43
+ attribute :width, Numeric
44
+ attribute :height, Numeric
45
+ end
71
46
  end
72
47
  end
73
48
 
@@ -93,6 +68,7 @@ module TrailerVote
93
68
  attribute :product_images do
94
69
  collection :_index do
95
70
  attribute :href, Types::HttpUrl
71
+ attribute :type, Types::ProductImageType
96
72
  not_strict
97
73
  end
98
74
 
@@ -36,7 +36,10 @@ module TrailerVote
36
36
  not_strict
37
37
  end
38
38
 
39
- link :self
39
+ link :self do
40
+ attribute :type, Types::ProductMovieType
41
+ end
42
+
40
43
  link :audio_fragment do
41
44
  attribute :content_digest, String
42
45
  end
@@ -71,6 +74,7 @@ module TrailerVote
71
74
  attribute :product_videos do
72
75
  collection :_index do
73
76
  attribute :href, Types::HttpUrl
77
+ attribute :type, Types::ProductMovieType
74
78
  not_strict
75
79
  end
76
80
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '0.7.2'
5
+ VERSION = '0.7.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailer_vote-media_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld