raygun4ruby 3.2.5.pre → 3.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/.rspec +0 -0
  4. data/.travis.yml +0 -0
  5. data/CHANGELOG.md +3 -0
  6. data/Gemfile +0 -0
  7. data/LICENSE.txt +0 -0
  8. data/README.md +0 -0
  9. data/Rakefile +0 -0
  10. data/examples/sinatras_raygun.rb +0 -0
  11. data/lib/generators/raygun/install_generator.rb +0 -0
  12. data/lib/raygun.rb +2 -2
  13. data/lib/raygun/affected_user.rb +0 -0
  14. data/lib/raygun/breadcrumbs.rb +0 -0
  15. data/lib/raygun/breadcrumbs/breadcrumb.rb +0 -0
  16. data/lib/raygun/breadcrumbs/store.rb +0 -0
  17. data/lib/raygun/client.rb +0 -0
  18. data/lib/raygun/configuration.rb +0 -0
  19. data/lib/raygun/demo_exception.rb +23 -0
  20. data/lib/raygun/error.rb +0 -0
  21. data/lib/raygun/javascript_tracker.rb +0 -0
  22. data/lib/raygun/middleware/breadcrumbs_store_initializer.rb +0 -0
  23. data/lib/raygun/middleware/javascript_exception_tracking.rb +0 -0
  24. data/lib/raygun/middleware/rack_exception_interceptor.rb +0 -0
  25. data/lib/raygun/middleware/rails_insert_affected_user.rb +0 -0
  26. data/lib/raygun/railtie.rb +0 -0
  27. data/lib/raygun/services/apply_whitelist_filter_to_payload.rb +0 -0
  28. data/lib/raygun/sidekiq.rb +0 -0
  29. data/lib/raygun/version.rb +1 -1
  30. data/lib/raygun4ruby.rb +0 -0
  31. data/lib/resque/failure/raygun.rb +0 -0
  32. data/lib/tasks/raygun.tasks +0 -0
  33. data/raygun4ruby.gemspec +0 -0
  34. data/spec/dummy/.gitignore +0 -0
  35. data/spec/dummy/Gemfile +0 -0
  36. data/spec/dummy/README.rdoc +0 -0
  37. data/spec/dummy/Rakefile +0 -0
  38. data/spec/dummy/app/assets/config/manifest.js +0 -0
  39. data/spec/dummy/app/assets/images/.keep +0 -0
  40. data/spec/dummy/app/assets/javascripts/application.js +0 -0
  41. data/spec/dummy/app/assets/stylesheets/application.css +0 -0
  42. data/spec/dummy/app/controllers/application_controller.rb +0 -0
  43. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  44. data/spec/dummy/app/controllers/home_controller.rb +0 -0
  45. data/spec/dummy/app/helpers/application_helper.rb +0 -0
  46. data/spec/dummy/app/mailers/.keep +0 -0
  47. data/spec/dummy/app/models/.keep +0 -0
  48. data/spec/dummy/app/models/concerns/.keep +0 -0
  49. data/spec/dummy/app/views/home/index.html.erb +0 -0
  50. data/spec/dummy/app/views/home/index.json.erb +0 -0
  51. data/spec/dummy/app/views/layouts/application.html.erb +0 -0
  52. data/spec/dummy/bin/bundle +0 -0
  53. data/spec/dummy/bin/rails +0 -0
  54. data/spec/dummy/bin/rake +0 -0
  55. data/spec/dummy/bin/setup +0 -0
  56. data/spec/dummy/bin/spring +0 -0
  57. data/spec/dummy/config.ru +0 -0
  58. data/spec/dummy/config/application.rb +0 -0
  59. data/spec/dummy/config/boot.rb +0 -0
  60. data/spec/dummy/config/database.yml +0 -0
  61. data/spec/dummy/config/environment.rb +0 -0
  62. data/spec/dummy/config/environments/development.rb +0 -0
  63. data/spec/dummy/config/environments/production.rb +0 -0
  64. data/spec/dummy/config/environments/test.rb +42 -0
  65. data/spec/dummy/config/initializers/assets.rb +0 -0
  66. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
  67. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -0
  68. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  69. data/spec/dummy/config/initializers/inflections.rb +0 -0
  70. data/spec/dummy/config/initializers/mime_types.rb +0 -0
  71. data/spec/dummy/config/initializers/session_store.rb +0 -0
  72. data/spec/dummy/config/initializers/to_time_preserves_timezone.rb +0 -0
  73. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -0
  74. data/spec/dummy/config/locales/en.yml +0 -0
  75. data/spec/dummy/config/routes.rb +0 -0
  76. data/spec/dummy/config/secrets.yml +0 -0
  77. data/spec/dummy/db/seeds.rb +0 -0
  78. data/spec/dummy/lib/assets/.keep +0 -0
  79. data/spec/dummy/lib/tasks/.keep +0 -0
  80. data/spec/dummy/public/404.html +0 -0
  81. data/spec/dummy/public/422.html +0 -0
  82. data/spec/dummy/public/500.html +0 -0
  83. data/spec/dummy/public/favicon.ico +0 -0
  84. data/spec/dummy/public/robots.txt +0 -0
  85. data/spec/dummy/test/controllers/.keep +0 -0
  86. data/spec/dummy/test/fixtures/.keep +0 -0
  87. data/spec/dummy/test/helpers/.keep +0 -0
  88. data/spec/dummy/test/integration/.keep +0 -0
  89. data/spec/dummy/test/mailers/.keep +0 -0
  90. data/spec/dummy/test/models/.keep +0 -0
  91. data/spec/dummy/test/test_helper.rb +10 -0
  92. data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
  93. data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
  94. data/spec/features/javascript_spec.rb +0 -0
  95. data/spec/rails_helper.rb +0 -0
  96. data/spec/raygun/breadcrumbs/breadcrumb_spec.rb +0 -0
  97. data/spec/raygun/breadcrumbs/store_spec.rb +0 -0
  98. data/spec/raygun/raygun_spec.rb +0 -0
  99. data/spec/services/apply_whitelist_filter_to_payload_spec.rb +0 -0
  100. data/spec/spec_helper.rb +0 -0
  101. data/spec/support/fake_logger.rb +0 -0
  102. data/test/integration/client_test.rb +0 -0
  103. data/test/test_helper.rb +0 -0
  104. data/test/unit/affected_user_test.rb +0 -0
  105. data/test/unit/client_test.rb +0 -0
  106. data/test/unit/configuration_test.rb +0 -0
  107. data/test/unit/raygun_test.rb +0 -0
  108. data/test/unit/resque_failure_test.rb +0 -0
  109. data/test/unit/sidekiq_failure_test.rb +0 -0
  110. metadata +18 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f7f89265a480906faf2353b4f6e0ad1207b957a762d9ded90c3dce1cf6de308
