aws_sns_manager 0.0.2.pre.alpha.pre.18 → 0.0.2.pre.alpha.pre.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +14 -14
- data/lib/aws_sns_manager/client.rb +7 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGZlZDdhOGFjMzg5ZDFkMjU4YjFiMmRjYzIxYWM5YjlkMGNiMGJiNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2RkZGRlYzlkZmE1ZjJiMzljZjc5MDQ1MDM2Y2E3MzMzZTM0YzIwZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjgyOTYwYzQwMTgzMjlmYzBhMDdmYjhlYjIyODliYjBlOWQ0ODg4MDliOTE2
|
10
|
+
ZWZlOTk4N2ZiZWU0NTJmMGNiYzE3NzU5NTFhYzJkNTY5NWJkN2ZmYzI0MzVl
|
11
|
+
ZDcxOWE0MWRiZjQ2ZDAwOTkyOTFjYzFlMjA0ZGQ5NTRmMmE2Yjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDFjYWQzNDA2ZTlkZGIxZWEzYmZlMTljNDY4MmNhN2UzZDk0ZDBkNzVlNzc5
|
14
|
+
NjJhMmVhODYyODZjYjRhYjhhNDI2YjljNzZjYWY0NmI3N2ZkYmEzODcwYzE1
|
15
|
+
OWU4MTAzOTg0MzJmZjcxNjNmN2ZjNDVkMDljYmJmZDMxMWU0M2U=
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aws_sns_manager (0.0.2.pre.alpha.pre.
|
4
|
+
aws_sns_manager (0.0.2.pre.alpha.pre.21)
|
5
5
|
aws-sdk (~> 2)
|
6
6
|
bundler (>= 1.3.0, < 2.0)
|
7
7
|
json (~> 1.8)
|
@@ -12,14 +12,14 @@ GEM
|
|
12
12
|
ast (2.0.0)
|
13
13
|
astrolabe (1.3.0)
|
14
14
|
parser (>= 2.2.0.pre.3, < 3.0)
|
15
|
-
aws-sdk (2.0.
|
16
|
-
aws-sdk-resources (= 2.0.
|
17
|
-
aws-sdk-core (2.0.
|
15
|
+
aws-sdk (2.0.43)
|
16
|
+
aws-sdk-resources (= 2.0.43)
|
17
|
+
aws-sdk-core (2.0.43)
|
18
18
|
builder (~> 3.0)
|
19
19
|
jmespath (~> 1.0)
|
20
20
|
multi_json (~> 1.0)
|
21
|
-
aws-sdk-resources (2.0.
|
22
|
-
aws-sdk-core (= 2.0.
|
21
|
+
aws-sdk-resources (2.0.43)
|
22
|
+
aws-sdk-core (= 2.0.43)
|
23
23
|
builder (3.2.2)
|
24
24
|
codeclimate-test-reporter (0.4.7)
|
25
25
|
simplecov (>= 0.7.1, < 1.0.0)
|
@@ -29,9 +29,9 @@ GEM
|
|
29
29
|
multi_json (~> 1.0)
|
30
30
|
json (1.8.2)
|
31
31
|
multi_json (1.11.0)
|
32
|
-
parser (2.2.2.
|
32
|
+
parser (2.2.2.2)
|
33
33
|
ast (>= 1.1, < 3.0)
|
34
|
-
powerpack (0.1.
|
34
|
+
powerpack (0.1.1)
|
35
35
|
rainbow (2.0.0)
|
36
36
|
rake (10.4.2)
|
37
37
|
rspec (3.2.0)
|
@@ -47,18 +47,18 @@ GEM
|
|
47
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
48
48
|
rspec-support (~> 3.2.0)
|
49
49
|
rspec-support (3.2.2)
|
50
|
-
rubocop (0.
|
50
|
+
rubocop (0.31.0)
|
51
51
|
astrolabe (~> 1.3)
|
52
|
-
parser (>= 2.2.
|
52
|
+
parser (>= 2.2.2.1, < 3.0)
|
53
53
|
powerpack (~> 0.1)
|
54
54
|
rainbow (>= 1.99.1, < 3.0)
|
55
55
|
ruby-progressbar (~> 1.4)
|
56
56
|
ruby-progressbar (1.7.5)
|
57
|
-
simplecov (0.
|
57
|
+
simplecov (0.10.0)
|
58
58
|
docile (~> 1.1.0)
|
59
|
-
|
60
|
-
simplecov-html (~> 0.
|
61
|
-
simplecov-html (0.
|
59
|
+
json (~> 1.8)
|
60
|
+
simplecov-html (~> 0.10.0)
|
61
|
+
simplecov-html (0.10.0)
|
62
62
|
|
63
63
|
PLATFORMS
|
64
64
|
ruby
|
@@ -10,8 +10,8 @@ module AwsSnsManager
|
|
10
10
|
@client = Aws::SNS::Client.new(options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def send(text = nil)
|
14
|
-
message = message(text).to_json
|
13
|
+
def send(text = nil, options = {})
|
14
|
+
message = message(text, options).to_json
|
15
15
|
response = publish_rescue(message)
|
16
16
|
!response.nil?
|
17
17
|
end
|
@@ -24,14 +24,14 @@ module AwsSnsManager
|
|
24
24
|
)
|
25
25
|
end
|
26
26
|
|
27
|
-
def message(text)
|
27
|
+
def message(text, options = {})
|
28
28
|
{
|
29
|
-
APNS: notification(text).to_json
|
29
|
+
APNS: notification(text, options).to_json
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
|
-
def notification(text)
|
34
|
-
{
|
33
|
+
def notification(text, options = {})
|
34
|
+
base = {
|
35
35
|
aps: {
|
36
36
|
alert: text,
|
37
37
|
sound: 'default',
|
@@ -39,6 +39,7 @@ module AwsSnsManager
|
|
39
39
|
'content-available': 1
|
40
40
|
}
|
41
41
|
}
|
42
|
+
base.merge(options)
|
42
43
|
end
|
43
44
|
end
|
44
45
|
end
|
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.2.pre.alpha.pre.
|
4
|
+
version: 0.0.2.pre.alpha.pre.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fumiya Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|