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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/trailer_vote/media_types/place.rb +21 -2
- data/lib/trailer_vote/media_types/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7175d13a4f214d1468a042ffaf078195c602b5a2109e7fece8da73f14f278eb9
|
4
|
+
data.tar.gz: 843c9d72c4de0aada676b4aa8c45f0ff9b9c57e8fd2b4f4491318dbc934cb3eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a00d128ea29f5635812dcc7027e788b468947f037051f79c9b5b24bf96ab5798f37fe02ad78423f9b7b1d69a1beb99714f6d952e23d3fe52aea3e512e8588457
|
7
|
+
data.tar.gz: 2ec6c0ea8aea100f1ad18d4bdd3c2e14408b486b4db8e6f32a267e06a39d3ba1a970f734a56c9b591403651ecaeb951b4dd5391a8941439418bd79f9016770d4
|
data/Gemfile.lock
CHANGED
@@ -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:
|
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
|
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
|
+
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-
|
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
|
-
|
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
|