4
- data.tar.gz: d55e52bdce42f91f1bc6aea0d907cef723f066986020a9e02083a07068e1cae3
3
+ metadata.gz: d7da7150c7f6daa57b654ad8d49ea2ca5c6478c698290ab01a2f67da25cae4c7
4
+ data.tar.gz: f927bdd145a778e3d7d1a9bba69f0d4d0d968c15efb8fa1dd59c471cc27c049b
5
5
  SHA512:
6
- metadata.gz: 96e29176ec12a4a293ae82caf7540aff4da236163c4f8f8ae05875940d25682e3a0dc6c53c14b69851a9565f2d2d483fc07b789e206f0c51a85be94dcf2f8d26
7
- data.tar.gz: 3fbab1145ac50d07e6bb470b6b8db559aff108a963c43535b3c63b84168e4f60f7d61ea35b4f502d955bdc43e004f8379cc8858a96a5aa3ff38611cca57605a4
6
+ metadata.gz: 7f0fc5811b54b6b303f09f2f7b0abd0f7ce5a3915091cbef9ab03fe97d1e77ce223ac0870cec51f7bda117601f03ae07c7af2e932043e1bfb31390380a5a52ea
7
+ data.tar.gz: f8f390e05a2f6dc7f3b81c842eaa0b05628b3721ef49a2bb8362506a742a709a49700e6a1a5c4e71465d5808336b02f8f84ffd4a7bbf0e26c9a29ff5617863d0
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
data/.travis.yml CHANGED
File without changes
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.2.6 (17/03/2021):
2
+ - Bug fix: Rename Testable class to DemoException to ensure it is added to the bundle ([#166](https://github.com/MindscapeHQ/raygun4ruby/pull/166))
3
+
1
4
  ## 3.2.5 (15/03/2021):
2
5
  - Bug fix: Ensure tags passed into track_exception are not persisted ([#164](https://github.com/MindscapeHQ/raygun4ruby/pull/164))
3
6
 
data/Gemfile CHANGED
File without changes
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
data/lib/raygun.rb CHANGED
@@ -13,7 +13,7 @@ require "raygun/javascript_tracker"
13
13
  require "raygun/middleware/rack_exception_interceptor"
14
14
  require "raygun/middleware/breadcrumbs_store_initializer"
15
15
  require "raygun/middleware/javascript_exception_tracking"
16
- require "raygun/testable"
16
+ require "raygun/demo_exception"
17
17
  require "raygun/error"
18
18
  require "raygun/affected_user"
19
19
  require "raygun/services/apply_whitelist_filter_to_payload"
@@ -29,7 +29,7 @@ module Raygun
29
29
  CLIENT_NAME = "Raygun4Ruby Gem"
30
30
 
31
31
  class << self
32
- include Testable
32
+ include DemoException
33
33
 
34
34
  # Configuration Object (instance of Raygun::Configuration)
35
35
  attr_writer :configuration
File without changes
File without changes
File without changes
File without changes
data/lib/raygun/client.rb CHANGED
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ module Raygun
2
+
3
+ class ItWorksException < StandardError; end
4
+
5
+ module DemoException
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
data/lib/raygun/error.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Raygun
2
- VERSION = "3.2.5.pre"
2
+ VERSION = "3.2.6"
3
3
  end
data/lib/raygun4ruby.rb CHANGED
File without changes
File without changes
File without changes
data/raygun4ruby.gemspec CHANGED
File without changes
File without changes
data/spec/dummy/Gemfile CHANGED
File without changes
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
File without changes
File without changes
File without changes
File without changes
File without changes
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
File without changes
data/spec/dummy/config.ru CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,42 @@
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
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
File without changes
File without changes
@@ -0,0 +1,10 @@
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
File without changes
File without changes
File without changes
data/spec/rails_helper.rb CHANGED
File without changes
File without changes
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
File without changes
File without changes
data/test/test_helper.rb CHANGED
File without changes
File without changes
File without changes
File without changes
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.5.pre
4
+ version: 3.2.6
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-03-16 00:00:00.000000000 Z
12
+ date: 2021-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -321,6 +321,7 @@ files:
321
321
  - lib/raygun/breadcrumbs/store.rb
322
322
  - lib/raygun/client.rb
323
323
  - lib/raygun/configuration.rb
324
+ - lib/raygun/demo_exception.rb
324
325
  - lib/raygun/error.rb
325
326
  - lib/raygun/javascript_tracker.rb
326
327
  - lib/raygun/middleware/breadcrumbs_store_initializer.rb
@@ -365,6 +366,7 @@ files:
365
366
  - spec/dummy/config/environment.rb
366
367
  - spec/dummy/config/environments/development.rb
367
368
  - spec/dummy/config/environments/production.rb
369
+ - spec/dummy/config/environments/test.rb
368
370
  - spec/dummy/config/initializers/assets.rb
369
371
  - spec/dummy/config/initializers/backtrace_silencers.rb
370
372
  - spec/dummy/config/initializers/cookies_serializer.rb
@@ -378,6 +380,7 @@ files:
378
380
  - spec/dummy/config/routes.rb
379
381
  - spec/dummy/config/secrets.yml
380
382
  - spec/dummy/db/seeds.rb
383
+ - spec/dummy/db/test.sqlite3
381
384
  - spec/dummy/lib/assets/.keep
382
385
  - spec/dummy/lib/tasks/.keep
383
386
  - spec/dummy/log/.keep
@@ -386,6 +389,13 @@ files:
386
389
  - spec/dummy/public/500.html
387
390
  - spec/dummy/public/favicon.ico
388
391
  - 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
389
399
  - spec/dummy/vendor/assets/javascripts/.keep
390
400
  - spec/dummy/vendor/assets/stylesheets/.keep
391
401
  - spec/features/javascript_spec.rb
@@ -408,7 +418,7 @@ homepage: https://raygun.com
408
418
  licenses:
409
419
  - MIT
410
420
  metadata: {}
411
- post_install_message:
421
+ post_install_message:
412
422
  rdoc_options: []
413
423
  require_paths:
414
424
  - lib
@@ -419,12 +429,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
419
429
  version: '2.0'
420
430
  required_rubygems_version: !ruby/object:Gem::Requirement
421
431
  requirements:
422
- - - ">"
432
+ - - ">="
423
433
  - !ruby/object:Gem::Version
424
- version: 1.3.1
434
+ version: '0'
425
435
  requirements: []
426
- rubygems_version: 3.1.4
427
- signing_key:
436
+ rubygems_version: 3.1.2
437
+ signing_key:
428
438
  specification_version: 4
429
439
  summary: This gem provides support for Ruby and Ruby on Rails for the Raygun error
430
440
  reporter