exception_notification_sns 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b730222081255bcfaef33ea92cc5e3e2a37837e7
4
- data.tar.gz: 25631297661da6d0349211265eeb9024eed3c63c
3
+ metadata.gz: 22dcca1faab1b4bd3bb4eeea1707964d6257b057
4
+ data.tar.gz: f0abaee4b1aab7dab21b5f4b7798e354687a60de
5
5
  SHA512:
6
- metadata.gz: 8909bdc75d1d85431d497336d1b6d5019cb29981548bf46489f428bdac9b8c83384e25a8236b49838844f570916a92865a52dd5ebdb88797bd89d8cf0c003f3d
7
- data.tar.gz: 0ebbed5b2ea7382fc6fa608d30e1c63984116eeb9afd078b7f190ec741f25c12209b5d720ece092f9d3179fcb2453f812d1ba8083a651b39d6c42bc12a3ac4bd
6
+ metadata.gz: 05ea338ba70a6a90ae0ca72af27574e6a8e2966ed8a6b03a08eb0fce6b692e9a3a341cfdb2f809ee3b3f9f5368efebbe3664cdf3220f4b17a3408b0529f0bdb0
7
+ data.tar.gz: 3b32b3666c21102d1d41bae88404be06e71cd0083a268705aeabb6d32d3d21dcdf5f974f9b7ca6ac83fcf76f84a65b1ca813c0fde322f30ce899e230f0b45f43
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .idea
2
2
  *.iml
3
- *.gem
3
+ *.gem
4
+ Gemfile.lock
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'exception_notification_sns'
4
- s.version = '0.1.4'
4
+ s.version = '0.1.5'
5
5
  s.summary = 'exception_notification extension for aws sns v1'
6
6
  s.description = 'exception_notification_sns gem is used for sending application extensions to aws sns.
7
7
  It extends exception_notification gem, uses aws-sdk-v1 gem to push exception notificatons
@@ -7,13 +7,14 @@ module ExceptionNotifier
7
7
  def initialize(options)
8
8
  super
9
9
 
10
- access_key_id = options.delete(:access_key_id)
11
- secret_access_key = options.delete(:secret_access_key)
12
- region = options.delete(:region)
10
+ client_params = {}
11
+ %i[access_key_id secret_access_key region].each do |key|
12
+ next unless options[key].present?
13
13
 
14
- @sns_client = AWS::SNS::Client.new(access_key_id: access_key_id,
15
- secret_access_key: secret_access_key,
16
- region: region)
14
+ client_params[key] = options.delete(key)
15
+ end
16
+
17
+ @sns_client = AWS::SNS::Client.new(client_params)
17
18
  @topic_arn = options.delete(:topic_arn)
18
19
  @subject = options.delete(:subject)
19
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_notification_sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matej Minažek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-10 00:00:00.000000000 Z
11
+ date: 2019-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-v1
@@ -148,7 +148,6 @@ files:
148
148
  - ".ruby-gemset"
149
149
  - ".ruby-version"
150
150
  - Gemfile
151
- - Gemfile.lock
152
151
  - LICENSE
153
152
  - README.md
