trailer_vote-media_types 1.8.0 → 2.0.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c316523a942491907e2b3c46cd66b665f2e9d43a03fde20cf952990d99573d4
|
4
|
+
data.tar.gz: c10a46a2d0c6455eb369513ddfc53025d9c83c9b13254daade8d6fdb53ba9aeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 912a553497ef5d1f08c8257f0f5712802bc503a54ca77b3c754c78c6403668dba3ca8b8bd7c8313fa67270f06c6ba81a2d208338c9a56135a9d06af5a859d6f0
|
7
|
+
data.tar.gz: 1bfea720713a7593c42a209587e88b58847b759eca28e29cbb519e902cfb0b4352d15d0b59ac57a68122c821c2cc9d0b99f8cfd510457532613ad8a742236cd9
|
data/Gemfile.lock
CHANGED
@@ -29,6 +29,7 @@ require_relative './media_types/push_consent'
|
|
29
29
|
require_relative './media_types/push_token_index'
|
30
30
|
require_relative './media_types/push_token_android'
|
31
31
|
require_relative './media_types/push_token_ios'
|
32
|
+
require_relative './media_types/ordered_fragment'
|
32
33
|
require_relative './media_types/release_push_campaign'
|
33
34
|
|
34
35
|
module TrailerVote
|
@@ -84,16 +84,6 @@ module TrailerVote
|
|
84
84
|
not_strict
|
85
85
|
end
|
86
86
|
end
|
87
|
-
|
88
|
-
view 'ordered' do
|
89
|
-
attribute :ordered_fragments do
|
90
|
-
collection :_index, allow_empty: true do
|
91
|
-
attribute :href, Types::HttpUrl
|
92
|
-
attribute :q, Float
|
93
|
-
end
|
94
|
-
not_strict
|
95
|
-
end
|
96
|
-
end
|
97
87
|
end
|
98
88
|
end
|
99
89
|
|
@@ -108,7 +98,6 @@ module TrailerVote
|
|
108
98
|
registrations :audio_fragment do
|
109
99
|
view 'index', :audio_fragment_urls
|
110
100
|
view 'collection', :audio_fragments
|
111
|
-
view 'ordered', :ordered_audio_fragment_urls
|
112
101
|
|
113
102
|
versions 1
|
114
103
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'base_text'
|
4
|
+
require_relative 'types/http_url'
|
5
|
+
|
6
|
+
module TrailerVote
|
7
|
+
module MediaTypes
|
8
|
+
class OrderedFragment < BaseText
|
9
|
+
|
10
|
+
media_type 'ordered_fragment', defaults: { suffix: :json, version: 1, view: :index }
|
11
|
+
|
12
|
+
validations do
|
13
|
+
version 1 do
|
14
|
+
view 'index' do
|
15
|
+
attribute :ordered_fragments do
|
16
|
+
collection :_index, allow_empty: true do
|
17
|
+
attribute :href, Types::HttpUrl
|
18
|
+
attribute :q, Float
|
19
|
+
end
|
20
|
+
not_strict
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
registrations :audio_fragment do
|
27
|
+
view 'index', :ordered_fragment_urls
|
28
|
+
|
29
|
+
versions 1
|
30
|
+
|
31
|
+
type_alias 'ordered-fragment'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
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:
|
4
|
+
version: 2.0.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-12-
|
11
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: media_types
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/trailer_vote/media_types/fingerprint_binary.rb
|
186
186
|
- lib/trailer_vote/media_types/interactive_player.rb
|
187
187
|
- lib/trailer_vote/media_types/issue.rb
|
188
|
+
- lib/trailer_vote/media_types/ordered_fragment.rb
|
188
189
|
- lib/trailer_vote/media_types/partials/image_links.rb
|
189
190
|
- lib/trailer_vote/media_types/persona.rb
|
190
191
|
- lib/trailer_vote/media_types/place.rb
|