trailer_vote-media_types 0.13.0 → 0.13.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '096d026ce0ee8517f6e36a4a0f96c6c369257aa7fe8639e1d690c5dcffaa9535'
|
4
|
+
data.tar.gz: 728d95c7017dee26bd8f95e98f48e66cb91a41ba0b3f3085256920d5649f725b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b30880024438dda300bd0b5c070a4e5b7982bdc71033b6ea8d52416e946054e5fe087bbe480d81cb5dd665262eb919fe69dd3402e56e1087f68069858d3e210
|
7
|
+
data.tar.gz: 281c6c8738b3143989228d11ac9c2396bf0c6bcc66c2f3a43bd32be2f934417e6e1847588703a2cfbc9d7ec6ad2deac795c91a9f2436603aa89474860c3ffbd4
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trailer_vote-media_types (0.13.
|
4
|
+
trailer_vote-media_types (0.13.1)
|
5
5
|
media_types (>= 0.6.0, < 1)
|
6
6
|
|
7
7
|
GEM
|
@@ -16,20 +16,20 @@ GEM
|
|
16
16
|
minitest (5.11.3)
|
17
17
|
minitest-ci (3.4.0)
|
18
18
|
minitest (>= 5.0.6)
|
19
|
-
minitest-reporters (1.3.
|
19
|
+
minitest-reporters (1.3.8)
|
20
20
|
ansi
|
21
21
|
builder
|
22
22
|
minitest (>= 5.0)
|
23
23
|
ruby-progressbar
|
24
24
|
oj (3.8.1)
|
25
25
|
rake (12.3.3)
|
26
|
-
ruby-progressbar (1.10.
|
26
|
+
ruby-progressbar (1.10.1)
|
27
27
|
simplecov (0.17.0)
|
28
28
|
docile (~> 1.1)
|
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.
|
32
|
+
trailer_vote-fixtures (1.3.4)
|
33
33
|
|
34
34
|
PLATFORMS
|
35
35
|
ruby
|
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
require_relative 'base_text'
|
4
4
|
require_relative 'types/http_url'
|
5
|
+
require_relative 'types/iso8601'
|
6
|
+
require_relative 'types/boolean'
|
7
|
+
require_relative 'types/vote_value'
|
5
8
|
|
6
9
|
module TrailerVote
|
7
10
|
module MediaTypes
|
@@ -12,9 +15,29 @@ module TrailerVote
|
|
12
15
|
# The trivial push campaign is used to schedule a local push notification at a specified time.
|
13
16
|
#
|
14
17
|
class PushTrivialCampaign < BaseText
|
15
|
-
media_type 'push_campaign_trivial', defaults: { suffix: :json, version:
|
18
|
+
media_type 'push_campaign_trivial', defaults: { suffix: :json, version: 2 }
|
16
19
|
|
17
20
|
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
|
40
|
+
|
18
41
|
version 1 do
|
19
42
|
attribute :push_campaign_trivial do
|
20
43
|
link :action
|
@@ -23,17 +46,21 @@ module TrailerVote
|
|
23
46
|
end
|
24
47
|
|
25
48
|
view 'create' do
|
26
|
-
attribute :
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
49
|
+
attribute :push_campaign_trivial do
|
50
|
+
attribute :product_asset_id, Types::UuidV4
|
51
|
+
attribute :url, String
|
52
|
+
attribute :schedule_at, Types::Iso8601
|
53
|
+
attribute :place_id, Types::UuidV4
|
54
|
+
attribute :translations, ::Hash
|
55
|
+
end
|
31
56
|
end
|
32
57
|
end
|
33
58
|
end
|
34
59
|
|
35
60
|
registrations :push_campaign_trivial do
|
36
|
-
|
61
|
+
view 'create', :create_push_trivial_campaign
|
62
|
+
|
63
|
+
versions 1, 2
|
37
64
|
end
|
38
65
|
end
|
39
66
|
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: 0.13.
|
4
|
+
version: 0.13.1
|
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-
|
11
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: media_types
|