aws_sns_manager 0.0.1 → 0.0.2.pre.alpha.pre.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.travis.yml +8 -9
- data/Gemfile.lock +8 -7
- data/aws_sns_manager.gemspec +1 -0
- data/lib/aws_sns_manager/client.rb +4 -3
- data/lib/aws_sns_manager/config.rb +12 -0
- data/lib/aws_sns_manager/version.rb +1 -1
- data/lib/aws_sns_manager.rb +5 -0
- metadata +37 -23
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDIxODkyMmRjZjQxNGVhYzZlMDJkN2M5NzRhNGI0OWRjOGZhOTY4OQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZmU4ZWU1NmY0MThjNmRhYmFlMDFhYWY2NDA3ZWIxYzIxMjQxNjQ4ZQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ODYyMDk3ZTc4ODIwMTQzM2U4YTQ2ODQ0OTJjMjU5OTVlZjU5OTk0YTU4NjE3
|
10
|
+
NGI5YTY3YjEzNTNiMzdkZjc3MDNlZTBlYTRkNjRlOGE1MjZiMjVhMWY0ZWRi
|
11
|
+
OGZlZDZlOGZmOWJkYWY5OTRiN2FkZGZjMDU1NmIyYjUxMWVkNzA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MTM5ZjMwZWFjOTVmYjY0MWZlNzI3Y2RkYTNmZTNlMGUyMzI4Y2Y5OTQxZDhl
|
14
|
+
OThmOGI3MjY5ZWJlZmExOTdjNzVjNTMzMDNlMzI0N2FkMDljODliNWY5NmNj
|
15
|
+
MjI1MTYxZmNkMzM1ZmZiOTlkMzRlMGU5M2VkOTgzOTUxZGMwMjI=
|
data/.travis.yml
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
language: ruby
|
2
|
+
before_install:
|
3
|
+
- gem install bundler
|
4
|
+
- "rm ${BUNDLE_GEMFILE}.lock"
|
5
|
+
before_script:
|
6
|
+
- bundle update
|
7
|
+
cache: bundler
|
2
8
|
rvm:
|
3
|
-
- 2.0.0
|
4
|
-
- 2.1.0
|
5
|
-
- 2.1.1
|
6
|
-
- 2.1.2
|
7
|
-
- 2.1.3
|
8
|
-
- 2.1.4
|
9
|
-
- 2.1.5
|
10
9
|
- 2.2.0
|
11
10
|
- 2.2.1
|
11
|
+
- 2.2.2
|
12
12
|
deploy:
|
13
13
|
provider: rubygems
|
14
14
|
api_key:
|
@@ -19,5 +19,4 @@ deploy:
|
|
19
19
|
repo: nafu/aws_sns_manager
|
20
20
|
addons:
|
21
21
|
code_climate:
|
22
|
-
repo_token:
|
23
|
-
secure: hZdPD3pLNCe7aFaRkEI1plpe16NVacxu6r1GwbngOq/8bWf9EGFH1+KZ/TTT4JyXCki+RrqiD4RybnCQfOTuBD6Lt5q79b1EhygNlnlgbXRzWCmeksurwelRCfYUORTz/Wl+eN9xvP8CpxZ1sO/Y7rVFV3wyDBt0wBR63vRT7ko=
|
22
|
+
repo_token: f963cfa99b5c830023926cbaa0cf70b2112d28cdc1b7db78bf39841936e4f766
|
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.2.pre.alpha.pre.18)
|
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.39)
|
16
|
+
aws-sdk-resources (= 2.0.39)
|
17
|
+
aws-sdk-core (2.0.39)
|
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.39)
|
22
|
+
aws-sdk-core (= 2.0.39)
|
23
23
|
builder (3.2.2)
|
24
24
|
codeclimate-test-reporter (0.4.7)
|
25
25
|
simplecov (>= 0.7.1, < 1.0.0)
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
multi_json (~> 1.0)
|
30
30
|
json (1.8.2)
|
31
31
|
multi_json (1.11.0)
|
32
|
-
parser (2.2.0
|
32
|
+
parser (2.2.2.0)
|
33
33
|
ast (>= 1.1, < 3.0)
|
34
34
|
powerpack (0.1.0)
|
35
35
|
rainbow (2.0.0)
|
@@ -69,3 +69,4 @@ DEPENDENCIES
|
|
69
69
|
rake (~> 10.0)
|
70
70
|
rspec (~> 3)
|
71
71
|
rubocop (~> 0.30)
|
72
|
+
simplecov (~> 0.9)
|
data/aws_sns_manager.gemspec
CHANGED
@@ -10,8 +10,8 @@ module AwsSnsManager
|
|
10
10
|
@client = Aws::SNS::Client.new(options)
|
11
11
|
end
|
12
12
|
|
13
|
-
def send
|
14
|
-
message = message(
|
13
|
+
def send(text = nil)
|
14
|
+
message = message(text).to_json
|
15
15
|
response = publish_rescue(message)
|
16
16
|
!response.nil?
|
17
17
|
end
|
@@ -35,7 +35,8 @@ module AwsSnsManager
|
|
35
35
|
aps: {
|
36
36
|
alert: text,
|
37
37
|
sound: 'default',
|
38
|
-
badge: 1
|
38
|
+
badge: 1,
|
39
|
+
'content-available': 1
|
39
40
|
}
|
40
41
|
}
|
41
42
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module AwsSnsManager
|
2
|
+
# = AwsSnsManager::Config
|
3
|
+
module Config
|
4
|
+
@model = 'PushEndpoint'
|
5
|
+
class << self
|
6
|
+
# Configuration option to specify a model
|
7
|
+
# you want to use AwsSnsManager to work with.
|
8
|
+
# Default: PushEndpoint
|
9
|
+
attr_accessor :model
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/aws_sns_manager.rb
CHANGED
metadata
CHANGED
@@ -1,103 +1,117 @@
|
|
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.2.pre.alpha.pre.18
|
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-04-
|
11
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.3.0
|
20
|
-
- -
|
20
|
+
- - <
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 1.3.0
|
30
|
-
- -
|
30
|
+
- - <
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sdk
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '2'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '2'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: json
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '1.8'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ~>
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '1.8'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rake
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '10.0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '10.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rspec
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ~>
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '3'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - ~>
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '3'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: simplecov
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.9'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ~>
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.9'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: rubocop
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
92
106
|
requirements:
|
93
|
-
- -
|
107
|
+
- - ~>
|
94
108
|
- !ruby/object:Gem::Version
|
95
109
|
version: '0.30'
|
96
110
|
type: :development
|
97
111
|
prerelease: false
|
98
112
|
version_requirements: !ruby/object:Gem::Requirement
|
99
113
|
requirements:
|
100
|
-
- -
|
114
|
+
- - ~>
|
101
115
|
- !ruby/object:Gem::Version
|
102
116
|
version: '0.30'
|
103
117
|
description: Utility for Amazon Simple Notification Service
|
@@ -107,9 +121,9 @@ executables: []
|
|
107
121
|
extensions: []
|
108
122
|
extra_rdoc_files: []
|
109
123
|
files:
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
124
|
+
- .gitignore
|
125
|
+
- .rubocop.yml
|
126
|
+
- .travis.yml
|
113
127
|
- Gemfile
|
114
128
|
- Gemfile.lock
|
115
129
|
- LICENSE
|
@@ -118,6 +132,7 @@ files:
|
|
118
132
|
- aws_sns_manager.gemspec
|
119
133
|
- lib/aws_sns_manager.rb
|
120
134
|
- lib/aws_sns_manager/client.rb
|
135
|
+
- lib/aws_sns_manager/config.rb
|
121
136
|
- lib/aws_sns_manager/version.rb
|
122
137
|
homepage: http://github.com/nafu/aws_sns_manager
|
123
138
|
licenses:
|
@@ -129,14 +144,14 @@ require_paths:
|
|
129
144
|
- lib
|
130
145
|
required_ruby_version: !ruby/object:Gem::Requirement
|
131
146
|
requirements:
|
132
|
-
- -
|
147
|
+
- - ~>
|
133
148
|
- !ruby/object:Gem::Version
|
134
149
|
version: '2.0'
|
135
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
151
|
requirements:
|
137
|
-
- -
|
152
|
+
- - ! '>'
|
138
153
|
- !ruby/object:Gem::Version
|
139
|
-
version: 1.3.
|
154
|
+
version: 1.3.1
|
140
155
|
requirements: []
|
141
156
|
rubyforge_project:
|
142
157
|
rubygems_version: 2.4.5
|
@@ -144,4 +159,3 @@ signing_key:
|
|
144
159
|
specification_version: 4
|
145
160
|
summary: Utility for Amazon Simple Notification Service
|
146
161
|
test_files: []
|
147
|
-
has_rdoc:
|