raygun4ruby 3.2.1 → 3.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +0 -0
  3. data/.rspec +0 -0
  4. data/.travis.yml +6 -0
  5. data/CHANGELOG.md +3 -0
  6. data/Gemfile +0 -0
  7. data/LICENSE.txt +0 -0
  8. data/README.md +1 -1
  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 +0 -0
  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 +2 -0
  18. data/lib/raygun/configuration.rb +0 -0
  19. data/lib/raygun/error.rb +0 -0
  20. data/lib/raygun/javascript_tracker.rb +0 -0
  21. data/lib/raygun/middleware/breadcrumbs_store_initializer.rb +0 -0
  22. data/lib/raygun/middleware/javascript_exception_tracking.rb +0 -0
  23. data/lib/raygun/middleware/rack_exception_interceptor.rb +0 -0
  24. data/lib/raygun/middleware/rails_insert_affected_user.rb +0 -0
  25. data/lib/raygun/railtie.rb +0 -0
  26. data/lib/raygun/services/apply_whitelist_filter_to_payload.rb +0 -0
  27. data/lib/raygun/sidekiq.rb +3 -0
  28. data/lib/raygun/testable.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 +2 -2
  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 +3 -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/config.ru +0 -0
  53. data/spec/dummy/config/application.rb +0 -0
  54. data/spec/dummy/config/boot.rb +0 -0
  55. data/spec/dummy/config/database.yml +0 -0
  56. data/spec/dummy/config/environment.rb +0 -0
  57. data/spec/dummy/config/environments/development.rb +0 -0
  58. data/spec/dummy/config/environments/production.rb +0 -0
  59. data/spec/dummy/config/environments/test.rb +0 -0
  60. data/spec/dummy/config/initializers/assets.rb +0 -0
  61. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
  62. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -0
  63. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  64. data/spec/dummy/config/initializers/inflections.rb +0 -0
  65. data/spec/dummy/config/initializers/mime_types.rb +0 -0
  66. data/spec/dummy/config/initializers/session_store.rb +0 -0
  67. data/spec/dummy/config/initializers/to_time_preserves_timezone.rb +0 -0
  68. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -0
  69. data/spec/dummy/config/locales/en.yml +0 -0
  70. data/spec/dummy/config/routes.rb +0 -0
  71. data/spec/dummy/config/secrets.yml +0 -0
  72. data/spec/dummy/db/seeds.rb +0 -0
  73. data/spec/dummy/lib/assets/.keep +0 -0
  74. data/spec/dummy/lib/tasks/.keep +0 -0
  75. data/spec/dummy/public/404.html +0 -0
  76. data/spec/dummy/public/422.html +0 -0
  77. data/spec/dummy/public/500.html +0 -0
  78. data/spec/dummy/public/favicon.ico +0 -0
  79. data/spec/dummy/public/robots.txt +0 -0
  80. data/spec/dummy/test/controllers/.keep +0 -0
  81. data/spec/dummy/test/fixtures/.keep +0 -0
  82. data/spec/dummy/test/helpers/.keep +0 -0
  83. data/spec/dummy/test/integration/.keep +0 -0
  84. data/spec/dummy/test/mailers/.keep +0 -0
  85. data/spec/dummy/test/models/.keep +0 -0
  86. data/spec/dummy/test/test_helper.rb +0 -0
  87. data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
  88. data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
  89. data/spec/features/javascript_spec.rb +0 -0
  90. data/spec/rails_helper.rb +0 -0
  91. data/spec/raygun/breadcrumbs/breadcrumb_spec.rb +0 -0
  92. data/spec/raygun/breadcrumbs/store_spec.rb +0 -0
  93. data/spec/raygun/raygun_spec.rb +0 -0
  94. data/spec/services/apply_whitelist_filter_to_payload_spec.rb +0 -0
  95. data/spec/spec_helper.rb +0 -0
  96. data/spec/support/fake_logger.rb +0 -0
  97. data/test/integration/client_test.rb +0 -0
  98. data/test/test_helper.rb +1 -1
  99. data/test/unit/affected_user_test.rb +0 -0
  100. data/test/unit/client_test.rb +3 -1
  101. data/test/unit/configuration_test.rb +0 -0
  102. data/test/unit/raygun_test.rb +0 -0
  103. data/test/unit/resque_failure_test.rb +0 -0
  104. data/test/unit/sidekiq_failure_test.rb +0 -0
  105. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1c19a73f7454672b2cb814548a49703460f12fc2
4
- data.tar.gz: 2b9e1b70912fbf7fe1287d48e2b881e2aaaded0c
2
+ SHA256:
3
+ metadata.gz: 03f1be499b87a7e21e94ffb59e414dad9681adcbf13b58a2fcc66e29c939f43d
4
+ data.tar.gz: 24885acd5b4076e37c9778114547302f2997bb993d1d353aa3880c0964f497b8
5
5
  SHA512:
6
- metadata.gz: d67524d7e34b399c2033cb57c1995df80735c321857dac77a800d9ffa2139b6c95a78061a9bd431f9860bd2d4e268c3d3b1cbdc4e342f5425adae5da9c98965d
7
- data.tar.gz: 75b26f8c4cd398699a6a557c21c12540c36780fc791a6c46214c22acbac48b7bb2e2237a84582b0819044f96b19abc0735ea1e9da3ff831824633225103fc2a9
6
+ metadata.gz: 60d5e19831a25963ae99355c235e7e184c916db16cf5cec1d93bdf4ca86cf899bf78c406cf4598fc89c08bb11145f420e3eced31c1d0db7875fedd194c0de61b
7
+ data.tar.gz: de64cda810b1d3b9c625606933e4f437a1285b0bb47d5033c24876a4f3605844a2a40d5fe89a4b084e6c4468230d3eaa74b7913deab5f61158c769940e998585
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
@@ -1,3 +1,9 @@
1
+ language: ruby
2
+
3
+ before_install:
4
+ - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
5
+ - gem install bundler -v '< 2'
6
+
1
7
  script:
2
8
  - bundle exec rake
3
9
 
@@ -1,3 +1,6 @@
1
+ ## 3.2.2 (10/06/2020):
2
+ - Introduce support for Raygun APM exceptions correlation ([#154](https://github.com/MindscapeHQ/raygun4ruby/pull/154))
3
+
1
4
  ## 3.2.1 (25/02/2019):
2
5
  Bugfix:
3
6
  - Remove Ruby 2.3 syntax to retain support for Ruby >= 2.0 ([#148](https://github.com/MindscapeHQ/raygun4ruby/pull/148))
data/Gemfile CHANGED
File without changes
File without changes
data/README.md CHANGED
@@ -182,7 +182,7 @@ Raygun.setup do |config|
182
182
  config.api_key = "YOUR_RAYGUN_API_KEY"
183
183
  config.filter_payload_with_whitelist = true
184
184
 
185
- config.whitelist_payload_keys do |payload|
185
+ config.whitelist_payload_shape do |payload|
186
186
  # Return the payload mutated into your desired form
187
187
  payload
188
188
  end
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -192,6 +192,7 @@ module Raygun
192
192
  Raygun.log('set tags')
193
193
 
194
194
  grouping_key = env.delete(:grouping_key)
195
+ correlation_id = env.delete(:correlation_id)
195
196
 
196
197
  configuration_custom_data = Raygun.configuration.custom_data
197
198
  configured_custom_data = if configuration_custom_data.is_a?(Proc)
@@ -220,6 +221,7 @@ module Raygun
220
221
  Raygun.log('set details and breadcrumbs')
221
222
 
222
223
  error_details.merge!(groupingKey: grouping_key) if grouping_key
224
+ error_details.merge!(correlationId: correlation_id) if correlation_id
223
225
 
224
226
  user_details = if affected_user_present?(env)
225
227
  user_information(env)
File without changes
File without changes
File without changes
File without changes
@@ -25,6 +25,9 @@ module Raygun
25
25
  sidekiq_context: context_hash
26
26
  }
27
27
  }
28
+ if correlation_id = exception.instance_variable_get(:@__raygun_correlation_id)
29
+ data.merge!(correlation_id: correlation_id)
30
+ end
28
31
  ::Raygun.track_exception(
29
32
  exception,
30
33
  data,
File without changes
@@ -1,3 +1,3 @@
1
1
  module Raygun
2
- VERSION = "3.2.1"
2
+ VERSION = "3.2.3"
3
3
  end
File without changes
File without changes
File without changes
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_runtime_dependency "concurrent-ruby"
27
27
 
28
28
  spec.add_development_dependency "bundler", ">= 1.1"
29
- spec.add_development_dependency "rake", "~> 11"
29
+ spec.add_development_dependency "rake", ">= 12.3.3"
30
30
  spec.add_development_dependency "timecop"
31
31
  spec.add_development_dependency "minitest", "~> 5.11"
32
32
  spec.add_development_dependency "redis-namespace", ">= 1.3.1"
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency 'rails', "= 4.2.11"
40
40
  spec.add_development_dependency 'sqlite3', '~> 1.3.6'
41
41
  spec.add_development_dependency 'capybara'
42
- spec.add_development_dependency "rspec-rails"
42
+ spec.add_development_dependency "rspec-rails", '~> 3.9'
43
43
  spec.add_development_dependency "launchy"
44
44
  spec.add_development_dependency "simplecov"
45
45
  end
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../javascripts .js
3
+ //= link_directory ../stylesheets .css
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
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
@@ -3,7 +3,7 @@ require_relative "../lib/raygun.rb"
3
3
  require "minitest/autorun"
4
4
  require "minitest/pride"
5
5
  require "timecop"
6
- require "mocha/mini_test"
6
+ require "mocha/minitest"
7
7
  require 'stringio'
8
8
  require 'webmock/minitest'
9
9
 
File without changes
@@ -198,6 +198,7 @@ class ClientTest < Raygun::UnitTest
198
198
  Timecop.freeze do
199
199
  Raygun.configuration.version = 123
200
200
  grouping_key = "my custom group"
201
+ correlation_id = "my correlation id"
201
202
 
202
203
  expected_hash = {
203
204
  occurredOn: Time.now.utc.iso8601,
@@ -214,13 +215,14 @@ class ClientTest < Raygun::UnitTest
214
215
  tags: ["test"],
215
216
  request: {},
216
217
  groupingKey: grouping_key,
218
+ correlationId: correlation_id,
217
219
  environment: {
218
220
  utcOffset: 13
219
221
  }
220
222
  }
221
223
  }
222
224
 
223
- assert_equal expected_hash, @client.send(:build_payload_hash, test_exception, { grouping_key: grouping_key })
225
+ assert_equal expected_hash, @client.send(:build_payload_hash, test_exception, { grouping_key: grouping_key, correlation_id: correlation_id })
224
226
  end
225
227
  end
226
228
 
File without changes
File without changes
File without changes
File without changes
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.1
4
+ version: 3.2.3
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: 2019-02-24 00:00:00.000000000 Z
12
+ date: 2020-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -85,16 +85,16 @@ dependencies:
85
85
  name: rake
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "~>"
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: '11'
90
+ version: 12.3.3
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: '11'
97
+ version: 12.3.3
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: timecop
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -259,16 +259,16 @@ dependencies:
259
259
  name: rspec-rails
260
260
  requirement: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - ">="
262
+ - - "~>"
263
263
  - !ruby/object:Gem::Version
264
- version: '0'
264
+ version: '3.9'
265
265
  type: :development
266
266
  prerelease: false
267
267
  version_requirements: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - ">="
269
+ - - "~>"
270
270
  - !ruby/object:Gem::Version
271
- version: '0'
271
+ version: '3.9'
272
272
  - !ruby/object:Gem::Dependency
273
273
  name: launchy
274
274
  requirement: !ruby/object:Gem::Requirement
@@ -340,6 +340,7 @@ files:
340
340
  - spec/dummy/Gemfile
341
341
  - spec/dummy/README.rdoc
342
342
  - spec/dummy/Rakefile
343
+ - spec/dummy/app/assets/config/manifest.js
343
344
  - spec/dummy/app/assets/images/.keep
344
345
  - spec/dummy/app/assets/javascripts/application.js
345
346
  - spec/dummy/app/assets/stylesheets/application.css
@@ -432,8 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
432
433
  - !ruby/object:Gem::Version
433
434
  version: '0'
434
435
  requirements: []
435
- rubyforge_project:
436
- rubygems_version: 2.6.8
436
+ rubygems_version: 3.0.3
437
437
  signing_key:
438
438
  specification_version: 4
439
439
  summary: This gem provides support for Ruby and Ruby on Rails for the Raygun.io error