trailer_vote-media_types 2.0.0 → 2.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: 0c316523a942491907e2b3c46cd66b665f2e9d43a03fde20cf952990d99573d4
4
- data.tar.gz: c10a46a2d0c6455eb369513ddfc53025d9c83c9b13254daade8d6fdb53ba9aeb
3
+ metadata.gz: 1288d7dad9c97ecc0a247b2ea0e97080350de1d05f8d99e1b90ec1c701e2d6a6
4
+ data.tar.gz: af35a13402987a4377b6e1987203bc1e0cb4f3c90957e5e4a395ede1adef76ef
5
5
  SHA512:
6
- metadata.gz: 912a553497ef5d1f08c8257f0f5712802bc503a54ca77b3c754c78c6403668dba3ca8b8bd7c8313fa67270f06c6ba81a2d208338c9a56135a9d06af5a859d6f0
7
- data.tar.gz: 1bfea720713a7593c42a209587e88b58847b759eca28e29cbb519e902cfb0b4352d15d0b59ac57a68122c821c2cc9d0b99f8cfd510457532613ad8a742236cd9
6
+ metadata.gz: 8547e41d4e776751d4bc2432141f0e3e4ca35571593b691bcf761711c76fc1b369aaac36b128189fb79ce20115bf096648e8128e81ca3ee42ad481e1019f0db1
7
+ data.tar.gz: 83c2ca51ee349191ac9c5788481216a181c280c167e3a7cc4ccbddc6c1e58e1bd21a3129c02a737b183cb992bbe50915b92bc38407e1988d5ca9a15c358fa89f
data/Gemfile.lock CHANGED
@@ -9,9 +9,9 @@ GEM
9
9
  specs:
10
10
  ansi (1.5.0)
11
11
  awesome_print (1.8.0)
12
- builder (3.2.3)
12
+ builder (3.2.4)
13
13
  docile (1.3.2)
14
- json (2.2.0)
14
+ json (2.3.0)
15
15
  media_types (0.6.2)
16
16
  minitest (5.13.0)
17
17
  minitest-ci (3.4.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.13.0)
32
+ trailer_vote-fixtures (1.14.0)
33
33
 
34
34
  PLATFORMS
35
35
  ruby
@@ -44,7 +44,7 @@ DEPENDENCIES
44
44
  oj (~> 3.6)
45
45
  rake (~> 13.0)
46
46
  simplecov (~> 0.16)
47
- trailer_vote-fixtures (~> 1.13.0)
47
+ trailer_vote-fixtures (~> 1.14.0)
48
48
  trailer_vote-media_types!
49
49
 
50
50
  BUNDLED WITH
@@ -0,0 +1,30 @@
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
+
9
+ ##
10
+ # Media Type for the Manifest Update action
11
+ #
12
+ # The manifest update action is used to force clients to update the manifest
13
+ #
14
+ class ManifestUpdate < BaseText
15
+ media_type 'manifest_update', defaults: { suffix: :json, version: 1 }
16
+
17
+ validations do
18
+
19
+ version 1 do
20
+ attribute :manifest_update do
21
+ end
22
+ end
23
+ end
24
+
25
+ registrations :manifest_update do
26
+ versions 1
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,36 @@
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
+
9
+ ##
10
+ # Media Type for Android Push Recipe
11
+ #
12
+ # The push recipe is a blueprint for sending mass push notifications
13
+ #
14
+ class PushRecipeAndroid < BaseText
15
+ media_type 'push_recipe_android', defaults: { suffix: :json, version: 1 }
16
+
17
+ validations do
18
+
19
+ version 1 do
20
+ attribute :push_recipe_android do
21
+ attribute :auth_token, String
22
+ collection :tokens, String, allow_empty: true
23
+ attribute :mediatype, String
24
+ attribute :payload do
25
+ not_strict
26
+ end
27
+ end
28
+ end
29
+ end
30
+
31
+ registrations :push_recipe_android do
32
+ versions 1
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,39 @@
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
+
9
+ ##
10
+ # Media Type for iOS push recipe
11
+ #
12
+ # The push recipe is a blueprint for sending mass push notifications
13
+ #
14
+ class PushRecipeIos < BaseText
15
+ media_type 'push_recipe_ios', defaults: { suffix: :json, version: 1 }
16
+
17
+ validations do
18
+
19
+ version 1 do
20
+ attribute :push_recipe_ios do
21
+ attribute :auth_key, String
22
+ attribute :key_id, String
23
+ attribute :team_id, String
24
+ attribute :topic, String
25
+ collection :tokens, String, allow_empty: true
26
+ attribute :mediatype, String
27
+ attribute :payload do
28
+ not_strict
29
+ end
30
+ end
31
+ end
32
+ end
33
+
34
+ registrations :push_recipe_ios do
35
+ versions 1
36
+ end
37
+ end
38
+ end
39
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '2.0.0'
5
+ VERSION = '2.1.0'
6
6
  end
7
7
  end
@@ -29,8 +29,11 @@ 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/push_recipe_android'
33
+ require_relative './media_types/push_recipe_ios'
32
34
  require_relative './media_types/ordered_fragment'
33
35
  require_relative './media_types/release_push_campaign'
36
+ require_relative './media_types/manifest_update'
34
37
 
35
38
  module TrailerVote
36
39
  module MediaTypes
@@ -39,5 +39,5 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency 'oj', '~> 3.6'
40
40
  spec.add_development_dependency 'rake', '~> 13.0'
41
41
  spec.add_development_dependency 'simplecov', '~> 0.16'
42
- spec.add_development_dependency 'trailer_vote-fixtures', '~> 1.13.0'
42
+ spec.add_development_dependency 'trailer_vote-fixtures', '~> 1.14.0'
43
43
  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: 2.0.0
4
+ version: 2.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-12-09 00:00:00.000000000 Z
11
+ date: 2019-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: media_types
@@ -148,14 +148,14 @@ dependencies:
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: 1.13.0
151
+ version: 1.14.0
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: 1.13.0
158
+ version: 1.14.0
159
159
  description:
160
160
  email:
161
161
  - dj@trailervote.com
@@ -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/manifest_update.rb
188
189
  - lib/trailer_vote/media_types/ordered_fragment.rb
189
190
  - lib/trailer_vote/media_types/partials/image_links.rb
190
191
  - lib/trailer_vote/media_types/persona.rb
@@ -197,6 +198,8 @@ files:
197
198
  - lib/trailer_vote/media_types/products_listing.rb
198
199
  - lib/trailer_vote/media_types/push_consent.rb
199
200
  - lib/trailer_vote/media_types/push_manifest.rb
201
+ - lib/trailer_vote/media_types/push_recipe_android.rb
202
+ - lib/trailer_vote/media_types/push_recipe_ios.rb
200
203
  - lib/trailer_vote/media_types/push_token_android.rb
201
204
  - lib/trailer_vote/media_types/push_token_index.rb
202
205
  - lib/trailer_vote/media_types/push_token_ios.rb
@@ -240,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
243
  - !ruby/object:Gem::Version
241
244
  version: '0'
242
245
  requirements: []
243
- rubygems_version: 3.0.3
246
+ rubygems_version: 3.0.6
244
247
  signing_key:
245
248
  specification_version: 4
246
249
  summary: Holds the defined media types for the TrailerVote ecosystem