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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5445bf5f8be911e6c58a146b2d4f524bcdb8d39f
4
- data.tar.gz: 18c51dba03e4d60cc2fefcaddc1fe1b9c43c0de4
3
+ metadata.gz: 849842ea0171754a9bd14bbf1da64eebffeb0132
4
+ data.tar.gz: 584727b554554087d33be1647788c09c93998341
5
5
  SHA512:
6
- metadata.gz: 12e9e417074ab6d69c3ab8d490fe6c8ca716a6004cc3bf65032b9e8f006fcc8ba6f3f73e2c64f293f52fbd1079bfbcd8791219bd7d81dd67531c3751cbc6f4c3
7
- data.tar.gz: 55097dd2ad5174cfa29f41482537f710ecf3c54c880be73eb1798a06ecba27c3c0bf901f92db12349cb888714e943969e2b4aace12fb6d7c3f1384bd0259c865
6
+ metadata.gz: 6263e50f238e58afa5370b2d87285c3528cb80d65ac8c877cc23f64bf41c496b287b91ff5cc35cf8b70c141653f3debe77fa9362e353c5a17e484167e8b9bacc
7
+ data.tar.gz: bc70540eb92018404a8d80388197721563ac3d0a874343b3da60c7c023ab8279c5cd545ef49dea2319f78d5df2a26d931165ef0ff0fb37635a5aaef167adaefd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.7.2.
2
+
3
+ - Allow for `content_digest` and dimensions on image links (output)
4
+
1
5
  # 0.7.1
2
6
 
3
7
  - Fix version 2 of sentiment feedback not registering
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (0.7.1)
4
+ trailer_vote-media_types (0.7.2)
5
5
  media_types (>= 0.6.0, < 1)
6
6
 
7
7
  GEM
@@ -7,13 +7,20 @@ module TrailerVote
7
7
  module Partials
8
8
  IMAGE_LINKS = ::MediaTypes::Scheme.new do
9
9
  link :self
10
- link :original
11
- link :thumbnail, optional: true
12
- link :xlarge, optional: true
13
- link :large, optional: true
14
- link :medium, optional: true
15
- link :small, optional: true
16
- link :xsmall, optional: true
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '0.7.1'
5
+ VERSION = '0.7.2'
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.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld