trailer_vote-media_types 1.0.0 → 1.1.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: af8a57ad05a9dae347ea55d3fc39be253c23d141ec486fe75048c64dec4611a3
4
- data.tar.gz: 061d6c6902b6c92a75b6b037ce4f6be37c8d31024d762ea55f5ffe4a044bba01
3
+ metadata.gz: 85a23214425bd6fa1154b875c784af40fc9ece21940bbb19d1aa9a1192277cca
4
+ data.tar.gz: 043142a8aaf6da6b13ffd7097307f4e53ff2a573bc4812c1b3a72aa58f057d21
5
5
  SHA512:
6
- metadata.gz: 58afc55906c546c4b60e3024d06b9065b575e6a9b2fe1f21d9c7170b59fde5b4a3627efeb138773c303aba48e86165b233b7d44dfbc30bb9814eab10e822ea8b
7
- data.tar.gz: f63361199ce4fb099a271cac5344594a2958918c59e6b23c588cbba3b9bb0093f9cefc41d6aa0c9dba01a50be0c2893858c50d3ad942d49a03e72cf1eabc77ff
6
+ metadata.gz: 3594649a609563b2de6bae79249e0a7f37532d6ec70a55f7276296970f184ea04b37f38300341c3026906bf24a4b983b499721d1a73d4e5eb8ea37701df0d49a
7
+ data.tar.gz: 4fc586e4cf434ee7dd3ae26fcc1dcb787a10115e4c2707fd7af92007f0928388a2c1beb6f379f0b4ddf0399303eecbb90dcc784062a66d07ed6a7d728d5dabe5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (1.0.0)
4
+ trailer_vote-media_types (1.1.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.8.1)
24
+ oj (3.9.0)
25
25
  rake (12.3.3)
26
26
  ruby-progressbar (1.10.1)
27
27
  simplecov (0.17.0)
@@ -29,7 +29,7 @@ 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 (1.3.4)
32
+ trailer_vote-fixtures (1.5.1)
33
33
 
34
34
  PLATFORMS
35
35
  ruby
@@ -31,5 +31,6 @@ module TrailerVote
31
31
  INDEX_VIEW = ::MediaTypes::INDEX_VIEW
32
32
  COLLECTION_VIEW = ::MediaTypes::COLLECTION_VIEW
33
33
  CREATE_VIEW = ::MediaTypes::CREATE_VIEW
34
+ ORDERED_VIEW = 'ordered'
34
35
  end
35
36
  end
@@ -84,6 +84,16 @@ 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
87
97
  end
88
98
  end
89
99
 
@@ -98,6 +108,7 @@ module TrailerVote
98
108
  registrations :audio_fragment do
99
109
  view 'index', :audio_fragment_urls
100
110
  view 'collection', :audio_fragments
111
+ view 'ordered', :ordered_audio_fragment_urls
101
112
 
102
113
  versions 1
103
114
 
@@ -8,7 +8,6 @@ require_relative 'types/vote_value'
8
8
 
9
9
  module TrailerVote
10
10
  module MediaTypes
11
-
12
11
  ##
13
12
  # Media Types for Trivial Push Campaign
14
13
  #
@@ -18,25 +17,24 @@ module TrailerVote
18
17
  media_type 'push_campaign_trivial', defaults: { suffix: :json, version: 2 }
19
18
 
20
19
  validations do
21
-
22
- version 2 do
23
- attribute :push_campaign_trivial do
24
- link :action
25
- attribute :message, String
26
- attribute :schedule_at, Types::Iso8601
27
- attribute :filter do
28
- attribute :platform, AllowNil(String)
29
- attribute :region, AllowNil(String)
30
- attribute :language, AllowNil(String)
31
- attribute :timezone, AllowNil(String)
32
- attribute :vote_source, AllowNil(String)
33
- attribute :purchased, AllowNil(Types::Boolean)
34
- attribute :vote_value, AllowNil(Types::VoteValue)
35
- attribute :vote_from, AllowNil(Types::Iso8601)
36
- attribute :vote_until, AllowNil(Types::Iso8601)
37
- end
38
- end
39
- end
20
+ version 2 do
21
+ attribute :push_campaign_trivial do
22
+ link :action
23
+ attribute :message, String
24
+ attribute :schedule_at, Types::Iso8601
25
+ attribute :filter do
26
+ attribute :platform, AllowNil(String)
27
+ attribute :region, AllowNil(String)
28
+ attribute :language, AllowNil(String)
29
+ attribute :timezone, AllowNil(String)
30
+ attribute :vote_source, AllowNil(String)
31
+ attribute :purchased, AllowNil(Types::Boolean)
32
+ attribute :vote_value, AllowNil(Types::VoteValue)
33
+ attribute :vote_from, AllowNil(Types::Iso8601)
34
+ attribute :vote_until, AllowNil(Types::Iso8601)
35
+ end
36
+ end
37
+ end
40
38
 
41
39
  version 1 do
42
40
  attribute :push_campaign_trivial do
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '1.0.0'
5
+ VERSION = '1.1.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.0.0
4
+ version: 1.1.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-08-28 00:00:00.000000000 Z
11
+ date: 2019-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: media_types
@@ -233,8 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubyforge_project:
237
- rubygems_version: 2.7.6.2
236
+ rubygems_version: 3.0.3
238
237
  signing_key:
239
238
  specification_version: 4
240
239
  summary: Holds the defined media types for the TrailerVote ecosystem