trailer_vote-media_types 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/trailer_vote/media_types/partials/image_links.rb +14 -7
- 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: 849842ea0171754a9bd14bbf1da64eebffeb0132
|
4
|
+
data.tar.gz: 584727b554554087d33be1647788c09c93998341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6263e50f238e58afa5370b2d87285c3528cb80d65ac8c877cc23f64bf41c496b287b91ff5cc35cf8b70c141653f3debe77fa9362e353c5a17e484167e8b9bacc
|
7
|
+
data.tar.gz: bc70540eb92018404a8d80388197721563ac3d0a874343b3da60c7c023ab8279c5cd545ef49dea2319f78d5df2a26d931165ef0ff0fb37635a5aaef167adaefd
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -7,13 +7,20 @@ module TrailerVote
|
|
7
7
|
module Partials
|
8
8
|
IMAGE_LINKS = ::MediaTypes::Scheme.new do
|
9
9
|
link :self
|
10
|
-
|
11
|
-
link :
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
|
11
|
+
link :original do
|
12
|
+
attribute :content_digest, String, optional: true
|
13
|
+
attribute :width, Numeric, optional: true
|
14
|
+
attribute :height, Numeric, optional: true
|
15
|
+
end
|
16
|
+
|
17
|
+
%i[thumbnail xlarge large medium small xsmall].each do |size|
|
18
|
+
link size, optional: true do
|
19
|
+
attribute :content_digest, String, optional: true
|
20
|
+
attribute :width, Numeric, optional: true
|
21
|
+
attribute :height, Numeric, optional: true
|
22
|
+
end
|
23
|
+
end
|
17
24
|
end
|
18
25
|
end
|
19
26
|
end
|