trailer_vote-media_types 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/trailer_vote/media_types/audio_fragment.rb +2 -2
- data/lib/trailer_vote/media_types/client_configuration.rb +3 -3
- data/lib/trailer_vote/media_types/product_image.rb +3 -3
- data/lib/trailer_vote/media_types/product_place_link.rb +2 -2
- data/lib/trailer_vote/media_types/product_video.rb +3 -3
- data/lib/trailer_vote/media_types/types/formatted_url.rb +1 -1
- data/lib/trailer_vote/media_types/types/{https_url.rb → http_url.rb} +1 -1
- data/lib/trailer_vote/media_types/types/influx_db_connection_url.rb +1 -1
- data/lib/trailer_vote/media_types/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 295121859eba9c8cd5c166831957bd544597e2e2
|
4
|
+
data.tar.gz: 324003af8e79c08628350f3aeec30a5d9b7cf23d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db3559aa2aca03f27a75dae63fc48605eaf776fa924b8f72f7b3ed3de519c4d5b1056fb050d76040becfb2e3c655acde319cdf2421868dca913305cac3616377
|
7
|
+
data.tar.gz: 994559c371dc17731dcf6ea175dcf67ad798e652f834cae5e7250934b27c3593b475f589018e59a40c906ceff63012254eb5ba3af93df28b99341456ec108779
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative 'base_text'
|
4
|
-
require_relative 'types/
|
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::
|
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/
|
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::
|
24
|
-
attribute :persona, Types::
|
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/
|
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::
|
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::
|
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/
|
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::
|
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/
|
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::
|
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::
|
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
|
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
|
-
|
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
|
7
|
+
InfluxDbConnectionUrl = %r{^https?:\/\/[^\s\/$.?#].[^\s]*$} # rubocop:disable Naming/ConstantName
|
8
8
|
end
|
9
9
|
end
|
10
10
|
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.
|
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/
|
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
|