raygun4ruby 3.2.3 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +18 -18
- data/.rspec +1 -1
- data/.travis.yml +20 -20
- data/CHANGELOG.md +127 -124
- data/Gemfile +4 -4
- data/LICENSE.txt +22 -22
- data/README.md +420 -420
- data/Rakefile +27 -27
- data/examples/sinatras_raygun.rb +17 -17
- data/lib/generators/raygun/install_generator.rb +26 -26
- data/lib/raygun.rb +179 -179
- data/lib/raygun/affected_user.rb +59 -59
- data/lib/raygun/breadcrumbs.rb +34 -34
- data/lib/raygun/breadcrumbs/breadcrumb.rb +34 -34
- data/lib/raygun/breadcrumbs/store.rb +86 -86
- data/lib/raygun/client.rb +305 -305
- data/lib/raygun/configuration.rb +194 -194
- data/lib/raygun/error.rb +10 -10
- data/lib/raygun/javascript_tracker.rb +42 -42
- data/lib/raygun/middleware/breadcrumbs_store_initializer.rb +19 -19
- data/lib/raygun/middleware/javascript_exception_tracking.rb +32 -32
- data/lib/raygun/middleware/rack_exception_interceptor.rb +18 -18
- data/lib/raygun/middleware/rails_insert_affected_user.rb +26 -26
- data/lib/raygun/railtie.rb +39 -39
- data/lib/raygun/services/apply_whitelist_filter_to_payload.rb +27 -27
- data/lib/raygun/sidekiq.rb +71 -70
- data/lib/raygun/testable.rb +22 -22
- data/lib/raygun/version.rb +3 -3
- data/lib/raygun4ruby.rb +1 -1
- data/lib/resque/failure/raygun.rb +25 -25
- data/lib/tasks/raygun.tasks +7 -7
- data/raygun4ruby.gemspec +45 -45
- data/spec/dummy/.gitignore +17 -17
- data/spec/dummy/Gemfile +47 -47
- data/spec/dummy/README.rdoc +28 -28
- data/spec/dummy/Rakefile +6 -6
- data/spec/dummy/app/assets/config/manifest.js +2 -2
- data/spec/dummy/app/assets/javascripts/application.js +13 -13
- data/spec/dummy/app/assets/stylesheets/application.css +15 -15
- data/spec/dummy/app/controllers/application_controller.rb +5 -5
- data/spec/dummy/app/controllers/home_controller.rb +4 -4
- data/spec/dummy/app/helpers/application_helper.rb +2 -2
- data/spec/dummy/app/views/home/index.html.erb +3 -3
- data/spec/dummy/app/views/home/index.json.erb +1 -1
- data/spec/dummy/app/views/layouts/application.html.erb +14 -14
- data/spec/dummy/bin/bundle +3 -3
- data/spec/dummy/bin/rails +9 -9
- data/spec/dummy/bin/rake +9 -9
- data/spec/dummy/bin/setup +29 -29
- data/spec/dummy/bin/spring +17 -17
- data/spec/dummy/config.ru +4 -4
- data/spec/dummy/config/application.rb +26 -26
- data/spec/dummy/config/boot.rb +3 -3
- data/spec/dummy/config/database.yml +25 -25
- data/spec/dummy/config/environment.rb +5 -5
- data/spec/dummy/config/environments/development.rb +41 -41
- data/spec/dummy/config/environments/production.rb +79 -79
- data/spec/dummy/config/environments/test.rb +42 -42
- data/spec/dummy/config/initializers/assets.rb +11 -11
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -3
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
- data/spec/dummy/config/initializers/inflections.rb +16 -16
- data/spec/dummy/config/initializers/mime_types.rb +4 -4
- data/spec/dummy/config/initializers/session_store.rb +3 -3
- data/spec/dummy/config/initializers/to_time_preserves_timezone.rb +10 -10
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/spec/dummy/config/locales/en.yml +23 -23
- data/spec/dummy/config/routes.rb +58 -58
- data/spec/dummy/config/secrets.yml +22 -22
- data/spec/dummy/db/seeds.rb +7 -7
- data/spec/dummy/public/404.html +67 -67
- data/spec/dummy/public/422.html +67 -67
- data/spec/dummy/public/500.html +66 -66
- data/spec/dummy/public/robots.txt +5 -5
- data/spec/dummy/test/test_helper.rb +10 -10
- data/spec/features/javascript_spec.rb +48 -48
- data/spec/rails_helper.rb +4 -4
- data/spec/raygun/breadcrumbs/breadcrumb_spec.rb +171 -171
- data/spec/raygun/breadcrumbs/store_spec.rb +170 -170
- data/spec/raygun/raygun_spec.rb +47 -47
- data/spec/services/apply_whitelist_filter_to_payload_spec.rb +251 -251
- data/spec/spec_helper.rb +24 -24
- data/spec/support/fake_logger.rb +17 -17
- data/test/integration/client_test.rb +19 -19
- data/test/test_helper.rb +72 -72
- data/test/unit/affected_user_test.rb +136 -136
- data/test/unit/client_test.rb +792 -792
- data/test/unit/configuration_test.rb +206 -206
- data/test/unit/raygun_test.rb +25 -25
- data/test/unit/resque_failure_test.rb +24 -24
- data/test/unit/sidekiq_failure_test.rb +32 -32
- metadata +7 -7
@@ -1,24 +1,24 @@
|
|
1
|
-
require_relative "../test_helper.rb"
|
2
|
-
|
3
|
-
# Very simple test
|
4
|
-
class ResqueFailureTest < Raygun::UnitTest
|
5
|
-
|
6
|
-
require "resque/failure/raygun"
|
7
|
-
|
8
|
-
def setup
|
9
|
-
super
|
10
|
-
|
11
|
-
stub_request(:post, 'https://api.raygun.
|
12
|
-
fake_successful_entry
|
13
|
-
end
|
14
|
-
|
15
|
-
def test_failure_backend_appears_to_work
|
16
|
-
assert Resque::Failure::Raygun.new(
|
17
|
-
StandardError.new("Worker Problem"),
|
18
|
-
"TestWorker PID 123",
|
19
|
-
"super_important_jobs",
|
20
|
-
class: "SendCookies", args: [ "nik" ]
|
21
|
-
).save.success?
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
1
|
+
require_relative "../test_helper.rb"
|
2
|
+
|
3
|
+
# Very simple test
|
4
|
+
class ResqueFailureTest < Raygun::UnitTest
|
5
|
+
|
6
|
+
require "resque/failure/raygun"
|
7
|
+
|
8
|
+
def setup
|
9
|
+
super
|
10
|
+
|
11
|
+
stub_request(:post, 'https://api.raygun.com/entries').to_return(status: 202)
|
12
|
+
fake_successful_entry
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_failure_backend_appears_to_work
|
16
|
+
assert Resque::Failure::Raygun.new(
|
17
|
+
StandardError.new("Worker Problem"),
|
18
|
+
"TestWorker PID 123",
|
19
|
+
"super_important_jobs",
|
20
|
+
class: "SendCookies", args: [ "nik" ]
|
21
|
+
).save.success?
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -1,32 +1,32 @@
|
|
1
|
-
require_relative "../test_helper.rb"
|
2
|
-
|
3
|
-
require "sidekiq"
|
4
|
-
# Convince Sidekiq it's on a server :)
|
5
|
-
module Sidekiq
|
6
|
-
def self.server?
|
7
|
-
true
|
8
|
-
end
|
9
|
-
end
|
10
|
-
require "raygun/sidekiq"
|
11
|
-
|
12
|
-
class SidekiqFailureTest < Raygun::UnitTest
|
13
|
-
|
14
|
-
def setup
|
15
|
-
super
|
16
|
-
|
17
|
-
stub_request(:post, 'https://api.raygun.
|
18
|
-
fake_successful_entry
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_failure_backend_appears_to_work
|
22
|
-
assert Raygun::SidekiqReporter.call(
|
23
|
-
StandardError.new("Oh no! Your Sidekiq has failed!"),
|
24
|
-
sidekick_name: "robin"
|
25
|
-
).success?
|
26
|
-
end
|
27
|
-
|
28
|
-
def test_we_are_in_sidekiqs_list_of_error_handlers
|
29
|
-
assert Sidekiq.error_handlers.include?(Raygun::SidekiqReporter)
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
1
|
+
require_relative "../test_helper.rb"
|
2
|
+
|
3
|
+
require "sidekiq"
|
4
|
+
# Convince Sidekiq it's on a server :)
|
5
|
+
module Sidekiq
|
6
|
+
def self.server?
|
7
|
+
true
|
8
|
+
end
|
9
|
+
end
|
10
|
+
require "raygun/sidekiq"
|
11
|
+
|
12
|
+
class SidekiqFailureTest < Raygun::UnitTest
|
13
|
+
|
14
|
+
def setup
|
15
|
+
super
|
16
|
+
|
17
|
+
stub_request(:post, 'https://api.raygun.com/entries').to_return(status: 202)
|
18
|
+
fake_successful_entry
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_failure_backend_appears_to_work
|
22
|
+
assert Raygun::SidekiqReporter.call(
|
23
|
+
StandardError.new("Oh no! Your Sidekiq has failed!"),
|
24
|
+
sidekick_name: "robin"
|
25
|
+
).success?
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_we_are_in_sidekiqs_list_of_error_handlers
|
29
|
+
assert Sidekiq.error_handlers.include?(Raygun::SidekiqReporter)
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
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: 3.2.
|
4
|
+
version: 3.2.4
|
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:
|
12
|
+
date: 2021-02-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -297,9 +297,9 @@ dependencies:
|
|
297
297
|
- - ">="
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
|
-
description: Ruby Adapter for Raygun
|
300
|
+
description: Ruby Adapter for Raygun
|
301
301
|
email:
|
302
|
-
- hello@raygun.
|
302
|
+
- hello@raygun.com
|
303
303
|
executables: []
|
304
304
|
extensions: []
|
305
305
|
extra_rdoc_files: []
|
@@ -414,7 +414,7 @@ files:
|
|
414
414
|
- test/unit/raygun_test.rb
|
415
415
|
- test/unit/resque_failure_test.rb
|
416
416
|
- test/unit/sidekiq_failure_test.rb
|
417
|
-
homepage:
|
417
|
+
homepage: https://raygun.com
|
418
418
|
licenses:
|
419
419
|
- MIT
|
420
420
|
metadata: {}
|
@@ -433,10 +433,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
433
433
|
- !ruby/object:Gem::Version
|
434
434
|
version: '0'
|
435
435
|
requirements: []
|
436
|
-
rubygems_version: 3.
|
436
|
+
rubygems_version: 3.1.2
|
437
437
|
signing_key:
|
438
438
|
specification_version: 4
|
439
|
-
summary: This gem provides support for Ruby and Ruby on Rails for the Raygun
|
439
|
+
summary: This gem provides support for Ruby and Ruby on Rails for the Raygun error
|
440
440
|
reporter
|
441
441
|
test_files:
|
442
442
|
- test/integration/client_test.rb
|