trailer_vote-media_types 0.7.3 → 0.7.4

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: 552ef6fffc7fad197c559feb665c4a31df8ff7ca
4
- data.tar.gz: c136278d847ed36f3918e6640be64c76a1bbfde3
3
+ metadata.gz: 630e09348359830a39cf237559782d88b26552c0
4
+ data.tar.gz: d79aef24dd96c69cdfe3840f56d2da8fc54afc7c
5
5
  SHA512:
6
- metadata.gz: f9ab63404806bf4f9a545277e6883e25dfc35643b7ce1c3370fbb14f333afab0799b9fa4fedc72959bfa3da5a2b1422d54957f51cde20b206a63c3c67c33a394
7
- data.tar.gz: fb88bcb7ad27f14f05e87e13eed40089541df3cc32d5c9acc52112d46332b611dcdc7fb2baa61ac836de2fe43c0c64f13055c4cf268871581c5c1a8f9245e9de
6
+ metadata.gz: fdb8e45b07dc8f51aee8fcebcf0240c3b046334c76764b1226fb5a418396914e8230e18d97a99111421e2af07e9696befecfbfc76e0122cc0e6e38d4df2784b4
7
+ data.tar.gz: 928e5a1078625e0300f522591340d53c75ecd89b4cc58f3085bf31470f8d2ab8ae98901910b77f8a89c2024bb01cfb488aaf848a97a3d867de8cf76acbb7483a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.7.4
2
+
3
+ - Allow `type` on partial `image_links` (such as sentiment_feedback)
4
+
1
5
  # 0.7.3
2
6
 
3
7
  - Add `type` to image self link
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (0.7.3)
4
+ trailer_vote-media_types (0.7.4)
5
5
  media_types (>= 0.6.0, < 1)
6
6
 
7
7
  GEM
@@ -1,12 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'media_types'
4
+ require_relative '../types/product_image_type'
4
5
 
5
6
  module TrailerVote
6
7
  module MediaTypes
7
8
  module Partials
8
9
  IMAGE_LINKS = ::MediaTypes::Scheme.new do
9
- link :self
10
+ link :self do
11
+ attribute :type, Types::ProductImageType, optional: true
12
+ end
10
13
 
11
14
  link :original do
12
15
  attribute :content_digest, String, optional: true
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '0.7.3'
5
+ VERSION = '0.7.4'
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.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld