trailer_vote-media_types 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +6 -5
- data/lib/trailer_vote/media_types/issue.rb +15 -0
- data/lib/trailer_vote/media_types/version.rb +1 -1
- data/trailer_vote-media_types.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c0ed686a923a1c54103e2c76cec0c12f52fd9b4fe6b0fe01b14c2549229d5e1d
|
4
|
+
data.tar.gz: '051128788e7d9f1fd8dc64ca2a9cd72d036446a3b5167ad53865ab5296bec09f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b97be9f2b850fe2fc245efd592764838a074ac9dc5de7dec7cc67e4145099cb454c4f89705e15dc2d8ecd2ab2e0622d117851ce4874e1321609a571807122c
|
7
|
+
data.tar.gz: 2881673b58e6ca6eb030d33d44abeb2ef6954de4039b10bac037ced60f231fb6ea671bd1280b2ee974d1ce5e215ec9989c3604ce5abbf60e8616dc13a8da8cf4
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trailer_vote-media_types (0.
|
4
|
+
trailer_vote-media_types (0.9.0)
|
5
5
|
media_types (>= 0.6.0, < 1)
|
6
6
|
|
7
7
|
GEM
|
@@ -21,7 +21,7 @@ GEM
|
|
21
21
|
builder
|
22
22
|
minitest (>= 5.0)
|
23
23
|
ruby-progressbar
|
24
|
-
oj (3.6
|
24
|
+
oj (3.7.6)
|
25
25
|
rake (10.5.0)
|
26
26
|
ruby-progressbar (1.10.0)
|
27
27
|
simplecov (0.16.1)
|
@@ -29,9 +29,10 @@ 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 (
|
32
|
+
trailer_vote-fixtures (1.2.0)
|
33
33
|
|
34
34
|
PLATFORMS
|
35
|
+
ruby
|
35
36
|
x64-mingw32
|
36
37
|
|
37
38
|
DEPENDENCIES
|
@@ -43,8 +44,8 @@ DEPENDENCIES
|
|
43
44
|
oj (~> 3.6)
|
44
45
|
rake (~> 10.0)
|
45
46
|
simplecov (~> 0.16)
|
46
|
-
trailer_vote-fixtures
|
47
|
+
trailer_vote-fixtures (~> 1.2)
|
47
48
|
trailer_vote-media_types!
|
48
49
|
|
49
50
|
BUNDLED WITH
|
50
|
-
1.
|
51
|
+
1.17.3
|
@@ -9,6 +9,16 @@ module TrailerVote
|
|
9
9
|
media_type 'issue', defaults: { suffix: :json, version: 1 }
|
10
10
|
|
11
11
|
validations do
|
12
|
+
index_scheme = ::MediaTypes::Scheme.new do
|
13
|
+
attribute :issues do
|
14
|
+
collection :_index, allow_empty: true do
|
15
|
+
attribute :href, Types::HttpUrl
|
16
|
+
not_strict
|
17
|
+
end
|
18
|
+
|
19
|
+
not_strict
|
20
|
+
end
|
21
|
+
end
|
12
22
|
|
13
23
|
version 1 do
|
14
24
|
version_1_base = ::MediaTypes::Scheme.new do
|
@@ -35,11 +45,16 @@ module TrailerVote
|
|
35
45
|
merge version_1_base
|
36
46
|
end
|
37
47
|
end
|
48
|
+
|
49
|
+
view 'index' do
|
50
|
+
merge index_scheme
|
51
|
+
end
|
38
52
|
end
|
39
53
|
end
|
40
54
|
|
41
55
|
registrations :issue do
|
42
56
|
view 'create', :create_issue
|
57
|
+
view 'index', :issue_urls
|
43
58
|
|
44
59
|
versions 1
|
45
60
|
end
|
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_development_dependency 'oj', '~> 3.6'
|
38
38
|
spec.add_development_dependency 'rake', '~> 10.0'
|
39
39
|
spec.add_development_dependency 'simplecov', '~> 0.16'
|
40
|
-
spec.add_development_dependency 'trailer_vote-fixtures'
|
40
|
+
spec.add_development_dependency 'trailer_vote-fixtures', '~> 1.2'
|
41
41
|
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: 0.
|
4
|
+
version: 0.9.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:
|
11
|
+
date: 2019-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: media_types
|
@@ -146,16 +146,16 @@ dependencies:
|
|
146
146
|
name: trailer_vote-fixtures
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- - "
|
149
|
+
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
151
|
+
version: '1.2'
|
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: '
|
158
|
+
version: '1.2'
|
159
159
|
description:
|
160
160
|
email:
|
161
161
|
- dj@trailervote.com
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project:
|
235
|
-
rubygems_version: 2.
|
235
|
+
rubygems_version: 2.7.8
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: Holds the defined media types for the TrailerVote ecosystem
|