trailer_vote-media_types 0.7.6 → 0.8.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
  SHA1:
3
- metadata.gz: 85797c001dd7476f67fe1d52d45edacff3378cce
4
- data.tar.gz: fca038a2c3969e97e4a80944451b9ff62572fb02
3
+ metadata.gz: 862cac5c61147e0bff33f3214ed7f2a3b679691b
4
+ data.tar.gz: 0b3f851520110906de2a32ff3b4cb34ce2a49364
5
5
  SHA512:
6
- metadata.gz: 9367e291058285c432cd76205e769a35043610380606b02e2fbca2c21ff2b0832442679ba2f1993075c696b6050608948f5ba576d1725e6dcb73093e938ccf67
7
- data.tar.gz: 3b8f1d5242c845b33e2b17908c919ed780740301fc3b444a54ccbb2d4658b9943299f7d4a8e8d550efdda266a1d4287fee6566a4d7554a93e80d375e8f7a8d24
6
+ metadata.gz: 1a447f9be7a13ce0cd6da8a801330b12a3fdc0236efd0d830d6fe672178555bda55999aff2e3baedb662a57e918f7c01fe64eaa3ab67208bc340d0bc484f070c
7
+ data.tar.gz: eda62e50a356a1a8f18cf432d46854f8b2416aaa6c948df92a9bfd6e9a4ebd08cf54faf11903aa4ce9a7752abff4b1b53dd628c643d78bb040bf2325c92c07e5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.8.0
2
+
3
+ - Add `Issue` media type
4
+ - Add `issues` link to configuration media type
5
+
1
6
  # 0.7.6
2
7
 
3
8
  - Allow `content_*` to be `nil`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (0.7.6)
4
+ trailer_vote-media_types (0.8.0)
5
5
  media_types (>= 0.6.0, < 1)
6
6
 
7
7
  GEM
@@ -31,6 +31,7 @@ GEM
31
31
  simplecov-html (0.10.2)
32
32
 
33
33
  PLATFORMS
34
+ ruby
34
35
  x64-mingw32
35
36
 
36
37
  DEPENDENCIES
@@ -22,6 +22,7 @@ require_relative './media_types/product'
22
22
  require_relative './media_types/product_image'
23
23
  require_relative './media_types/product_place_link'
24
24
  require_relative './media_types/product_video'
25
+ require_relative './media_types/issue'
25
26
 
26
27
  module TrailerVote
27
28
  module MediaTypes
@@ -30,6 +30,7 @@ module TrailerVote
30
30
  link :telemetrics do
31
31
  attribute :href, Types::InfluxDbConnectionUrl
32
32
  end
33
+ link :issues
33
34
  end
34
35
  end
35
36
 
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'base_text'
4
+ require_relative 'types/iso8601'
5
+
6
+ module TrailerVote
7
+ module MediaTypes
8
+ class Issue < BaseText
9
+ media_type 'issue', defaults: { suffix: :json, version: 1 }
10
+
11
+ validations do
12
+
13
+ version 1 do
14
+ version_1_base = ::MediaTypes::Scheme.new do
15
+ attribute :error_name, String
16
+ attribute :error_message, String
17
+
18
+ attribute :rescue_context do
19
+ attribute :caller, String
20
+ attribute :args, ::Hash, allow_empty: true do
21
+ not_strict
22
+ end
23
+ end
24
+ end
25
+
26
+ attribute :issue do
27
+ merge version_1_base
28
+ attribute :updated_at, Types::Iso8601
29
+
30
+ link :self
31
+ end
32
+
33
+ view 'create' do
34
+ attribute :issue do
35
+ merge version_1_base
36
+ end
37
+ end
38
+ end
39
+ end
40
+
41
+ registrations :issue do
42
+ view 'create', :create_issue
43
+
44
+ versions 1
45
+ end
46
+
47
+ end
48
+ end
49
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '0.7.6'
5
+ VERSION = '0.8.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: 0.7.6
4
+ version: 0.8.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-15 00:00:00.000000000 Z
11
+ date: 2018-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: media_types
@@ -170,6 +170,7 @@ files:
170
170
  - lib/trailer_vote/media_types/feedback_listing.rb
171
171
  - lib/trailer_vote/media_types/fingerprint_binary.rb
172
172
  - lib/trailer_vote/media_types/interactive_player.rb
173
+ - lib/trailer_vote/media_types/issue.rb
173
174
  - lib/trailer_vote/media_types/partials/image_links.rb
174
175
  - lib/trailer_vote/media_types/persona.rb
175
176
  - lib/trailer_vote/media_types/place.rb