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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2461910266133cd28d8e740d18b2f70008a618b3
4
- data.tar.gz: 36f744ff1a81ffcd79b6b87d59fda67226e92cfd
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDIxODkyMmRjZjQxNGVhYzZlMDJkN2M5NzRhNGI0OWRjOGZhOTY4OQ==
5
+ data.tar.gz: !binary |-
6
+ ZmU4ZWU1NmY0MThjNmRhYmFlMDFhYWY2NDA3ZWIxYzIxMjQxNjQ4ZQ==
5
7
  SHA512:
6
- metadata.gz: c86d7d1705f64e9f477f702eaf02684ee17d58dac99b113c9b21083370bd340849540d7c60197e024166153f0b0f1d7e681a872550876e2582eac6edb00f04af
7
- data.tar.gz: ca4549626c3db1ec44b521e6ff0be0079fe979e7e3a14ceeb489b8580be85028557494e8dc4e1f3f88b3b11acf0a2ea35cacddabae2c8fcec99cb78c8dd52132
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.1)
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.38)
16
- aws-sdk-resources (= 2.0.38)
17
- aws-sdk-core (2.0.38)
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.38)
22
- aws-sdk-core (= 2.0.38)
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.3)
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)
@@ -25,5 +25,6 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_development_dependency 'rake', '~> 10.0'
27
27
  s.add_development_dependency 'rspec', '~> 3'
28
+ s.add_development_dependency 'simplecov', '~> 0.9'
28
29
  s.add_development_dependency 'rubocop', '~> 0.30'
29
30
  end
@@ -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('Hi').to_json
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
@@ -1,4 +1,4 @@
1
1
  # = AwsSnsManager::VERSION
2
2
  module AwsSnsManager
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
@@ -3,5 +3,10 @@ require 'json'
3
3
 
4
4
  # = AwsSnsManager
5
5
  module AwsSnsManager
6
+ autoload :Config, 'aws_sns_manager/config'
6
7
  autoload :Client, 'aws_sns_manager/client'
8
+
9
+ def self.config(&block)
10
+ block.call(AwsSnsManager::Config) if block_given?
11
+ end
7
12
  end
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.1
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-12 00:00:00.000000000 Z
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
- - ".gitignore"
111
- - ".rubocop.yml"
112
- - ".travis.yml"
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.5
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: