trailer_vote-media_types 0.6.0 → 0.6.1

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
  SHA1:
3
- metadata.gz: 926ad35dab8657d957fee399fca27858da92ff86
4
- data.tar.gz: ed70f02bdf523fee98124088ce13dce593da415f
3
+ metadata.gz: 295121859eba9c8cd5c166831957bd544597e2e2
4
+ data.tar.gz: 324003af8e79c08628350f3aeec30a5d9b7cf23d
5
5
  SHA512:
6
- metadata.gz: 84cf671dc44bbff7f2be93740f3b0abdf4ba8c0e510e342f9324a360a8acc355e680fe96164d825db911b17f7c31a18d6914ac2c6f53a2937da91760942b3d54
7
- data.tar.gz: 75dfc602858601f3810ec46c98ec5760f3235be6b2448a86425a1677cd6848aa4b3d9a0f9d721fb6d6e107e369473ca3a7a2d9ae22e2913993b283c086cda384
6
+ metadata.gz: db3559aa2aca03f27a75dae63fc48605eaf776fa924b8f72f7b3ed3de519c4d5b1056fb050d76040becfb2e3c655acde319cdf2421868dca913305cac3616377
7
+ data.tar.gz: 994559c371dc17731dcf6ea175dcf67ad798e652f834cae5e7250934b27c3593b475f589018e59a40c906ceff63012254eb5ba3af93df28b99341456ec108779
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.6.1
2
+
3
+ - Allow for http urls because not all services in all environments may operate with TLS enabled.
4
+
1
5
  # 0.6.0
2
6
 
3
7
  - Update `media_types` to `0.6.0` so that the integrations become available downstream.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trailer_vote-media_types (0.6.0)
