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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 93aeaaf70e89cc86c1233cfa98a4afd8bc5c5490
4
- data.tar.gz: 9528c12867ce347f7fa47915dc4a8f59e696d7a8
2
+ SHA256:
3
+ metadata.gz: c0ed686a923a1c54103e2c76cec0c12f52fd9b4fe6b0fe01b14c2549229d5e1d
4
+ data.tar.gz: '051128788e7d9f1fd8dc64ca2a9cd72d036446a3b5167ad53865ab5296bec09f'
5
5
  SHA512:
6
- metadata.gz: dbbc446ffc563ffd7f0aeda1b870eb7039a526e6aa330adb2c353e29b8cb62e115ff77995163fe05fc67bd956af2ce19374817094c4dee0bc4e9c0956fe1bf1e
7
- data.tar.gz: 698008ebf1a1acc776ce452b3750397bb6e05138decd0a804e2dc5ffe197f7d825e58c51aa9ea1ad5d1555d345eaa839bd6261a9cc9ae37800979c42f65c8c83
6
+ metadata.gz: 25b97be9f2b850fe2fc245efd592764838a074ac9dc5de7dec7cc67e4145099cb454c4f89705e15dc2d8ecd2ab2e0622d117851ce4874e1321609a571807122c
7
+ data.tar.gz: 2881673b58e6ca6eb030d33d44abeb2ef6954de4039b10bac037ced60f231fb6ea671bd1280b2ee974d1ce5e215ec9989c3604ce5abbf60e8616dc13a8da8cf4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.9.0
2
+
3
+ - Add `issue` media type
4
+ - Update `trailer_vote-fixtures` to 1.2.0
5
+
1
6
  # 0.8.1
2
7
 
3
8
  - Use external `trailer_vote-fixtures`.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (0.8.1)
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.12)
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 (0.1.0)
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.16.5
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '0.8.1'
5
+ VERSION = '0.9.0'
6
6
  end
7
7
  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.8.1
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: 2018-10-21 00:00:00.000000000 Z
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: '0'
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: '0'
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.6.14.1
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