trailer_vote-media_types 1.4.0 → 1.5.0

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
  SHA256:
3
- metadata.gz: a6c14d32dc492af7ce8784632b82fb5212054d5b0674166fe83e51f0cad253a4
4
- data.tar.gz: 2163ca9fb28115d52107f509a2ac9a812d2a03b870c787bf11e0c87c1cc4ca12
3
+ metadata.gz: 0a9ce6e19fcfbf3e2c37f28a8f2db071516a739a34cfb61401ae798bdeb406aa
4
+ data.tar.gz: c3534e14ee1f653fec6844616569815c798206a1a93be5fb6a614ff9a52789ba
5
5
  SHA512:
6
- metadata.gz: a9d20dee1812c064df8dd3b03bd62ec826973fbac839a4e003aa1b66539fa7fff23784cb49b957a4595b22a1aa690fc3447329a9b7dd74d5eeae00b636875209
7
- data.tar.gz: 83cc83f8b8194ad3fd608dedac87d4abc8faaaa777f6b6aa872b63b52275fea57bc6b0a3ed5b5f1d75d411d39cb82c908de05b03d319c82a39be1929ac123527
6
+ metadata.gz: 864036d48a9f9fd399816481eae7ed5ebdb4000d44785306a04d12f9d877dbdff272cc44f994091fe734fd6f669e8039b350900fb8a7c266d3d346fab2d58025
7
+ data.tar.gz: 780d84018aa4df8cf33998f45a216997c44cc9378c6a4b695b1f460404c8c433ca789fe79ec01897fd726dd57d95e373c73ca707b9d366ec39a0270e9f012e89
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (1.4.0)
4
+ trailer_vote-media_types (1.5.0)
5
5
  media_types (>= 0.6.0, < 1)
6
6
 
7
7
  GEM
@@ -29,7 +29,7 @@ GEM
29
29
  json (>= 1.8, < 3)
30
30
  simplecov-html (~> 0.10.0)
31
31
  simplecov-html (0.10.2)
32
- trailer_vote-fixtures (1.7.2)
32
+ trailer_vote-fixtures (1.9.0)
33
33
 
34
34
  PLATFORMS
35
35
  ruby
@@ -44,7 +44,7 @@ DEPENDENCIES
44
44
  oj (~> 3.6)
45
45
  rake (~> 13.0)
46
46
  simplecov (~> 0.16)
47
- trailer_vote-fixtures (~> 1.7.2)
47
+ trailer_vote-fixtures (~> 1.9.0)
48
48
  trailer_vote-media_types!
49
49
 
50
50
  BUNDLED WITH
@@ -14,7 +14,7 @@ module TrailerVote
14
14
  # as likes/dislikes (interests/disinterests).
15
15
  #
16
16
  class Persona < BaseText
17
- media_type 'persona', defaults: { suffix: :json, version: 1 }
17
+ media_type 'persona', defaults: { suffix: :json, version: 2 }
18
18
 
19
19
  validations do
20
20
  version 1 do
@@ -26,12 +26,21 @@ module TrailerVote
26
26
 
27
27
  view('create') {}
28
28
  end
29
+
30
+ version 2 do
31
+ attribute :persona do
32
+ attribute :id, Types::UuidV4
33
+ link :self
34
+ link :feedback
35
+ link :push_consent
36
+ end
37
+ end
29
38
  end
30
39
 
31
40
  registrations :persona do
32
41
  view 'create', :create_persona
33
42
 
34
- versions 1
43
+ versions 1, 2
35
44
  end
36
45
  end
37
46
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '1.4.0'
5
+ VERSION = '1.5.0'
6
6
  end
7
7
  end
@@ -39,5 +39,5 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency 'oj', '~> 3.6'
40
40
  spec.add_development_dependency 'rake', '~> 13.0'
41
41
  spec.add_development_dependency 'simplecov', '~> 0.16'
42
- spec.add_development_dependency 'trailer_vote-fixtures', '~> 1.7.2'
42
+ spec.add_development_dependency 'trailer_vote-fixtures', '~> 1.9.0'
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailer_vote-media_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2019-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: media_types
@@ -148,14 +148,14 @@ dependencies:
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: 1.7.2
151
+ version: 1.9.0
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: 1.7.2
158
+ version: 1.9.0
159
159
  description:
160
160
  email:
161
161
  - dj@trailervote.com