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 +4 -4
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +1 -1
- data/lib/trailer_vote/media_types/product_image.rb +10 -34
- data/lib/trailer_vote/media_types/product_video.rb +5 -1
- data/lib/trailer_vote/media_types/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 552ef6fffc7fad197c559feb665c4a31df8ff7ca
|
4
|
+
data.tar.gz: c136278d847ed36f3918e6640be64c76a1bbfde3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9ab63404806bf4f9a545277e6883e25dfc35643b7ce1c3370fbb14f333afab0799b9fa4fedc72959bfa3da5a2b1422d54957f51cde20b206a63c3c67c33a394
|
7
|
+
data.tar.gz: fb88bcb7ad27f14f05e87e13eed40089541df3cc32d5c9acc52112d46332b611dcdc7fb2baa61ac836de2fe43c0c64f13055c4cf268871581c5c1a8f9245e9de
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -33,41 +33,16 @@ module TrailerVote
|
|
33
33
|
not_strict
|
34
34
|
end
|
35
35
|
|
36
|
-
link :self
|
37
|
-
|
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
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
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
|
|