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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862cac5c61147e0bff33f3214ed7f2a3b679691b
|
4
|
+
data.tar.gz: 0b3f851520110906de2a32ff3b4cb34ce2a49364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a447f9be7a13ce0cd6da8a801330b12a3fdc0236efd0d830d6fe672178555bda55999aff2e3baedb662a57e918f7c01fe64eaa3ab67208bc340d0bc484f070c
|
7
|
+
data.tar.gz: eda62e50a356a1a8f18cf432d46854f8b2416aaa6c948df92a9bfd6e9a4ebd08cf54faf11903aa4ce9a7752abff4b1b53dd628c643d78bb040bf2325c92c07e5
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -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
|
@@ -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
|
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.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-
|
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
|