raygun4ruby 3.2.4 → 3.2.5.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.rspec +0 -0
- data/.travis.yml +0 -0
- data/CHANGELOG.md +6 -3
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +9 -9
- data/Rakefile +0 -0
- data/examples/sinatras_raygun.rb +0 -0
- data/lib/generators/raygun/install_generator.rb +0 -0
- data/lib/raygun.rb +0 -0
- data/lib/raygun/affected_user.rb +0 -0
- data/lib/raygun/breadcrumbs.rb +0 -0
- data/lib/raygun/breadcrumbs/breadcrumb.rb +0 -0
- data/lib/raygun/breadcrumbs/store.rb +0 -0
- data/lib/raygun/client.rb +5 -2
- data/lib/raygun/configuration.rb +0 -0
- data/lib/raygun/error.rb +0 -0
- data/lib/raygun/javascript_tracker.rb +0 -0
- data/lib/raygun/middleware/breadcrumbs_store_initializer.rb +0 -0
- data/lib/raygun/middleware/javascript_exception_tracking.rb +0 -0
- data/lib/raygun/middleware/rack_exception_interceptor.rb +0 -0
- data/lib/raygun/middleware/rails_insert_affected_user.rb +0 -0
- data/lib/raygun/railtie.rb +0 -0
- data/lib/raygun/services/apply_whitelist_filter_to_payload.rb +0 -0
- data/lib/raygun/sidekiq.rb +0 -0
- data/lib/raygun/version.rb +1 -1
- data/lib/raygun4ruby.rb +0 -0
- data/lib/resque/failure/raygun.rb +0 -0
- data/lib/tasks/raygun.tasks +0 -0
- data/raygun4ruby.gemspec +0 -0
- data/spec/dummy/.gitignore +0 -0
- data/spec/dummy/Gemfile +0 -0
- data/spec/dummy/README.rdoc +0 -0
- data/spec/dummy/Rakefile +0 -0
- data/spec/dummy/app/assets/config/manifest.js +0 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -0
- data/spec/dummy/app/assets/stylesheets/application.css +0 -0
- data/spec/dummy/app/controllers/application_controller.rb +0 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/home_controller.rb +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/home/index.html.erb +0 -0
- data/spec/dummy/app/views/home/index.json.erb +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -0
- data/spec/dummy/bin/bundle +0 -0
- data/spec/dummy/bin/rails +0 -0
- data/spec/dummy/bin/rake +0 -0
- data/spec/dummy/bin/setup +0 -0
- data/spec/dummy/bin/spring +0 -0
- data/spec/dummy/config.ru +0 -0
- data/spec/dummy/config/application.rb +0 -0
- data/spec/dummy/config/boot.rb +0 -0
- data/spec/dummy/config/database.yml +0 -0
- data/spec/dummy/config/environment.rb +0 -0
- data/spec/dummy/config/environments/development.rb +0 -0
- data/spec/dummy/config/environments/production.rb +0 -0
- data/spec/dummy/config/initializers/assets.rb +0 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/spec/dummy/config/initializers/inflections.rb +0 -0
- data/spec/dummy/config/initializers/mime_types.rb +0 -0
- data/spec/dummy/config/initializers/session_store.rb +0 -0
- data/spec/dummy/config/initializers/to_time_preserves_timezone.rb +0 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/spec/dummy/config/locales/en.yml +0 -0
- data/spec/dummy/config/routes.rb +0 -0
- data/spec/dummy/config/secrets.yml +0 -0
- data/spec/dummy/db/seeds.rb +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/lib/tasks/.keep +0 -0
- data/spec/dummy/public/404.html +0 -0
- data/spec/dummy/public/422.html +0 -0
- data/spec/dummy/public/500.html +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/robots.txt +0 -0
- data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
- data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
- data/spec/features/javascript_spec.rb +0 -0
- data/spec/rails_helper.rb +0 -0
- data/spec/raygun/breadcrumbs/breadcrumb_spec.rb +0 -0
- data/spec/raygun/breadcrumbs/store_spec.rb +0 -0
- data/spec/raygun/raygun_spec.rb +0 -0
- data/spec/services/apply_whitelist_filter_to_payload_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/support/fake_logger.rb +0 -0
- data/test/integration/client_test.rb +0 -0
- data/test/test_helper.rb +2 -2
- data/test/unit/affected_user_test.rb +0 -0
- data/test/unit/client_test.rb +26 -6
- data/test/unit/configuration_test.rb +0 -0
- data/test/unit/raygun_test.rb +0 -0
- data/test/unit/resque_failure_test.rb +0 -0
- data/test/unit/sidekiq_failure_test.rb +0 -0
- metadata +8 -18
- data/lib/raygun/testable.rb +0 -23
- data/spec/dummy/config/environments/test.rb +0 -42
- data/spec/dummy/test/controllers/.keep +0 -0
- data/spec/dummy/test/fixtures/.keep +0 -0
- data/spec/dummy/test/helpers/.keep +0 -0
- data/spec/dummy/test/integration/.keep +0 -0
- data/spec/dummy/test/mailers/.keep +0 -0
- data/spec/dummy/test/models/.keep +0 -0
- data/spec/dummy/test/test_helper.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f7f89265a480906faf2353b4f6e0ad1207b957a762d9ded90c3dce1cf6de308
|
4
|
+
data.tar.gz: d55e52bdce42f91f1bc6aea0d907cef723f066986020a9e02083a07068e1cae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96e29176ec12a4a293ae82caf7540aff4da236163c4f8f8ae05875940d25682e3a0dc6c53c14b69851a9565f2d2d483fc07b789e206f0c51a85be94dcf2f8d26
|
7
|
+
data.tar.gz: 3fbab1145ac50d07e6bb470b6b8db559aff108a963c43535b3c63b84168e4f60f7d61ea35b4f502d955bdc43e004f8379cc8858a96a5aa3ff38611cca57605a4
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
File without changes
|
data/.travis.yml
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 3.2.5 (15/03/2021):
|
2
|
+
- Bug fix: Ensure tags passed into track_exception are not persisted ([#164](https://github.com/MindscapeHQ/raygun4ruby/pull/164))
|
3
|
+
|
1
4
|
## 3.2.4 (11/02/2021):
|
2
5
|
- Set sidekiq tag on sidekiq errors ([#161](https://github.com/MindscapeHQ/raygun4ruby/pull/161))
|
3
6
|
|
@@ -62,12 +65,12 @@ Bugfixes
|
|
62
65
|
## 2.4.0 (31/07/2017)
|
63
66
|
|
64
67
|
Features
|
65
|
-
- Add functionality to track affected user in Sidekiq jobs, refer to the README for more information, under the "Affected User Tracking in Sidekiq" heading ([#121](https://github.com/MindscapeHQ/raygun4ruby/pull/121))
|
68
|
+
- Add functionality to track affected user/customer in Sidekiq jobs, refer to the README for more information, under the "Affected User Tracking/Customers in Sidekiq" heading ([#121](https://github.com/MindscapeHQ/raygun4ruby/pull/121))
|
66
69
|
|
67
70
|
## 2.3.0 (09/05/2017)"
|
68
71
|
|
69
72
|
Bugfixes
|
70
|
-
- Fix issue preventing affected users for a crash report from showing up in the affected users page ([#119](https://github.com/MindscapeHQ/raygun4ruby/pull/119))
|
73
|
+
- Fix issue preventing affected users/customers for a crash report from showing up in the affected users/customers page ([#119](https://github.com/MindscapeHQ/raygun4ruby/pull/119))
|
71
74
|
|
72
75
|
## 2.2.0 (05/05/2017)
|
73
76
|
|
@@ -106,7 +109,7 @@ Features:
|
|
106
109
|
|
107
110
|
Features:
|
108
111
|
- Improve affected user handling to let you specify all Raygun parameters, identifier, email, first name, full name and uuid. See [README.md](https://github.com/MindscapeHQ/raygun4ruby#affected-user-tracking) for details ([#34](https://github.com/MindscapeHQ/raygun4ruby/pull/34))
|
109
|
-
- Pass a user object as the third parameter to `Raygun.track_exception` to have affected user tracking for manually tracked exceptions, see the above link for more information on configuring this ([#106](https://github.com/MindscapeHQ/raygun4ruby/pull/106))
|
112
|
+
- Pass a user object as the third parameter to `Raygun.track_exception` to have affected user tracking/customers for manually tracked exceptions, see the above link for more information on configuring this ([#106](https://github.com/MindscapeHQ/raygun4ruby/pull/106))
|
110
113
|
- If the exception instance responds to `:raygun_custom_data` that method will be called and the return value merged into the `custom_data` hash sent to Raygun. For convenience a `Raygun::Error` class is provided that takes this custom data as a second argument ([#101](https://github.com/MindscapeHQ/raygun4ruby/pull/101))
|
111
114
|
- Allowed `Configuration.custom_data` to be set to a proc to allow a global custom data hook for all exceptions. It is passed as arguments the exception and the environment hash ([#108](https://github.com/MindscapeHQ/raygun4ruby/pull/108))
|
112
115
|
- Added `Configuration.debug` to enable logging the reason why an exception was not reported ([#109](https://github.com/MindscapeHQ/raygun4ruby/pull/109))
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -74,7 +74,7 @@ rescue => e
|
|
74
74
|
Raygun.track_exception(e)
|
75
75
|
end
|
76
76
|
|
77
|
-
# You may also pass a user object as the third argument to allow affected
|
77
|
+
# You may also pass a user object as the third argument to allow affected customers, like so
|
78
78
|
begin
|
79
79
|
# your lovely code here
|
80
80
|
rescue => e
|
@@ -264,13 +264,13 @@ Raygun.setup do |config|
|
|
264
264
|
end
|
265
265
|
```
|
266
266
|
|
267
|
-
### Affected
|
267
|
+
### Affected Customers
|
268
268
|
|
269
|
-
Raygun can now track how many
|
269
|
+
Raygun can now track how many customers have been affected by an error.
|
270
270
|
|
271
|
-
By default, Raygun looks for a method called `current_user` on your controller, and it will populate the
|
271
|
+
By default, Raygun looks for a method called `current_user` on your controller, and it will populate the customer's information based on a default method name mapping.
|
272
272
|
|
273
|
-
(e.g Raygun will call `email` to populate the
|
273
|
+
(e.g Raygun will call `email` to populate the customer's email, and `first_name` for the customer's first name)
|
274
274
|
|
275
275
|
You can inspect and customize this mapping using `config.affected_user_mapping`, like so:
|
276
276
|
|
@@ -291,7 +291,7 @@ To see the defaults check out [affected_user.rb](https://github.com/MindscapeHQ/
|
|
291
291
|
|
292
292
|
If you're using Rails, most authentication systems will have this method set and you should be good to go.
|
293
293
|
|
294
|
-
The count of unique affected
|
294
|
+
The count of unique affected customers will appear on the error group in the Raygun dashboard. 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.
|
295
295
|
|
296
296
|
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:
|
297
297
|
|
@@ -371,11 +371,11 @@ Raygun4Ruby can track errors from Sidekiq (2.x or 3+). All you need to do is add
|
|
371
371
|
|
372
372
|
Either in your Raygun initializer or wherever else takes your fancy :)
|
373
373
|
|
374
|
-
#### Affected
|
374
|
+
#### Affected Customers in Sidekiq
|
375
375
|
|
376
|
-
To track affected
|
376
|
+
To track affected customers, define a class method on your worker class that returns a user object.
|
377
377
|
Make sure the name of this method is the same as whatever you have defined as the `affected_user_method` in your Raygun configuration and that it returns an object that fits the mappings defined in `affected_user_mapping`
|
378
|
-
If you have not changed these, refer to [Affected
|
378
|
+
If you have not changed these, refer to [Affected customers](#affected-customers) for the defaults
|
379
379
|
|
380
380
|
```ruby
|
381
381
|
class FailingWorker
|
data/Rakefile
CHANGED
File without changes
|
data/examples/sinatras_raygun.rb
CHANGED
File without changes
|
File without changes
|
data/lib/raygun.rb
CHANGED
File without changes
|
data/lib/raygun/affected_user.rb
CHANGED
File without changes
|
data/lib/raygun/breadcrumbs.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/raygun/client.rb
CHANGED
@@ -182,13 +182,16 @@ module Raygun
|
|
182
182
|
tags << rack_env
|
183
183
|
end
|
184
184
|
|
185
|
-
|
185
|
+
combined_tags = []
|
186
|
+
|
186
187
|
if Raygun.configuration.tags.is_a?(Proc)
|
187
188
|
configuration_tags = Raygun.configuration.tags.call(exception_instance, env)
|
188
189
|
else
|
189
190
|
configuration_tags = Raygun.configuration.tags
|
190
191
|
end
|
191
192
|
|
193
|
+
combined_tags.concat(configuration_tags)
|
194
|
+
|
192
195
|
Raygun.log('set tags')
|
193
196
|
|
194
197
|
grouping_key = env.delete(:grouping_key)
|
@@ -209,7 +212,7 @@ module Raygun
|
|
209
212
|
client: client_details,
|
210
213
|
error: error_details(exception_instance),
|
211
214
|
userCustomData: exception_custom_data.merge(custom_data).merge(configured_custom_data),
|
212
|
-
tags:
|
215
|
+
tags: combined_tags.concat(tags).compact.uniq,
|
213
216
|
request: request_information(env),
|
214
217
|
environment: {
|
215
218
|
utcOffset: Time.now.utc_offset / 3600
|
data/lib/raygun/configuration.rb
CHANGED
File without changes
|
data/lib/raygun/error.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/raygun/railtie.rb
CHANGED
File without changes
|
File without changes
|
data/lib/raygun/sidekiq.rb
CHANGED
File without changes
|
data/lib/raygun/version.rb
CHANGED
data/lib/raygun4ruby.rb
CHANGED
File without changes
|
File without changes
|
data/lib/tasks/raygun.tasks
CHANGED
File without changes
|
data/raygun4ruby.gemspec
CHANGED
File without changes
|
data/spec/dummy/.gitignore
CHANGED
File without changes
|
data/spec/dummy/Gemfile
CHANGED
File without changes
|
data/spec/dummy/README.rdoc
CHANGED
File without changes
|
data/spec/dummy/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/dummy/app/models/.keep
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/dummy/bin/bundle
CHANGED
File without changes
|
data/spec/dummy/bin/rails
CHANGED
File without changes
|
data/spec/dummy/bin/rake
CHANGED
File without changes
|
data/spec/dummy/bin/setup
CHANGED
File without changes
|
data/spec/dummy/bin/spring
CHANGED
File without changes
|
data/spec/dummy/config.ru
CHANGED
File without changes
|
File without changes
|
data/spec/dummy/config/boot.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/dummy/config/routes.rb
CHANGED
File without changes
|
File without changes
|
data/spec/dummy/db/seeds.rb
CHANGED
File without changes
|
data/spec/dummy/lib/assets/.keep
CHANGED
File without changes
|
data/spec/dummy/lib/tasks/.keep
CHANGED
File without changes
|
data/spec/dummy/public/404.html
CHANGED
File without changes
|
data/spec/dummy/public/422.html
CHANGED
File without changes
|
data/spec/dummy/public/500.html
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/rails_helper.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/spec/raygun/raygun_spec.rb
CHANGED
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
data/spec/support/fake_logger.rb
CHANGED
File without changes
|
File without changes
|
data/test/test_helper.rb
CHANGED
@@ -27,7 +27,7 @@ end
|
|
27
27
|
|
28
28
|
class NoApiKey < StandardError; end
|
29
29
|
|
30
|
-
class Raygun::IntegrationTest < Minitest::
|
30
|
+
class Raygun::IntegrationTest < Minitest::Test
|
31
31
|
|
32
32
|
def setup
|
33
33
|
Raygun.setup do |config|
|
@@ -44,7 +44,7 @@ class Raygun::IntegrationTest < Minitest::Unit::TestCase
|
|
44
44
|
|
45
45
|
end
|
46
46
|
|
47
|
-
class Raygun::UnitTest < MiniTest::
|
47
|
+
class Raygun::UnitTest < MiniTest::Test
|
48
48
|
|
49
49
|
def setup
|
50
50
|
Raygun.configuration.api_key = "test api key"
|
File without changes
|
data/test/unit/client_test.rb
CHANGED
@@ -133,9 +133,9 @@ class ClientTest < Raygun::UnitTest
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def test_tags
|
136
|
-
configuration_tags = %w
|
137
|
-
explicit_env_tags = %w
|
138
|
-
rack_env_tag = %w
|
136
|
+
configuration_tags = %w[alpha beta gaga]
|
137
|
+
explicit_env_tags = %w[one two three four]
|
138
|
+
rack_env_tag = %w[test]
|
139
139
|
|
140
140
|
Raygun.setup do |config|
|
141
141
|
config.tags = configuration_tags
|
@@ -148,9 +148,9 @@ class ClientTest < Raygun::UnitTest
|
|
148
148
|
end
|
149
149
|
|
150
150
|
def test_tags_with_proc
|
151
|
-
configuration_tags = %w
|
152
|
-
explicit_env_tags = %w
|
153
|
-
rack_env_tag = %w
|
151
|
+
configuration_tags = %w[bar]
|
152
|
+
explicit_env_tags = %w[one two three four]
|
153
|
+
rack_env_tag = %w[test]
|
154
154
|
|
155
155
|
Raygun.setup do |config|
|
156
156
|
config.tags = ->(exception, env) {
|
@@ -164,6 +164,26 @@ class ClientTest < Raygun::UnitTest
|
|
164
164
|
assert_equal expected_tags, @client.send(:build_payload_hash, test_exception, test_env)[:details][:tags]
|
165
165
|
end
|
166
166
|
|
167
|
+
def test_tags_with_multiple_send_calls
|
168
|
+
configuration_tags = %w[config-tag]
|
169
|
+
explicit_env_tags = %w[explicit-env-tag]
|
170
|
+
rack_env_tag = %w[test]
|
171
|
+
|
172
|
+
Raygun.setup do |config|
|
173
|
+
config.tags = configuration_tags
|
174
|
+
end
|
175
|
+
|
176
|
+
test_env = { tags: explicit_env_tags }
|
177
|
+
expected_tags_1 = configuration_tags + explicit_env_tags + rack_env_tag
|
178
|
+
|
179
|
+
assert_equal expected_tags_1, @client.send(:build_payload_hash, test_exception, test_env)[:details][:tags]
|
180
|
+
|
181
|
+
# Tags passed in via the `env` parameter should not persist once the crash report has been sent
|
182
|
+
expected_tags_2 = configuration_tags + rack_env_tag
|
183
|
+
|
184
|
+
assert_equal expected_tags_2, @client.send(:build_payload_hash, test_exception)[:details][:tags]
|
185
|
+
end
|
186
|
+
|
167
187
|
def test_hostname
|
168
188
|
assert_equal Socket.gethostname, @client.send(:hostname)
|
169
189
|
end
|
File without changes
|
data/test/unit/raygun_test.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.5.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindscape
|
8
8
|
- Nik Wakelin
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -330,7 +330,6 @@ files:
|
|
330
330
|
- lib/raygun/railtie.rb
|
331
331
|
- lib/raygun/services/apply_whitelist_filter_to_payload.rb
|
332
332
|
- lib/raygun/sidekiq.rb
|
333
|
-
- lib/raygun/testable.rb
|
334
333
|
- lib/raygun/version.rb
|
335
334
|
- lib/raygun4ruby.rb
|
336
335
|
- lib/resque/failure/raygun.rb
|
@@ -366,7 +365,6 @@ files:
|
|
366
365
|
- spec/dummy/config/environment.rb
|
367
366
|
- spec/dummy/config/environments/development.rb
|
368
367
|
- spec/dummy/config/environments/production.rb
|
369
|
-
- spec/dummy/config/environments/test.rb
|
370
368
|
- spec/dummy/config/initializers/assets.rb
|
371
369
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
372
370
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
@@ -380,7 +378,6 @@ files:
|
|
380
378
|
- spec/dummy/config/routes.rb
|
381
379
|
- spec/dummy/config/secrets.yml
|
382
380
|
- spec/dummy/db/seeds.rb
|
383
|
-
- spec/dummy/db/test.sqlite3
|
384
381
|
- spec/dummy/lib/assets/.keep
|
385
382
|
- spec/dummy/lib/tasks/.keep
|
386
383
|
- spec/dummy/log/.keep
|
@@ -389,13 +386,6 @@ files:
|
|
389
386
|
- spec/dummy/public/500.html
|
390
387
|
- spec/dummy/public/favicon.ico
|
391
388
|
- spec/dummy/public/robots.txt
|
392
|
-
- spec/dummy/test/controllers/.keep
|
393
|
-
- spec/dummy/test/fixtures/.keep
|
394
|
-
- spec/dummy/test/helpers/.keep
|
395
|
-
- spec/dummy/test/integration/.keep
|
396
|
-
- spec/dummy/test/mailers/.keep
|
397
|
-
- spec/dummy/test/models/.keep
|
398
|
-
- spec/dummy/test/test_helper.rb
|
399
389
|
- spec/dummy/vendor/assets/javascripts/.keep
|
400
390
|
- spec/dummy/vendor/assets/stylesheets/.keep
|
401
391
|
- spec/features/javascript_spec.rb
|
@@ -418,7 +408,7 @@ homepage: https://raygun.com
|
|
418
408
|
licenses:
|
419
409
|
- MIT
|
420
410
|
metadata: {}
|
421
|
-
post_install_message:
|
411
|
+
post_install_message:
|
422
412
|
rdoc_options: []
|
423
413
|
require_paths:
|
424
414
|
- lib
|
@@ -429,12 +419,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
429
419
|
version: '2.0'
|
430
420
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
431
421
|
requirements:
|
432
|
-
- - "
|
422
|
+
- - ">"
|
433
423
|
- !ruby/object:Gem::Version
|
434
|
-
version:
|
424
|
+
version: 1.3.1
|
435
425
|
requirements: []
|
436
|
-
rubygems_version: 3.1.
|
437
|
-
signing_key:
|
426
|
+
rubygems_version: 3.1.4
|
427
|
+
signing_key:
|
438
428
|
specification_version: 4
|
439
429
|
summary: This gem provides support for Ruby and Ruby on Rails for the Raygun error
|
440
430
|
reporter
|
data/lib/raygun/testable.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
module Raygun
|
2
|
-
|
3
|
-
class ItWorksException < StandardError; end
|
4
|
-
|
5
|
-
module Testable
|
6
|
-
|
7
|
-
def track_test_exception
|
8
|
-
Raygun.configuration.silence_reporting = false
|
9
|
-
raise ItWorksException.new("Woohoo! Your Raygun<->Ruby connection is set up correctly")
|
10
|
-
rescue ItWorksException => e
|
11
|
-
response = Raygun.track_exception(e)
|
12
|
-
|
13
|
-
if response.success?
|
14
|
-
puts "Success! Now go check your Raygun Dashboard"
|
15
|
-
else
|
16
|
-
puts "Oh-oh, something went wrong - double check your API key"
|
17
|
-
puts "API Key - " << Raygun.configuration.api_key << ")"
|
18
|
-
puts "API Response - " << response
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
Rails.application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
-
# just for the purpose of running a single test. If you are using a tool that
|
12
|
-
# preloads Rails for running tests, you may have to set it to true.
|
13
|
-
config.eager_load = false
|
14
|
-
|
15
|
-
# Configure static file server for tests with Cache-Control for performance.
|
16
|
-
config.serve_static_files = true
|
17
|
-
config.static_cache_control = 'public, max-age=3600'
|
18
|
-
|
19
|
-
# Show full error reports and disable caching.
|
20
|
-
config.consider_all_requests_local = true
|
21
|
-
config.action_controller.perform_caching = false
|
22
|
-
|
23
|
-
# Raise exceptions instead of rendering exception templates.
|
24
|
-
config.action_dispatch.show_exceptions = false
|
25
|
-
|
26
|
-
# Disable request forgery protection in test environment.
|
27
|
-
config.action_controller.allow_forgery_protection = false
|
28
|
-
|
29
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
-
# The :test delivery method accumulates sent emails in the
|
31
|
-
# ActionMailer::Base.deliveries array.
|
32
|
-
config.action_mailer.delivery_method = :test
|
33
|
-
|
34
|
-
# Randomize the order test cases are executed.
|
35
|
-
config.active_support.test_order = :random
|
36
|
-
|
37
|
-
# Print deprecation notices to the stderr.
|
38
|
-
config.active_support.deprecation = :stderr
|
39
|
-
|
40
|
-
# Raises error for missing translations
|
41
|
-
# config.action_view.raise_on_missing_translations = true
|
42
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,10 +0,0 @@
|
|
1
|
-
ENV['RAILS_ENV'] ||= 'test'
|
2
|
-
require File.expand_path('../../config/environment', __FILE__)
|
3
|
-
require 'rails/test_help'
|
4
|
-
|
5
|
-
class ActiveSupport::TestCase
|
6
|
-
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
7
|
-
fixtures :all
|
8
|
-
|
9
|
-
# Add more helper methods to be used by all tests here...
|
10
|
-
end
|