trailer_vote-media_types 1.8.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec98b640e9300ba2162b2a05e1d0682f65307c993e4fa7fdf4a9b7e223d8030a
4
- data.tar.gz: '07292111018cb671bf56179ab63dd6298aabe3be2208deb8d53b20c9879f9014'
3
+ metadata.gz: 0c316523a942491907e2b3c46cd66b665f2e9d43a03fde20cf952990d99573d4
4
+ data.tar.gz: c10a46a2d0c6455eb369513ddfc53025d9c83c9b13254daade8d6fdb53ba9aeb
5
5
  SHA512:
6
- metadata.gz: 65cdf53918a4c8ad22a65b423ddd838ea33d8f13887b612359a86ca5538c07006df5147e6cabeda03cbef446d1baef7cd677fd47fb8fbf64c110a31618652fba
7
- data.tar.gz: b6c9275636d5ad33672548fe1cfd42a21885c86d3f43827ebbd8dfd7bc7e28cf347bf14375bcec8ef6f5f8ed830b203cb49f13d3867fe6a6e28669ef24f085ef
6
+ metadata.gz: 912a553497ef5d1f08c8257f0f5712802bc503a54ca77b3c754c78c6403668dba3ca8b8bd7c8313fa67270f06c6ba81a2d208338c9a56135a9d06af5a859d6f0
7
+ data.tar.gz: 1bfea720713a7593c42a209587e88b58847b759eca28e29cbb519e902cfb0b4352d15d0b59ac57a68122c821c2cc9d0b99f8cfd510457532613ad8a742236cd9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (1.8.0)
4
+ trailer_vote-media_types (2.0.0)
5
5
  media_types (>= 0.6.0, < 1)
6
6
 
7
7
  GEM
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '1.8.0'
5
+ VERSION = '2.0.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: 1.8.0
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-05 00:00:00.000000000 Z
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