trailer_vote-media_types 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +12 -12
  3. data/.rubocop.yml +29 -29
  4. data/.travis.yml +18 -18
  5. data/CHANGELOG.md +82 -82
  6. data/Gemfile +8 -8
  7. data/Gemfile.lock +49 -51
  8. data/README.md +118 -118
  9. data/Rakefile +12 -12
  10. data/bin/console +16 -16
  11. data/bin/setup +8 -8
  12. data/lib/trailer_vote/media_types.rb +1 -0
  13. data/lib/trailer_vote/media_types/audio_fragment.rb +108 -108
  14. data/lib/trailer_vote/media_types/base_text.rb +22 -22
  15. data/lib/trailer_vote/media_types/carousel.rb +42 -42
  16. data/lib/trailer_vote/media_types/client_configuration.rb +35 -35
  17. data/lib/trailer_vote/media_types/configuration.rb +139 -139
  18. data/lib/trailer_vote/media_types/errors.rb +31 -31
  19. data/lib/trailer_vote/media_types/feedback.rb +50 -50
  20. data/lib/trailer_vote/media_types/feedback_listing.rb +49 -49
  21. data/lib/trailer_vote/media_types/fingerprint_binary.rb +67 -67
  22. data/lib/trailer_vote/media_types/interactive_player.rb +33 -33
  23. data/lib/trailer_vote/media_types/issue.rb +64 -64
  24. data/lib/trailer_vote/media_types/ordered_fragment.rb +35 -35
  25. data/lib/trailer_vote/media_types/partials/image_links.rb +30 -30
  26. data/lib/trailer_vote/media_types/persona.rb +47 -47
  27. data/lib/trailer_vote/media_types/place.rb +143 -143
  28. data/lib/trailer_vote/media_types/product.rb +191 -191
  29. data/lib/trailer_vote/media_types/product_image.rb +96 -96
  30. data/lib/trailer_vote/media_types/product_lookup.rb +37 -37
  31. data/lib/trailer_vote/media_types/product_place_link.rb +36 -36
  32. data/lib/trailer_vote/media_types/product_video.rb +100 -100
  33. data/lib/trailer_vote/media_types/products_listing.rb +43 -43
  34. data/lib/trailer_vote/media_types/push_consent.rb +44 -44
  35. data/lib/trailer_vote/media_types/push_manifest.rb +44 -44
  36. data/lib/trailer_vote/media_types/push_token_android.rb +41 -41
  37. data/lib/trailer_vote/media_types/push_token_index.rb +42 -42
  38. data/lib/trailer_vote/media_types/push_token_ios.rb +41 -41
  39. data/lib/trailer_vote/media_types/push_trivial_campaign.rb +219 -219
  40. data/lib/trailer_vote/media_types/release_push_campaign.rb +77 -77
  41. data/lib/trailer_vote/media_types/sentiment_feedback.rb +100 -100
  42. data/lib/trailer_vote/media_types/types/boolean.rb +15 -15
  43. data/lib/trailer_vote/media_types/types/formatted_url.rb +51 -51
  44. data/lib/trailer_vote/media_types/types/http_url.rb +23 -23
  45. data/lib/trailer_vote/media_types/types/influx_db_connection_url.rb +10 -10
  46. data/lib/trailer_vote/media_types/types/iso8601.rb +10 -10
  47. data/lib/trailer_vote/media_types/types/local_time.rb +11 -11
  48. data/lib/trailer_vote/media_types/types/product_data_type.rb +15 -15
  49. data/lib/trailer_vote/media_types/types/product_image_type.rb +25 -25
  50. data/lib/trailer_vote/media_types/types/product_movie_handler.rb +16 -16
  51. data/lib/trailer_vote/media_types/types/product_movie_type.rb +17 -17
  52. data/lib/trailer_vote/media_types/types/uuid_v4.rb +10 -10
  53. data/lib/trailer_vote/media_types/types/vote_value.rb +17 -17
  54. data/lib/trailer_vote/media_types/version.rb +7 -7
  55. data/lib/trailer_vote/media_types/vista_config.rb +37 -0
  56. data/trailer_vote-media_types.gemspec +43 -43
  57. metadata +6 -5
