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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 58088388b1d00086e4b0505c5ded7b974cf661c3
4
- data.tar.gz: ff9025ba2034cd7e758ac61553014551d24e4bab
2
+ SHA256:
3
+ metadata.gz: e94378068dc5c9b30cfd9a9386047f33d925ab930f0cba48d8485cbe7f99e2e1
4
+ data.tar.gz: 486e985642f89cc26d002e12c90afe4824e519c340905eaae157f6a288434627
5
5
  SHA512:
6
- metadata.gz: 549c0c4f8038b9adbb65b88a811d0528d236befec3a9aae0ef69654eb7aa77fe5d38628742b639f5cc57e7cb3e44b26a9345fc571f1091cb4b7259efd1173693
7
- data.tar.gz: f337eb459813397ff54b87c7e26c5cfc7599bf8f5a783958f6dd33a1786de85d98cdfa0bc874152b514f2fd7660355b278ee9244f62dabaaa2547aae35d1e780
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
- def initialize(alert:, badge:, sound: 'default', content_available: 1, mutable_content: 0, category: nil,
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
 
@@ -1,7 +1,7 @@
1
1
  module Moromi
2
2
  module Aws
3
3
  module Sns
4
- VERSION = '0.13.0'
4
+ VERSION = '0.14.0'
5
5
  end
6
6
  end
7
7
  end
@@ -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", "~> 1.12"
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.13.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: 2017-11-28 00:00:00.000000000 Z
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: '1.12'
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: '1.12'
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
- rubyforge_project:
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.