4
+ trailer_vote-media_types (0.6.1)
5
5
  media_types (~> 0.6.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'base_text'
4
- require_relative 'types/https_url'
4
+ require_relative 'types/http_url'
5
5
  require_relative 'types/iso8601'
6
6
 
7
7
  module TrailerVote
@@ -70,7 +70,7 @@ module TrailerVote
70
70
  view 'index' do
71
71
  attribute :audio_fragments do
72
72
  collection :_index, allow_empty: true do
73
- attribute :href, Types::HttpsUrl
73
+ attribute :href, Types::HttpUrl
74
74
  not_strict
75
75
  end
76
76
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'base_text'
4
- require_relative 'types/https_url'
4
+ require_relative 'types/http_url'
5
5
 
6
6
  module TrailerVote
7
7
  module MediaTypes
@@ -20,8 +20,8 @@ module TrailerVote
20
20
  validations do
21
21
  version 1 do
22
22
  attribute :configuration do
23
- attribute :place, Types::HttpsUrl
24
- attribute :persona, Types::HttpsUrl
23
+ attribute :place, Types::HttpUrl
24
+ attribute :persona, Types::HttpUrl
25
25
  end
26
26
  end
27
27
  end
@@ -6,7 +6,7 @@ require_relative 'base_text'
6
6
  require_relative 'types/product_image_type'
7
7
  require_relative 'types/boolean'
8
8
  require_relative 'types/iso8601'
9
- require_relative 'types/https_url'
9
+ require_relative 'types/http_url'
10
10
 
11
11
  module TrailerVote
12
12
  module MediaTypes
@@ -17,7 +17,7 @@ module TrailerVote
17
17
  version 1 do
18
18
  version_1_creation = ::MediaTypes::Scheme.new do
19
19
  attribute :identifier, String
20
- attribute :source_url, Types::HttpsUrl
20
+ attribute :source_url, Types::HttpUrl
21
21
  attribute :expires_at, AllowNil(Types::Iso8601), optional: true
22
22
  end
23
23
 
@@ -92,7 +92,7 @@ module TrailerVote
92
92
  view :index do
93
93
  attribute :product_images do
94
94
  collection :_index do
95
- attribute :href, Types::HttpsUrl
95
+ attribute :href, Types::HttpUrl
96
96
  not_strict
97
97
  end
98
98
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'base_text'
4
- require_relative 'types/https_url'
4
+ require_relative 'types/http_url'
5
5
 
6
6
  module TrailerVote
7
7
  module MediaTypes
@@ -17,7 +17,7 @@ module TrailerVote
17
17
  end
18
18
 
19
19
  view 'create' do
20
- attribute :place, Types::HttpsUrl
20
+ attribute :place, Types::HttpUrl
21
21
  end
22
22
  end
23
23
  end
@@ -7,7 +7,7 @@ require_relative 'types/boolean'
7
7
  require_relative 'types/product_movie_type'
8
8
  require_relative 'types/product_movie_handler'
9
9
  require_relative 'types/iso8601'
10
- require_relative 'types/https_url'
10
+ require_relative 'types/http_url'
11
11
 
12
12
  module TrailerVote
13
13
  module MediaTypes
@@ -18,7 +18,7 @@ module TrailerVote
18
18
  version 1 do
19
19
  version_1_creation = ::MediaTypes::Scheme.new do
20
20
  attribute :identifier, String
21
- attribute :source_url, Types::HttpsUrl
21
+ attribute :source_url, Types::HttpUrl
22
22
  attribute :expires_at, AllowNil(Types::Iso8601), optional: true
23
23
  end
24
24
 
@@ -70,7 +70,7 @@ module TrailerVote
70
70
  view :index do
71
71
  attribute :product_videos do
72
72
  collection :_index do
73
- attribute :href, Types::HttpsUrl
73
+ attribute :href, Types::HttpUrl
74
74
  not_strict
75
75
  end
76
76
 
@@ -32,7 +32,7 @@ module TrailerVote
32
32
  sections_first = "(?>#{variable_options.push('[^\s\/$.?#\{\}]').join('|')})"
33
33
  sections_not_first = "(?>#{variable_options.push('[^\\s\\{\\}]').join('|')})"
34
34
 
35
- @test = %r{^https:\/\/#{sections_first}#{sections_not_first}*$}
35
+ @test = %r{^https?:\/\/#{sections_first}#{sections_not_first}*$}
36
36
  end
37
37
 
38
38
  def ===(other)
@@ -17,7 +17,7 @@ module TrailerVote
17
17
  #
18
18
  # The one used here actually passes all valid urls, but just doesn't reject ALL invalid ones
19
19
  #
20
- HttpsUrl = %r{^https:\/\/[^\s\/$.?#].[^\s]*$} # rubocop:disable Naming/ConstantName
20
+ HttpUrl = %r{^https?:\/\/[^\s\/$.?#].[^\s]*$} # rubocop:disable Naming/ConstantName
21
21
  end
22
22
  end
23
23
  end
@@ -4,7 +4,7 @@ module TrailerVote
4
4
  module MediaTypes
5
5
  module Types
6
6
  # noinspection RubyConstantNamingConvention
7
- InfluxDbConnectionUrl = %r{^https:\/\/[^\s\/$.?#].[^\s]*$} # rubocop:disable Naming/ConstantName
7
+ InfluxDbConnectionUrl = %r{^https?:\/\/[^\s\/$.?#].[^\s]*$} # rubocop:disable Naming/ConstantName
8
8
  end
9
9
  end
10
10
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrailerVote
4
4
  module MediaTypes
5
- VERSION = '0.6.0'
5
+ VERSION = '0.6.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailer_vote-media_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
@@ -176,7 +176,7 @@ files:
176
176
  - lib/trailer_vote/media_types/sentiment_feedback.rb
177
177
  - lib/trailer_vote/media_types/types/boolean.rb
178
178
  - lib/trailer_vote/media_types/types/formatted_url.rb
179
- - lib/trailer_vote/media_types/types/https_url.rb
179
+ - lib/trailer_vote/media_types/types/http_url.rb
180
180
  - lib/trailer_vote/media_types/types/influx_db_connection_url.rb
181
181
  - lib/trailer_vote/media_types/types/iso8601.rb
182
182
  - lib/trailer_vote/media_types/types/product_data_type.rb