simplepush 0.7.4 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/lib/integrations/simplepush_notifier.rb +11 -2
- data/lib/simplepush/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3141da343a13f7d0597e88af99d493a5e6039f68bbbd4980497d0685beb69a8d
|
4
|
+
data.tar.gz: fa67ec1d3b58ed28dca6125439bbc3a1a19171d14a9015a47f0b6785cee6ca51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8207ba853fa72dc78aea09926424678564740aa604b0f0176c87888214b70a1fc600cf3923f065079dcaddf8eb780131998a6985db223c88d46d39312e6734d
|
7
|
+
data.tar.gz: 5ed963e92ef4cba253e90d9522de5abde9026f085eb0ef2a44096cffc2839f7dbb8d852aa9bc0351070a04baccfdfca405d4cc6e71959edfb563bce3011353e2
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -145,6 +145,8 @@ The following is a sample of the query as it is produced:
|
|
145
145
|
- 0.7.2 Bump dependencies because of vulnerability in httparty
|
146
146
|
- 0.7.3 Fix OpenSSL cipher needing key again under Ruby >= 3.0, bump dependencies
|
147
147
|
- 0.7.4 Fix message length restrictions for Exception Notification
|
148
|
+
- 0.7.5 Make more robust again missing credentials
|
149
|
+
- 0.7.6 Fix for 0.7.5
|
148
150
|
|
149
151
|
## Contributing
|
150
152
|
|
@@ -9,13 +9,22 @@ module ExceptionNotifier
|
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
cred = Rails.application.credentials.simplepush
|
12
|
+
|
13
|
+
if !cred
|
14
|
+
Rails.logger.error "Simplepush credentials not found. Please add simplepush credentials to your credentials file."
|
15
|
+
@client = nil
|
16
|
+
return
|
17
|
+
end
|
18
|
+
|
12
19
|
@client = Simplepush.new(cred[:key], cred[:pass], cred[:salt])
|
13
20
|
@default_options = options
|
14
21
|
end
|
15
22
|
|
16
23
|
def call(exception, options = {})
|
17
|
-
|
18
|
-
|
24
|
+
if !@client
|
25
|
+
event = SimplepushExceptionEvent.new(exception, options.reverse_merge(default_options))
|
26
|
+
@client.send(event.formatted_title, event.formatted_body)
|
27
|
+
end
|
19
28
|
end
|
20
29
|
|
21
30
|
#
|
data/lib/simplepush/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplepush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Oezbek
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02
|
11
|
+
date: 2024-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|