trailer_vote-media_types 1.1.0 → 1.2.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: 85a23214425bd6fa1154b875c784af40fc9ece21940bbb19d1aa9a1192277cca
4
- data.tar.gz: 043142a8aaf6da6b13ffd7097307f4e53ff2a573bc4812c1b3a72aa58f057d21
3
+ metadata.gz: 7175d13a4f214d1468a042ffaf078195c602b5a2109e7fece8da73f14f278eb9
4
+ data.tar.gz: 843c9d72c4de0aada676b4aa8c45f0ff9b9c57e8fd2b4f4491318dbc934cb3eb
5
5
  SHA512:
6
- metadata.gz: 3594649a609563b2de6bae79249e0a7f37532d6ec70a55f7276296970f184ea04b37f38300341c3026906bf24a4b983b499721d1a73d4e5eb8ea37701df0d49a
7
- data.tar.gz: 4fc586e4cf434ee7dd3ae26fcc1dcb787a10115e4c2707fd7af92007f0928388a2c1beb6f379f0b4ddf0399303eecbb90dcc784062a66d07ed6a7d728d5dabe5
6
+ metadata.gz: a00d128ea29f5635812dcc7027e788b468947f037051f79c9b5b24bf96ab5798f37fe02ad78423f9b7b1d69a1beb99714f6d952e23d3fe52aea3e512e8588457
7
+ data.tar.gz: 2ec6c0ea8aea100f1ad18d4bdd3c2e14408b486b4db8e6f32a267e06a39d3ba1a970f734a56c9b591403651ecaeb951b4dd5391a8941439418bd79f9016770d4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (1.1.0)
4
+ trailer_vote-media_types (1.2.0)
5
5
  media_types (>= 0.6.0, < 1)
6
6
 
7
7
  GEM
@@ -15,7 +15,7 @@ module TrailerVote
15
15
  # system are configured to be a tree.
16
16
  #
17
17
  class Place < BaseText
18
- media_type 'place', defaults: { suffix: :json, version: 3 }
18
+ media_type 'place', defaults: { suffix: :json, version: 4 }
19
19
 
20
20
  validations do
21
21
  index_scheme = ::MediaTypes::Scheme.new do
@@ -29,6 +29,25 @@ module TrailerVote
29
29
  end
30
30
  end
31
31
 
32
+ version 4 do
33
+ attribute :place do
34
+ attribute :name, String
35
+ attribute :parent_place, AllowNil(Types::UuidV4)
36
+ attribute :expires_at, AllowNil(String)
37
+ attribute :updated_at, Types::Iso8601
38
+
39
+ link :self
40
+ link :products_archive
41
+ link :fragments_archive
42
+ link :parent, allow_nil: true
43
+ link :children
44
+ end
45
+
46
+ view 'index' do
47
+ merge index_scheme
48
+ end
49
+ end
50
+
32
51
  version 3 do
33
52
  attribute :place do
34
53
  attribute :name, String
@@ -117,7 +136,7 @@ module TrailerVote
117
136
  view 'index', :place_urls
118
137
  view 'collection', :places
119
138
 
120
- versions 1, 2, 3
139
+ versions 1, 2, 3, 4
121
140
  end
122
141
  end
123
142
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '1.1.0'
5
+ VERSION = '1.2.0'
6
6
  end
7
7
  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.1.0
4
+ version: 1.2.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-09-13 00:00:00.000000000 Z
11
+ date: 2019-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: media_types
@@ -233,7 +233,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.0.3
236
+ rubyforge_project:
237
+ rubygems_version: 2.7.6.2
237
238
  signing_key:
238
239
  specification_version: 4
239
240
  summary: Holds the defined media types for the TrailerVote ecosystem