moromi-aws-sns 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/moromi/aws/sns/message/apns.rb +6 -1
- data/lib/moromi/aws/sns/version.rb +1 -1
- data/moromi-aws-sns.gemspec +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e94378068dc5c9b30cfd9a9386047f33d925ab930f0cba48d8485cbe7f99e2e1
|
4
|
+
data.tar.gz: 486e985642f89cc26d002e12c90afe4824e519c340905eaae157f6a288434627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb2916a98e565d71e50192c64f55765cfa0874a3a1489fff6313d9a60a49eb3117ecf83ba397e3558718aac6d3b43471c1489a7fcf12e241a89e4f9ad2d112d1
|
7
|
+
data.tar.gz: 2262cf3271bf2430a5f964cf1144b5a96f377df66e18ec25d8d47c3e0aac43102e23f7b3f3deb2ffad7482efd59ed760c0843e8821ef5a9b94abeb0dd9a7dd1c
|
@@ -9,11 +9,13 @@ module Moromi
|
|
9
9
|
attr_reader :content_available
|
10
10
|
attr_reader :mutable_content
|
11
11
|
attr_reader :category
|
12
|
+
attr_reader :thread_id
|
12
13
|
attr_reader :priority
|
13
14
|
attr_reader :type
|
14
15
|
attr_reader :custom_data
|
15
16
|
|
16
|
-
|
17
|
+
|
18
|
+
def initialize(alert:, badge:, sound: 'default', content_available: 1, mutable_content: 0, category: nil, thread_id: nil,
|
17
19
|
priority: 10, type: nil, custom_data: {})
|
18
20
|
@alert = alert
|
19
21
|
@badge = badge
|
@@ -21,6 +23,7 @@ module Moromi
|
|
21
23
|
@content_available = content_available
|
22
24
|
@mutable_content = mutable_content
|
23
25
|
@category = category
|
26
|
+
@thread_id = thread_id
|
24
27
|
@priority = priority
|
25
28
|
@type = type || self.class.name
|
26
29
|
@custom_data = setup_initial_custom_data({type: @type}.merge(custom_data))
|
@@ -33,6 +36,7 @@ module Moromi
|
|
33
36
|
sound: @sound,
|
34
37
|
content_available: @content_available,
|
35
38
|
mutable_content: @mutable_content,
|
39
|
+
thread_id: @thread_id,
|
36
40
|
category: @category,
|
37
41
|
priority: @priority,
|
38
42
|
type: @type,
|
@@ -45,6 +49,7 @@ module Moromi
|
|
45
49
|
%i[custom_data type content_available mutable_content].each { |k| aps.delete(k) }
|
46
50
|
aps['content-available'] = @content_available
|
47
51
|
aps['mutable-content'] = @mutable_content
|
52
|
+
aps['thread-id'] = @thread_id
|
48
53
|
@custom_data.merge({aps: aps}).to_json
|
49
54
|
end
|
50
55
|
|
data/moromi-aws-sns.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency 'aws-sdk-sns', '~> 1'
|
25
25
|
spec.add_dependency 'activesupport', ['>= 4.2']
|
26
26
|
|
27
|
-
spec.add_development_dependency "bundler"
|
27
|
+
spec.add_development_dependency "bundler"
|
28
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
29
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moromi-aws-sns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takahiro Ooishi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-sns
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
|
127
|
-
rubygems_version: 2.6.13
|
126
|
+
rubygems_version: 3.0.3
|
128
127
|
signing_key:
|
129
128
|
specification_version: 4
|
130
129
|
summary: AWS SNS client.
|