raygun4ruby 4.0.0.pre → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/README.md +8 -6
- data/lib/raygun/configuration.rb +2 -1
- data/lib/raygun/demo_exception.rb +1 -1
- data/lib/raygun/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: 9b7c357c986e52b60665b3ee8af64d7a2c421747825e16b928fc91b76ae58f2a
|
4
|
+
data.tar.gz: 671db6dc795dfe165f531b16443b483865ca659c83b25df617c09ce706f4ca48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7287d1190a0fa828a3cd9acc0ac4935249e080f1749730ad2dc2c6b9ef868f42f0e0293ba6c9c1eb5a9828d8b52ba6cfd832783512938614cf1e6921d7365a73
|
7
|
+
data.tar.gz: 9a35eeba3f42c226c98f077a27870096853e8a1e06073736e0b02bc1114725f1feeed66f2434adc35dc41f5c2b5c3181f7ab04da29886a18b638899e25460dee
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## 4.0.0
|
1
|
+
## 4.0.0 (20/05/2024):
|
2
2
|
|
3
3
|
- BREAKING CHANGE: Remove support for end-of-life Ruby verisons and Rails versions prior to 6.0.0
|
4
4
|
- Bug fix: Fix issue with breadcrumbs not being sent to Raygun when `send_in_background` is enabled (thanks to @jjb for the bug report)
|
data/README.md
CHANGED
@@ -12,25 +12,27 @@ And then execute:
|
|
12
12
|
|
13
13
|
$ bundle install
|
14
14
|
|
15
|
-
Or, if you're not using Bundler, install the gem directly:
|
16
|
-
|
17
|
-
$ gem install raygun4ruby
|
18
|
-
|
19
15
|
## Usage
|
20
16
|
|
21
17
|
### Rails 6+
|
22
18
|
|
19
|
+
#### Step 1
|
20
|
+
|
23
21
|
Run:
|
24
22
|
|
25
23
|
rails g raygun:install YOUR_API_KEY_HERE
|
26
24
|
|
27
25
|
You can find your API key in the [Raygun app](https://app.raygun.com/) under "Application Settings".
|
28
26
|
|
27
|
+
#### Step 2
|
28
|
+
|
29
29
|
You can then test your Raygun integration by running:
|
30
30
|
|
31
31
|
rails raygun:test
|
32
32
|
|
33
|
-
You should see an "ItWorksException" appear in your Raygun dashboard. You're ready to zap those errors! :zap:
|
33
|
+
You should see an "ItWorksException" appear in your Raygun Crash Reporting dashboard. You're ready to zap those errors! :zap:
|
34
|
+
|
35
|
+
#### Step 3 (optional)
|
34
36
|
|
35
37
|
The generator will create a file in `config/initializers` called "raygun.rb". If you need to do any further configuration or customization of Raygun, that's the place to do it!
|
36
38
|
|
@@ -292,7 +294,7 @@ To see the defaults check out [affected_user.rb](https://github.com/MindscapeHQ/
|
|
292
294
|
|
293
295
|
If you're using Rails, most authentication systems will have this method set and you should be good to go.
|
294
296
|
|
295
|
-
The count of unique affected customers will appear on the error group in
|
297
|
+
The count of unique affected customers will appear on the error group in Raygun Crash Reporting. If your customer has an `email` attribute, and that email has a Gravatar associated with that address, you will also see your customer's avatar.
|
296
298
|
|
297
299
|
If you wish to keep it anonymous, you could set this identifier to something like `SecureRandom.uuid` and store that in a cookie, like so:
|
298
300
|
|
data/lib/raygun/configuration.rb
CHANGED
@@ -97,7 +97,8 @@ module Raygun
|
|
97
97
|
'CGI::Session::CookieStore::TamperedWithCookie',
|
98
98
|
'ActionController::UnknownAction',
|
99
99
|
'AbstractController::ActionNotFound',
|
100
|
-
'Mongoid::Errors::DocumentNotFound'
|
100
|
+
'Mongoid::Errors::DocumentNotFound',
|
101
|
+
'Sidekiq::JobRetry::Skip']
|
101
102
|
|
102
103
|
DEFAULT_FILTER_PARAMETERS = [ :password, :card_number, :cvv ]
|
103
104
|
|
@@ -11,7 +11,7 @@ module Raygun
|
|
11
11
|
response = Raygun.track_exception(e)
|
12
12
|
|
13
13
|
if response.success?
|
14
|
-
puts "Success! Now go check your Raygun
|
14
|
+
puts "Success! Now go check your Raygun Crash Reporting dashboard"
|
15
15
|
else
|
16
16
|
puts "Oh-oh, something went wrong - double check your API key"
|
17
17
|
puts "API Key - " << Raygun.configuration.api_key << ")"
|
data/lib/raygun/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindscape
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-05-
|
12
|
+
date: 2024-05-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|