154
153
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,161 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- exception_notification_sns (0.1.4)
5
- aws-sdk-v1 (>= 1, < 3)
6
- exception_notification (= 4.2.1)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (4.2.7.1)
12
- actionpack (= 4.2.7.1)
13
- actionview (= 4.2.7.1)
14
- activejob (= 4.2.7.1)
15
- mail (~> 2.5, >= 2.5.4)
16
- rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.7.1)
18
- actionview (= 4.2.7.1)
19
- activesupport (= 4.2.7.1)
20
- rack (~> 1.6)
21
- rack-test (~> 0.6.2)
22
- rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- actionview (4.2.7.1)
25
- activesupport (= 4.2.7.1)
26
- builder (~> 3.1)
27
- erubis (~> 2.7.0)
28
- rails-dom-testing (~> 1.0, >= 1.0.5)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
- activejob (4.2.7.1)
31
- activesupport (= 4.2.7.1)
32
- globalid (>= 0.3.0)
33
- activemodel (4.2.7.1)
34
- activesupport (= 4.2.7.1)
35
- builder (~> 3.1)
36
- activerecord (4.2.7.1)
37
- activemodel (= 4.2.7.1)
38
- activesupport (= 4.2.7.1)
39
- arel (~> 6.0)
40
- activesupport (4.2.7.1)
41
- i18n (~> 0.7)
42
- json (~> 1.7, >= 1.7.7)
43
- minitest (~> 5.1)
44
- thread_safe (~> 0.3, >= 0.3.4)
45
- tzinfo (~> 1.1)
46
- arel (6.0.4)
47
- ast (2.4.0)
48
- aws-sdk-v1 (1.67.0)
49
- json (~> 1.4)
50
- nokogiri (~> 1)
51
- builder (3.2.3)
52
- concurrent-ruby (1.0.4)
53
- diff-lcs (1.2.5)
54
- erubis (2.7.0)
55
- exception_notification (4.2.1)
56
- actionmailer (>= 4.0, < 6)
57
- activesupport (>= 4.0, < 6)
58
- factory_girl (4.5.0)
59
- activesupport (>= 3.0.0)
60
- globalid (0.3.7)
61
- activesupport (>= 4.1.0)
62
- i18n (0.7.0)
63
- jaro_winkler (1.5.1)
64
- json (1.8.6)
65
- loofah (2.0.3)
66
- nokogiri (>= 1.5.9)
67
- mail (2.6.4)
68
- mime-types (>= 1.16, < 4)
69
- metaclass (0.0.4)
70
- mime-types (3.1)
71
- mime-types-data (~> 3.2015)
72
- mime-types-data (3.2016.0521)
73
- mini_portile2 (2.1.0)
74
- minitest (5.10.1)
75
- mocha (0.13.3)
76
- metaclass (~> 0.0.1)
77
- nokogiri (1.7.0.1)
78
- mini_portile2 (~> 2.1.0)
79
- parallel (1.12.1)
80
- parser (2.5.1.0)
81
- ast (~> 2.4.0)
82
- powerpack (0.1.2)
83
- rack (1.6.5)
84
- rack-test (0.6.3)
85
- rack (>= 1.0)
86
- rails (4.2.7.1)
87
- actionmailer (= 4.2.7.1)
88
- actionpack (= 4.2.7.1)
89
- actionview (= 4.2.7.1)
90
- activejob (= 4.2.7.1)
91
- activemodel (= 4.2.7.1)
92
- activerecord (= 4.2.7.1)
93
- activesupport (= 4.2.7.1)
94
- bundler (>= 1.3.0, < 2.0)
95
- railties (= 4.2.7.1)
96
- sprockets-rails
97
- rails-deprecated_sanitizer (1.0.3)
98
- activesupport (>= 4.2.0.alpha)
99
- rails-dom-testing (1.0.8)
100
- activesupport (>= 4.2.0.beta, < 5.0)
101
- nokogiri (~> 1.6)
102
- rails-deprecated_sanitizer (>= 1.0.1)
103
- rails-html-sanitizer (1.0.3)
104
- loofah (~> 2.0)
105
- railties (4.2.7.1)
106
- actionpack (= 4.2.7.1)
107
- activesupport (= 4.2.7.1)
108
- rake (>= 0.8.7)
109
- thor (>= 0.18.1, < 2.0)
110
- rainbow (3.0.0)
111
- rake (12.0.0)
112
- rspec (3.4.0)
113
- rspec-core (~> 3.4.0)
114
- rspec-expectations (~> 3.4.0)
115
- rspec-mocks (~> 3.4.0)
116
- rspec-core (3.4.4)
117
- rspec-support (~> 3.4.0)
118
- rspec-expectations (3.4.0)
119
- diff-lcs (>= 1.2.0, < 2.0)
120
- rspec-support (~> 3.4.0)
121
- rspec-mocks (3.4.1)
122
- diff-lcs (>= 1.2.0, < 2.0)
123
- rspec-support (~> 3.4.0)
124
- rspec-support (3.4.1)
125
- rubocop (0.57.2)
126
- jaro_winkler (~> 1.5.1)
127
- parallel (~> 1.10)
128
- parser (>= 2.5)
129
- powerpack (~> 0.1)
130
- rainbow (>= 2.2.2, < 4.0)
131
- ruby-progressbar (~> 1.7)
132
- unicode-display_width (~> 1.0, >= 1.0.1)
133
- ruby-progressbar (1.9.0)
134
- sprockets (3.7.1)
135
- concurrent-ruby (~> 1.0)
136
- rack (> 1, < 3)
137
- sprockets-rails (3.2.0)
138
- actionpack (>= 4.0)
139
- activesupport (>= 4.0)
140
- sprockets (>= 3.0.0)
141
- sqlite3 (1.3.10)
142
- thor (0.19.4)
143
- thread_safe (0.3.5)
144
- tzinfo (1.2.2)
145
- thread_safe (~> 0.1)
146
- unicode-display_width (1.4.0)
147
-
148
- PLATFORMS
149
- ruby
150
-
151
- DEPENDENCIES
152
- exception_notification_sns!
153
- factory_girl (= 4.5)
154
- mocha (~> 0.13.0)
155
- rails (>= 4.0.0, < 6)
156
- rspec (= 3.4.0)
157
- rubocop (~> 0.52)
158
- sqlite3 (= 1.3.10)
159
-
160
- BUNDLED WITH
161
- 1.16.2