aws_sns_manager 0.0.2.pre.alpha.pre.31 → 0.0.3.pre.alpha.pre.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.rubocop.yml +3 -0
- data/.travis.yml +1 -2
- data/Gemfile +1 -0
- data/Gemfile.lock +32 -35
- data/Rakefile +1 -0
- data/aws_sns_manager.gemspec +1 -0
- data/lib/aws_sns_manager.rb +1 -0
- data/lib/aws_sns_manager/client.rb +18 -2
- data/lib/aws_sns_manager/config.rb +1 -0
- data/lib/aws_sns_manager/version.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2Q2OTRiOWNmZjBkZTVlNzhlNmU1MGIzMjliZGQ5OTBlZDRiODc2OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTc5M2I2NDA1ODg2ZDFlOWRiZWQ4ODBiOTVlYmQyYzczOTFiZDJiZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDFjMjYzZmY0YmFlNWVhMTAzNTZkZmFmYjNjOWFkYmY5Y2NmNTQwNzcxZGNl
|
10
|
+
ZWZjMDU1NGRiMDY2M2NmZmY4ZDVmNTcxMzFlYTFjOWRiYjM5MTdlN2MzNTg2
|
11
|
+
ZDlmNjhmNThkMzNiYWU2ODhiMmU5M2Q1OTkzYWQwZmZkYjBhYzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzQ0ZTI1ZGM4M2RmNzAyNDg5MGUxZGFkN2Q3N2IzNTI3YmY0ZTIzOWNjNzc0
|
14
|
+
M2IyNTdjNzU0OTI3ODFkMWVhOWQ4MWU0ZGI4YWM3MDdhYmFkYmEyYmJlNWRh
|
15
|
+
NjRjZTYwYmE3NzA3MmUwMzRmMTRkMjM4MDNiYzY4MzNjY2MwMmM=
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aws_sns_manager (0.0.
|
4
|
+
aws_sns_manager (0.0.3.pre.alpha.pre.40)
|
5
5
|
aws-sdk (~> 2)
|
6
6
|
bundler (>= 1.3.0, < 2.0)
|
7
7
|
json (~> 1.8)
|
@@ -9,53 +9,50 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
ast (2.
|
13
|
-
|
14
|
-
|
15
|
-
aws-sdk (2.
|
16
|
-
aws-sdk-resources (= 2.2.7)
|
17
|
-
aws-sdk-core (2.2.7)
|
12
|
+
ast (2.3.0)
|
13
|
+
aws-sdk (2.5.11)
|
14
|
+
aws-sdk-resources (= 2.5.11)
|
15
|
+
aws-sdk-core (2.5.11)
|
18
16
|
jmespath (~> 1.0)
|
19
|
-
aws-sdk-resources (2.
|
20
|
-
aws-sdk-core (= 2.
|
21
|
-
codeclimate-test-reporter (0.
|
17
|
+
aws-sdk-resources (2.5.11)
|
18
|
+
aws-sdk-core (= 2.5.11)
|
19
|
+
codeclimate-test-reporter (0.6.0)
|
22
20
|
simplecov (>= 0.7.1, < 1.0.0)
|
23
21
|
diff-lcs (1.2.5)
|
24
22
|
docile (1.1.5)
|
25
|
-
jmespath (1.1
|
23
|
+
jmespath (1.3.1)
|
26
24
|
json (1.8.3)
|
27
|
-
parser (2.
|
28
|
-
ast (
|
25
|
+
parser (2.3.1.2)
|
26
|
+
ast (~> 2.2)
|
29
27
|
powerpack (0.1.1)
|
30
|
-
rainbow (2.
|
31
|
-
rake (10.
|
32
|
-
rspec (3.
|
33
|
-
rspec-core (~> 3.
|
34
|
-
rspec-expectations (~> 3.
|
35
|
-
rspec-mocks (~> 3.
|
36
|
-
rspec-core (3.
|
37
|
-
rspec-support (~> 3.
|
38
|
-
rspec-expectations (3.
|
28
|
+
rainbow (2.1.0)
|
29
|
+
rake (10.5.0)
|
30
|
+
rspec (3.5.0)
|
31
|
+
rspec-core (~> 3.5.0)
|
32
|
+
rspec-expectations (~> 3.5.0)
|
33
|
+
rspec-mocks (~> 3.5.0)
|
34
|
+
rspec-core (3.5.3)
|
35
|
+
rspec-support (~> 3.5.0)
|
36
|
+
rspec-expectations (3.5.0)
|
39
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
-
rspec-support (~> 3.
|
41
|
-
rspec-mocks (3.
|
38
|
+
rspec-support (~> 3.5.0)
|
39
|
+
rspec-mocks (3.5.0)
|
42
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
-
rspec-support (~> 3.
|
44
|
-
rspec-support (3.
|
45
|
-
rubocop (0.
|
46
|
-
|
47
|
-
parser (>= 2.2.3.0, < 3.0)
|
41
|
+
rspec-support (~> 3.5.0)
|
42
|
+
rspec-support (3.5.0)
|
43
|
+
rubocop (0.42.0)
|
44
|
+
parser (>= 2.3.1.1, < 3.0)
|
48
45
|
powerpack (~> 0.1)
|
49
46
|
rainbow (>= 1.99.1, < 3.0)
|
50
47
|
ruby-progressbar (~> 1.7)
|
51
|
-
|
52
|
-
ruby-progressbar (1.
|
53
|
-
simplecov (0.
|
48
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
49
|
+
ruby-progressbar (1.8.1)
|
50
|
+
simplecov (0.12.0)
|
54
51
|
docile (~> 1.1.0)
|
55
|
-
json (
|
52
|
+
json (>= 1.8, < 3)
|
56
53
|
simplecov-html (~> 0.10.0)
|
57
54
|
simplecov-html (0.10.0)
|
58
|
-
|
55
|
+
unicode-display_width (1.1.1)
|
59
56
|
|
60
57
|
PLATFORMS
|
61
58
|
ruby
|
@@ -69,4 +66,4 @@ DEPENDENCIES
|
|
69
66
|
simplecov (~> 0.9)
|
70
67
|
|
71
68
|
BUNDLED WITH
|
72
|
-
1.
|
69
|
+
1.13.0
|
data/Rakefile
CHANGED
data/aws_sns_manager.gemspec
CHANGED
data/lib/aws_sns_manager.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
module AwsSnsManager
|
2
3
|
# = AwsSnsManager::Client
|
3
4
|
class Client
|
@@ -44,37 +45,52 @@ module AwsSnsManager
|
|
44
45
|
prod_json(data)
|
45
46
|
end
|
46
47
|
|
48
|
+
# rubocop:disable Metrics/MethodLength
|
47
49
|
def normal_notification(text, options = {})
|
48
50
|
base = {
|
49
51
|
aps: {
|
50
|
-
alert:
|
52
|
+
alert: {
|
53
|
+
title: nil,
|
54
|
+
subtitle: nil,
|
55
|
+
body: text
|
56
|
+
},
|
51
57
|
sound: 'default',
|
52
58
|
badge: 1,
|
59
|
+
'mutable-content': 1,
|
53
60
|
'content-available': 1
|
54
61
|
}
|
55
62
|
}
|
56
63
|
base.merge(options)
|
57
64
|
end
|
65
|
+
# rubocop:enable Metrics/MethodLength
|
58
66
|
|
59
67
|
def silent_notification(_text, options = {})
|
60
68
|
base = {
|
61
69
|
aps: {
|
70
|
+
'mutable-content': 1,
|
62
71
|
'content-available': 1
|
63
72
|
}
|
64
73
|
}
|
65
74
|
base.merge(options)
|
66
75
|
end
|
67
76
|
|
77
|
+
# rubocop:disable Metrics/MethodLength
|
68
78
|
def nosound_notification(text, options = {})
|
69
79
|
base = {
|
70
80
|
aps: {
|
71
|
-
alert:
|
81
|
+
alert: {
|
82
|
+
title: nil,
|
83
|
+
subtitle: nil,
|
84
|
+
body: text
|
85
|
+
},
|
72
86
|
badge: 1,
|
87
|
+
'mutable-content': 1,
|
73
88
|
'content-available': 1
|
74
89
|
}
|
75
90
|
}
|
76
91
|
base.merge(options)
|
77
92
|
end
|
93
|
+
# rubocop:enable Metrics/MethodLength
|
78
94
|
|
79
95
|
private
|
80
96
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_sns_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3.pre.alpha.pre.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fumiya Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|