@@ -1,15 +1,15 @@
1
- # frozen_string_literal: true
2
-
3
- require 'media_types'
4
-
5
- module TrailerVote
6
- module MediaTypes
7
- module Types
8
- # noinspection RubyConstantNamingConvention
9
- ProductDataType = ::MediaTypes::Scheme.AnyOf(
10
- 'movie',
11
- 'book'
12
- )
13
- end
14
- end
15
- end
1
+ # frozen_string_literal: true
2
+
3
+ require 'media_types'
4
+
5
+ module TrailerVote
6
+ module MediaTypes
7
+ module Types
8
+ # noinspection RubyConstantNamingConvention
9
+ ProductDataType = ::MediaTypes::Scheme.AnyOf(
10
+ 'movie',
11
+ 'book'
12
+ )
13
+ end
14
+ end
15
+ end
@@ -1,25 +1,25 @@
1
- # frozen_string_literal: true
2
-
3
- require 'media_types'
4
-
5
- module TrailerVote
6
- module MediaTypes
7
- module Types
8
- # noinspection RubyConstantNamingConvention
9
- ProductImageType = ::MediaTypes::Scheme.AnyOf(
10
- 'backdrop',
11
- 'poster'
12
- )
13
-
14
- # noinspection RubyConstantNamingConvention
15
- ProductImageTypeV1 = ::MediaTypes::Scheme.AnyOf(
16
- 'backdrop',
17
- 'poster',
18
- 'Poster',
19
- 'HeroMobileDynamic',
20
- 'PosterDynamic',
21
- 'HeroDesktopDynamic'
22
- )
23
- end
24
- end
25
- end
1
+ # frozen_string_literal: true
2
+
3
+ require 'media_types'
4
+
5
+ module TrailerVote
6
+ module MediaTypes
7
+ module Types
8
+ # noinspection RubyConstantNamingConvention
9
+ ProductImageType = ::MediaTypes::Scheme.AnyOf(
10
+ 'backdrop',
11
+ 'poster'
12
+ )
13
+
14
+ # noinspection RubyConstantNamingConvention
15
+ ProductImageTypeV1 = ::MediaTypes::Scheme.AnyOf(
16
+ 'backdrop',
17
+ 'poster',
18
+ 'Poster',
19
+ 'HeroMobileDynamic',
20
+ 'PosterDynamic',
21
+ 'HeroDesktopDynamic'
22
+ )
23
+ end
24
+ end
25
+ end
@@ -1,16 +1,16 @@
1
- # frozen_string_literal: true
2
-
3
- require 'media_types'
4
-
5
- module TrailerVote
6
- module MediaTypes
7
- module Types
8
- # noinspection RubyConstantNamingConvention
9
- ProductMovieHandler = ::MediaTypes::Scheme.AnyOf(
10
- 'youtube',
11
- 'vimeo',
12
- 'url'
13
- )
14
- end
15
- end
16
- end
1
+ # frozen_string_literal: true
2
+
3
+ require 'media_types'
4
+
5
+ module TrailerVote
6
+ module MediaTypes
7
+ module Types
8
+ # noinspection RubyConstantNamingConvention
9
+ ProductMovieHandler = ::MediaTypes::Scheme.AnyOf(
10
+ 'youtube',
11
+ 'vimeo',
12
+ 'url'
13
+ )
14
+ end
15
+ end
16
+ end
@@ -1,17 +1,17 @@
1
- # frozen_string_literal: true
2
-
3
- require 'media_types'
4
-
5
- module TrailerVote
6
- module MediaTypes
7
- module Types
8
- # noinspection RubyConstantNamingConvention
9
- ProductMovieType = ::MediaTypes::Scheme.AnyOf(
10
- 'Trailer',
11
- 'Teaser',
12
- 'Rewards',
13
- 'Advert'
14
- )
15
- end
16
- end
17
- end
1
+ # frozen_string_literal: true
2
+
3
+ require 'media_types'
4
+
5
+ module TrailerVote
6
+ module MediaTypes
7
+ module Types
8
+ # noinspection RubyConstantNamingConvention
9
+ ProductMovieType = ::MediaTypes::Scheme.AnyOf(
10
+ 'Trailer',
11
+ 'Teaser',
12
+ 'Rewards',
13
+ 'Advert'
14
+ )
15
+ end
16
+ end
17
+ end
@@ -1,10 +1,10 @@
1
- # frozen_string_literal: true
2
-
3
- module TrailerVote
4
- module MediaTypes
5
- module Types
6
- # noinspection RubyConstantNamingConvention
7
- UuidV4 = /[A-z0-9]{8}-[A-z0-9]{4}-4[A-z0-9]{3}-[A-z0-9]{4}-[A-z0-9]{12}/ # rubocop:disable Naming/ConstantName
8
- end
9
- end
10
- end
1
+ # frozen_string_literal: true
2
+
3
+ module TrailerVote
4
+ module MediaTypes
5
+ module Types
6
+ # noinspection RubyConstantNamingConvention
7
+ UuidV4 = /[A-z0-9]{8}-[A-z0-9]{4}-4[A-z0-9]{3}-[A-z0-9]{4}-[A-z0-9]{12}/ # rubocop:disable Naming/ConstantName
8
+ end
9
+ end
10
+ end
@@ -1,17 +1,17 @@
1
- # frozen_string_literal: true
2
-
3
- require 'media_types'
4
-
5
- module TrailerVote
6
- module MediaTypes
7
- module Types
8
- # noinspection RubyConstantNamingConvention
9
- VoteValue = ::MediaTypes::Scheme.AnyOf(
10
- 'positive',
11
- 'negative',
12
- 'neutral',
13
- 'skip'
14
- )
15
- end
16
- end
17
- end
1
+ # frozen_string_literal: true
2
+
3
+ require 'media_types'
4
+
5
+ module TrailerVote
6
+ module MediaTypes
7
+ module Types
8
+ # noinspection RubyConstantNamingConvention
9
+ VoteValue = ::MediaTypes::Scheme.AnyOf(
10
+ 'positive',
11
+ 'negative',
12
+ 'neutral',
13
+ 'skip'
14
+ )
15
+ end
16
+ end
17
+ end
@@ -1,7 +1,7 @@
1
- # frozen_string_literal: true
2
-
3
- module TrailerVote
4
- module MediaTypes
5
- VERSION = '2.3.0'
6
- end
7
- end
1
+ # frozen_string_literal: true
2
+
3
+ module TrailerVote
4
+ module MediaTypes
5
+ VERSION = '2.4.0'
6
+ end
7
+ end
@@ -0,0 +1,37 @@
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 VistaConfig < BaseText
9
+ media_type 'vista_config', defaults: { suffix: :json, version: 1 }
10
+
11
+ validations do
12
+ version 1 do
13
+ attribute :vista_config do
14
+ attribute :api_key, String
15
+ attribute :base_url, Types::HttpUrl
16
+ end
17
+
18
+ view 'index' do
19
+ attribute :vista_configs do
20
+ collection :_index, allow_empty: true do
21
+ attribute :api_key, String
22
+ attribute :base_url, Types::HttpUrl
23
+ end
24
+ not_strict
25
+ end
26
+ end
27
+ end
28
+ end
29
+
30
+ registrations :vista_config do
31
+ view 'index', :vista_config_urls
32
+
33
+ versions 1
34
+ end
35
+ end
36
+ end
37
+ end
@@ -1,43 +1,43 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'trailer_vote/media_types/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'trailer_vote-media_types'
9
- spec.version = TrailerVote::MediaTypes::VERSION
10
- spec.authors = ['Derk-Jan Karrenbeld']
11
- spec.email = ['dj@trailervote.com']
12
- spec.summary = 'Holds the defined media types for the TrailerVote ecosystem'
13
- spec.homepage = 'https://github.com/TrailerVote/trailervote-media-types'
14
-
15
- # noinspection RubyStringKeysInHashInspection
16
- spec.metadata = {
17
- 'bug_tracker_uri' => 'https://github.com/TrailerVote/trailervote-media-types/issues',
18
- 'changelog_uri' => 'https://github.com/TrailerVote/trailervote-media-types/blob/master/ruby/CHANGELOG.md',
19
- 'documentation_uri' => 'https://www.rubydoc.info/gems/trailer_vote-media_types',
20
- 'homepage_uri' => 'https://github.com/TrailerVote/trailervote-media-types',
21
- 'source_code_uri' => 'https://github.com/TrailerVote/trailervote-media-types/blob/master/ruby',
22
- }
23
-
24
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
- f.match(%r{^(test|spec|features)/})
26
- end
27
- spec.bindir = 'exe'
28
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
- spec.require_paths = ['lib']
30
- spec.required_ruby_version = '>= 2.5.1'
31
-
32
- spec.add_runtime_dependency 'media_types', '>= 0.6.0', '< 1'
33
-
34
- spec.add_development_dependency 'awesome_print', '~> 1.8'
35
- spec.add_development_dependency 'bundler', '~> 2.0'
36
- spec.add_development_dependency 'minitest', '~> 5.0'
37
- spec.add_development_dependency 'minitest-ci', '~> 3.4'
38
- spec.add_development_dependency 'minitest-reporters', '~> 1.3'
39
- spec.add_development_dependency 'oj', '~> 3.6'
40
- spec.add_development_dependency 'rake', '~> 13.0'
41
- spec.add_development_dependency 'simplecov', '~> 0.16'
42
- spec.add_development_dependency 'trailer_vote-fixtures', '~> 1.16.0'
43
- end
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'trailer_vote/media_types/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'trailer_vote-media_types'
9
+ spec.version = TrailerVote::MediaTypes::VERSION
10
+ spec.authors = ['Derk-Jan Karrenbeld']
11
+ spec.email = ['dj@trailervote.com']
12
+ spec.summary = 'Holds the defined media types for the TrailerVote ecosystem'
13
+ spec.homepage = 'https://github.com/TrailerVote/trailervote-media-types'
14
+
15
+ # noinspection RubyStringKeysInHashInspection
16
+ spec.metadata = {
17
+ 'bug_tracker_uri' => 'https://github.com/TrailerVote/trailervote-media-types/issues',
18
+ 'changelog_uri' => 'https://github.com/TrailerVote/trailervote-media-types/blob/master/ruby/CHANGELOG.md',
19
+ 'documentation_uri' => 'https://www.rubydoc.info/gems/trailer_vote-media_types',
20
+ 'homepage_uri' => 'https://github.com/TrailerVote/trailervote-media-types',
21
+ 'source_code_uri' => 'https://github.com/TrailerVote/trailervote-media-types/blob/master/ruby',
22
+ }
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
+ f.match(%r{^(test|spec|features)/})
26
+ end
27
+ spec.bindir = 'exe'
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ['lib']
30
+ spec.required_ruby_version = '>= 2.5.1'
31
+
32
+ spec.add_runtime_dependency 'media_types', '>= 0.6.0', '< 1'
33
+
34
+ spec.add_development_dependency 'awesome_print', '~> 1.8'
35
+ spec.add_development_dependency 'bundler', '~> 2.0'
36
+ spec.add_development_dependency 'minitest', '~> 5.0'
37
+ spec.add_development_dependency 'minitest-ci', '~> 3.4'
38
+ spec.add_development_dependency 'minitest-reporters', '~> 1.3'
39
+ spec.add_development_dependency 'oj', '~> 3.6'
40
+ spec.add_development_dependency 'rake', '~> 13.0'
41
+ spec.add_development_dependency 'simplecov', '~> 0.16'
42
+ spec.add_development_dependency 'trailer_vote-fixtures', '~> 1.17.0'
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.3.0
4
+ version: 2.4.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: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-03-15 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.16.0
151
+ version: 1.17.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.16.0
158
+ version: 1.17.0
159
159
  description:
160
160
  email:
161
161
  - dj@trailervote.com
@@ -219,6 +219,7 @@ files:
219
219
  - lib/trailer_vote/media_types/types/uuid_v4.rb
220
220
  - lib/trailer_vote/media_types/types/vote_value.rb
221
221
  - lib/trailer_vote/media_types/version.rb
222
+ - lib/trailer_vote/media_types/vista_config.rb
222
223
  - trailer_vote-media_types.gemspec
223
224
  homepage: https://github.com/TrailerVote/trailervote-media-types
224
225
  licenses: []
@@ -243,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
244
  - !ruby/object:Gem::Version
244
245
  version: '0'
245
246
  requirements: []
246
- rubygems_version: 3.1.1
247
+ rubygems_version: 3.0.3
247
248
  signing_key:
248
249
  specification_version: 4
249
250
  summary: Holds the defined media types for the TrailerVote ecosystem