sentry-raven 3.0.1 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/.craft.yml +2 -1
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  4. data/.github/pull_request_template.md +16 -0
  5. data/.github/workflows/test.yml +41 -26
  6. data/.github/workflows/zeus_upload.yml +32 -0
  7. data/.gitignore +1 -0
  8. data/.rubocop.yml +6 -3
  9. data/{changelog.md → CHANGELOG.md} +157 -7
  10. data/CONTRIBUTING.md +71 -0
  11. data/Gemfile +5 -2
  12. data/README.md +29 -14
  13. data/lib/raven/backtrace.rb +2 -0
  14. data/lib/raven/base.rb +2 -0
  15. data/lib/raven/breadcrumbs/active_support_logger.rb +25 -0
  16. data/lib/raven/breadcrumbs/logger.rb +2 -92
  17. data/lib/raven/breadcrumbs/sentry_logger.rb +73 -0
  18. data/lib/raven/cli.rb +8 -19
  19. data/lib/raven/client.rb +1 -1
  20. data/lib/raven/configuration.rb +81 -5
  21. data/lib/raven/context.rb +13 -8
  22. data/lib/raven/core_ext/object/deep_dup.rb +57 -0
  23. data/lib/raven/core_ext/object/duplicable.rb +153 -0
  24. data/lib/raven/event.rb +23 -13
  25. data/lib/raven/helpers/deprecation_helper.rb +17 -0
  26. data/lib/raven/instance.rb +10 -1
  27. data/lib/raven/integrations/delayed_job.rb +2 -1
  28. data/lib/raven/integrations/rack-timeout.rb +5 -1
  29. data/lib/raven/integrations/rack.rb +15 -2
  30. data/lib/raven/integrations/rails.rb +12 -3
  31. data/lib/raven/integrations/rails/active_job.rb +2 -1
  32. data/lib/raven/integrations/rails/backtrace_cleaner.rb +29 -0
  33. data/lib/raven/integrations/sidekiq.rb +4 -78
  34. data/lib/raven/integrations/sidekiq/cleanup_middleware.rb +13 -0
  35. data/lib/raven/integrations/sidekiq/error_handler.rb +38 -0
  36. data/lib/raven/processor/cookies.rb +1 -1
  37. data/lib/raven/processor/removecircularreferences.rb +2 -1
  38. data/lib/raven/transports/http.rb +0 -2
  39. data/lib/raven/utils/context_filter.rb +42 -0
  40. data/lib/raven/version.rb +1 -1
  41. data/lib/sentry-raven-without-integrations.rb +6 -1
  42. data/lib/sentry_raven_without_integrations.rb +1 -0
  43. data/sentry-ruby/.gitignore +11 -0
  44. data/sentry-ruby/.rspec +3 -0
  45. data/sentry-ruby/.travis.yml +6 -0
  46. data/sentry-ruby/CODE_OF_CONDUCT.md +74 -0
  47. data/sentry-ruby/Gemfile +9 -0
  48. data/sentry-ruby/LICENSE.txt +21 -0
  49. data/sentry-ruby/README.md +44 -0
  50. data/sentry-ruby/Rakefile +6 -0
  51. data/sentry-ruby/bin/console +14 -0
  52. data/sentry-ruby/bin/setup +8 -0
  53. data/sentry-ruby/examples/rails-6.0/.browserslistrc +1 -0
  54. data/sentry-ruby/examples/rails-6.0/.gitignore +35 -0
  55. data/sentry-ruby/examples/rails-6.0/Gemfile +58 -0
  56. data/sentry-ruby/examples/rails-6.0/README.md +23 -0
  57. data/sentry-ruby/examples/rails-6.0/Rakefile +6 -0
  58. data/sentry-ruby/examples/rails-6.0/app/assets/config/manifest.js +2 -0
  59. data/sentry-ruby/examples/rails-6.0/app/assets/images/.keep +0 -0
  60. data/sentry-ruby/examples/rails-6.0/app/assets/stylesheets/application.css +15 -0
  61. data/sentry-ruby/examples/rails-6.0/app/channels/application_cable/channel.rb +4 -0
  62. data/sentry-ruby/examples/rails-6.0/app/channels/application_cable/connection.rb +4 -0
  63. data/sentry-ruby/examples/rails-6.0/app/controllers/application_controller.rb +2 -0
  64. data/sentry-ruby/examples/rails-6.0/app/controllers/concerns/.keep +0 -0
  65. data/sentry-ruby/examples/rails-6.0/app/controllers/welcome_controller.rb +23 -0
  66. data/sentry-ruby/examples/rails-6.0/app/helpers/application_helper.rb +2 -0
  67. data/sentry-ruby/examples/rails-6.0/app/javascript/channels/consumer.js +6 -0
  68. data/sentry-ruby/examples/rails-6.0/app/javascript/channels/index.js +5 -0
  69. data/sentry-ruby/examples/rails-6.0/app/javascript/packs/application.js +17 -0
  70. data/sentry-ruby/examples/rails-6.0/app/jobs/application_job.rb +7 -0
  71. data/sentry-ruby/examples/rails-6.0/app/mailers/application_mailer.rb +4 -0
  72. data/sentry-ruby/examples/rails-6.0/app/models/application_record.rb +3 -0
  73. data/sentry-ruby/examples/rails-6.0/app/models/concerns/.keep +0 -0
  74. data/sentry-ruby/examples/rails-6.0/app/views/layouts/application.html.erb +15 -0
  75. data/sentry-ruby/examples/rails-6.0/app/views/layouts/mailer.html.erb +13 -0
  76. data/sentry-ruby/examples/rails-6.0/app/views/layouts/mailer.text.erb +1 -0
  77. data/sentry-ruby/examples/rails-6.0/app/views/welcome/report_demo.html.erb +22 -0
  78. data/sentry-ruby/examples/rails-6.0/app/views/welcome/view_error.html.erb +1 -0
  79. data/sentry-ruby/examples/rails-6.0/app/workers/error_worker.rb +7 -0
  80. data/sentry-ruby/examples/rails-6.0/babel.config.js +72 -0
  81. data/sentry-ruby/examples/rails-6.0/bin/bundle +114 -0
  82. data/sentry-ruby/examples/rails-6.0/bin/rails +9 -0
  83. data/sentry-ruby/examples/rails-6.0/bin/rake +9 -0
  84. data/sentry-ruby/examples/rails-6.0/bin/setup +36 -0
  85. data/sentry-ruby/examples/rails-6.0/bin/spring +17 -0
  86. data/sentry-ruby/examples/rails-6.0/bin/webpack +18 -0
  87. data/sentry-ruby/examples/rails-6.0/bin/webpack-dev-server +18 -0
  88. data/sentry-ruby/examples/rails-6.0/bin/yarn +11 -0
  89. data/sentry-ruby/examples/rails-6.0/config.ru +5 -0
  90. data/sentry-ruby/examples/rails-6.0/config/application.rb +28 -0
  91. data/sentry-ruby/examples/rails-6.0/config/boot.rb +4 -0
  92. data/sentry-ruby/examples/rails-6.0/config/cable.yml +10 -0
  93. data/sentry-ruby/examples/rails-6.0/config/credentials.yml.enc +1 -0
  94. data/sentry-ruby/examples/rails-6.0/config/database.yml +25 -0
  95. data/sentry-ruby/examples/rails-6.0/config/environment.rb +5 -0
  96. data/sentry-ruby/examples/rails-6.0/config/environments/development.rb +62 -0
  97. data/sentry-ruby/examples/rails-6.0/config/environments/production.rb +112 -0
  98. data/sentry-ruby/examples/rails-6.0/config/environments/test.rb +48 -0
  99. data/sentry-ruby/examples/rails-6.0/config/initializers/application_controller_renderer.rb +8 -0
  100. data/sentry-ruby/examples/rails-6.0/config/initializers/assets.rb +14 -0
  101. data/sentry-ruby/examples/rails-6.0/config/initializers/backtrace_silencers.rb +7 -0
  102. data/sentry-ruby/examples/rails-6.0/config/initializers/content_security_policy.rb +30 -0
  103. data/sentry-ruby/examples/rails-6.0/config/initializers/cookies_serializer.rb +5 -0
  104. data/sentry-ruby/examples/rails-6.0/config/initializers/filter_parameter_logging.rb +4 -0
  105. data/sentry-ruby/examples/rails-6.0/config/initializers/inflections.rb +16 -0
  106. data/sentry-ruby/examples/rails-6.0/config/initializers/mime_types.rb +4 -0
  107. data/sentry-ruby/examples/rails-6.0/config/initializers/wrap_parameters.rb +14 -0
  108. data/sentry-ruby/examples/rails-6.0/config/locales/en.yml +33 -0
  109. data/sentry-ruby/examples/rails-6.0/config/puma.rb +38 -0
  110. data/sentry-ruby/examples/rails-6.0/config/routes.rb +10 -0
  111. data/sentry-ruby/examples/rails-6.0/config/spring.rb +6 -0
  112. data/sentry-ruby/examples/rails-6.0/config/storage.yml +34 -0
  113. data/sentry-ruby/examples/rails-6.0/config/webpack/development.js +5 -0
  114. data/sentry-ruby/examples/rails-6.0/config/webpack/environment.js +3 -0
  115. data/sentry-ruby/examples/rails-6.0/config/webpack/production.js +5 -0
  116. data/sentry-ruby/examples/rails-6.0/config/webpack/test.js +5 -0
  117. data/sentry-ruby/examples/rails-6.0/config/webpacker.yml +96 -0
  118. data/sentry-ruby/examples/rails-6.0/db/seeds.rb +7 -0
  119. data/sentry-ruby/examples/rails-6.0/lib/assets/.keep +0 -0
  120. data/sentry-ruby/examples/rails-6.0/lib/tasks/.keep +0 -0
  121. data/sentry-ruby/examples/rails-6.0/package.json +15 -0
  122. data/sentry-ruby/examples/rails-6.0/postcss.config.js +12 -0
  123. data/sentry-ruby/examples/rails-6.0/public/404.html +67 -0
  124. data/sentry-ruby/examples/rails-6.0/public/422.html +67 -0
  125. data/sentry-ruby/examples/rails-6.0/public/500.html +66 -0
  126. data/sentry-ruby/examples/rails-6.0/public/apple-touch-icon-precomposed.png +0 -0
  127. data/sentry-ruby/examples/rails-6.0/public/apple-touch-icon.png +0 -0
  128. data/sentry-ruby/examples/rails-6.0/public/favicon.ico +0 -0
  129. data/sentry-ruby/examples/rails-6.0/public/robots.txt +1 -0
  130. data/sentry-ruby/examples/rails-6.0/storage/.keep +0 -0
  131. data/sentry-ruby/examples/rails-6.0/test/application_system_test_case.rb +5 -0
  132. data/sentry-ruby/examples/rails-6.0/test/channels/application_cable/connection_test.rb +11 -0
  133. data/sentry-ruby/examples/rails-6.0/test/controllers/.keep +0 -0
  134. data/sentry-ruby/examples/rails-6.0/test/fixtures/.keep +0 -0
  135. data/sentry-ruby/examples/rails-6.0/test/fixtures/files/.keep +0 -0
  136. data/sentry-ruby/examples/rails-6.0/test/helpers/.keep +0 -0
  137. data/sentry-ruby/examples/rails-6.0/test/integration/.keep +0 -0
  138. data/sentry-ruby/examples/rails-6.0/test/mailers/.keep +0 -0
  139. data/sentry-ruby/examples/rails-6.0/test/models/.keep +0 -0
  140. data/sentry-ruby/examples/rails-6.0/test/system/.keep +0 -0
  141. data/sentry-ruby/examples/rails-6.0/test/test_helper.rb +13 -0
  142. data/sentry-ruby/examples/rails-6.0/vendor/.keep +0 -0
  143. data/sentry-ruby/examples/rails-6.0/yarn.lock +7508 -0
  144. data/sentry-ruby/lib/sentry.rb +16 -0
  145. data/sentry-ruby/lib/sentry/backtrace.rb +128 -0
  146. data/sentry-ruby/lib/sentry/client.rb +162 -0
  147. data/sentry-ruby/lib/sentry/client/state.rb +40 -0
  148. data/sentry-ruby/lib/sentry/configuration.rb +533 -0
  149. data/sentry-ruby/lib/sentry/event.rb +209 -0
  150. data/sentry-ruby/lib/sentry/interface.rb +31 -0
  151. data/sentry-ruby/lib/sentry/interfaces/exception.rb +15 -0
  152. data/sentry-ruby/lib/sentry/interfaces/http.rb +16 -0
  153. data/sentry-ruby/lib/sentry/interfaces/message.rb +18 -0
  154. data/sentry-ruby/lib/sentry/interfaces/single_exception.rb +14 -0
  155. data/sentry-ruby/lib/sentry/interfaces/stack_trace.rb +69 -0
  156. data/sentry-ruby/lib/sentry/linecache.rb +44 -0
  157. data/sentry-ruby/lib/sentry/logger.rb +20 -0
  158. data/sentry-ruby/lib/sentry/transports.rb +19 -0
  159. data/sentry-ruby/lib/sentry/transports/dummy.rb +16 -0
  160. data/sentry-ruby/lib/sentry/transports/http.rb +66 -0
  161. data/sentry-ruby/lib/sentry/transports/stdout.rb +20 -0
  162. data/sentry-ruby/lib/sentry/utils/deep_merge.rb +22 -0
  163. data/sentry-ruby/lib/sentry/utils/exception_cause_chain.rb +20 -0
  164. data/sentry-ruby/lib/sentry/version.rb +3 -0
  165. data/sentry-ruby/sentry-ruby.gemspec +26 -0
  166. data/sentry-ruby/spec/sentry/backtrace_spec.rb +38 -0
  167. data/sentry-ruby/spec/sentry/client_spec.rb +443 -0
  168. data/sentry-ruby/spec/sentry/configuration_spec.rb +400 -0
  169. data/sentry-ruby/spec/sentry/event_spec.rb +238 -0
  170. data/sentry-ruby/spec/sentry/interface_spec.rb +38 -0
  171. data/sentry-ruby/spec/sentry/interfaces/stack_trace_spec.rb +11 -0
  172. data/sentry-ruby/spec/sentry/linecache_spec.rb +40 -0
  173. data/sentry-ruby/spec/sentry/transports/http_spec.rb +57 -0
  174. data/sentry-ruby/spec/sentry/transports/stdout_spec.rb +11 -0
  175. data/sentry-ruby/spec/sentry_spec.rb +9 -0
  176. data/sentry-ruby/spec/spec_helper.rb +49 -0
  177. data/sentry-ruby/spec/support/linecache.txt +6 -0
  178. metadata +152 -4
  179. data/lib/raven/breadcrumbs/activesupport.rb +0 -19
@@ -0,0 +1,38 @@
1
+ require 'spec_helper'
2
+ require 'sentry/interface'
3
+
4
+ class TestInterface < Sentry::Interface
5
+ attr_accessor :some_attr
6
+ end
7
+
8
+ RSpec.describe Sentry::Interface do
9
+ it "should register an interface when a new class is defined" do
10
+ expect(Sentry::Interface.registered[:test]).to eq(TestInterface)
11
+ end
12
+
13
+ it "can be initialized with some attributes" do
14
+ interface = TestInterface.new(:some_attr => "test")
15
+ expect(interface.some_attr).to eq("test")
16
+ end
17
+
18
+ it "can initialize with a block" do
19
+ interface = TestInterface.new { |int| int.some_attr = "test" }
20
+ expect(interface.some_attr).to eq("test")
21
+ end
22
+
23
+ it "serializes to a Hash" do
24
+ interface = TestInterface.new(:some_attr => "test")
25
+ expect(interface.to_hash).to eq(:some_attr => "test")
26
+ end
27
+ end
28
+
29
+ RSpec.describe Sentry::MessageInterface do
30
+ it "supports invalid format string message when params is not defined" do
31
+ interface = Sentry::MessageInterface.new(:params => nil, :message => "test '%'")
32
+ expect(interface.unformatted_message).to eq("test '%'")
33
+ end
34
+ it "supports invalid format string message when params is empty" do
35
+ interface = Sentry::MessageInterface.new(:message => "test '%'")
36
+ expect(interface.unformatted_message).to eq("test '%'")
37
+ end
38
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Sentry::StacktraceInterface::Frame do
4
+ it "should convert pathnames to strings" do
5
+ frame = Sentry::StacktraceInterface::Frame.new(configuration: Sentry::Configuration.new)
6
+ $LOAD_PATH.unshift Pathname.pwd # Oh no, a Pathname in the $LOAD_PATH!
7
+ frame.abs_path = __FILE__
8
+ expect(frame.filename).to match(/stack_trace_spec.rb/)
9
+ $LOAD_PATH.shift
10
+ end
11
+ end
@@ -0,0 +1,40 @@
1
+ require 'spec_helper'
2
+ # rubocop:disable Style/WordArray
3
+ RSpec.describe Sentry::LineCache do
4
+ describe "#get_file_context" do
5
+ it "returns an array of nils if the path is not valid" do
6
+ expect(subject.get_file_context("/nonexist", 1, 10)).to eq([nil, nil, nil])
7
+ end
8
+
9
+ it "returns a variable size depending on context" do
10
+ expect(subject.get_file_context("spec/support/linecache.txt", 3, 2)).to eq(
11
+ [
12
+ ["foo\n", "bar\n"],
13
+ "baz\n",
14
+ ["qux\n", "lorem\n"]
15
+ ]
16
+ )
17
+ end
18
+
19
+ it "returns nil if line doesnt exist" do
20
+ expect(subject.get_file_context("spec/support/linecache.txt", 1, 2)).to eq(
21
+ [
22
+ [nil, nil],
23
+ "foo\n",
24
+ ["bar\n", "baz\n"]
25
+ ]
26
+ )
27
+ end
28
+
29
+ it "returns a different section of the file based on lineno" do
30
+ expect(subject.get_file_context("./spec/support/linecache.txt", 4, 2)).to eq(
31
+ [
32
+ ["bar\n", "baz\n"],
33
+ "qux\n",
34
+ ["lorem\n", "ipsum\n"]
35
+ ]
36
+ )
37
+ end
38
+ end
39
+ end
40
+ # rubocop:enable Style/WordArray
@@ -0,0 +1,57 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Sentry::Transports::HTTP do
4
+ let(:config) { Sentry::Configuration.new.tap { |c| c.dsn = 'http://12345@sentry.localdomain/sentry/42' } }
5
+ let(:client) { Sentry::Client.new(config) }
6
+
7
+ it 'should set a custom User-Agent' do
8
+ expect(client.send(:transport).conn.headers[:user_agent]).to eq("sentry-ruby/#{Sentry::VERSION}")
9
+ end
10
+
11
+ it 'should raise an error on 4xx responses' do
12
+ stubs = Faraday::Adapter::Test::Stubs.new do |stub|
13
+ stub.post('sentry/api/42/store/') { [404, {}, 'not found'] }
14
+ end
15
+ client.configuration.http_adapter = [:test, stubs]
16
+
17
+ event = JSON.generate(Sentry.capture_message("test").to_hash)
18
+ expect { client.send(:transport).send_event("test", event) }.to raise_error(Sentry::Error, /the server responded with status 404/)
19
+
20
+ stubs.verify_stubbed_calls
21
+ end
22
+
23
+ it 'should raise an error on 5xx responses' do
24
+ stubs = Faraday::Adapter::Test::Stubs.new do |stub|
25
+ stub.post('sentry/api/42/store/') { [500, {}, 'error'] }
26
+ end
27
+ client.configuration.http_adapter = [:test, stubs]
28
+
29
+ event = JSON.generate(Sentry.capture_message("test").to_hash)
30
+ expect { client.send(:transport).send_event("test", event) }.to raise_error(Sentry::Error, /the server responded with status 500/)
31
+
32
+ stubs.verify_stubbed_calls
33
+ end
34
+
35
+ it 'should add header info message to the error' do
36
+ stubs = Faraday::Adapter::Test::Stubs.new do |stub|
37
+ stub.post('sentry/api/42/store/') { [400, { 'x-sentry-error' => 'error_in_header' }, 'error'] }
38
+ end
39
+ client.configuration.http_adapter = [:test, stubs]
40
+
41
+ event = JSON.generate(Sentry.capture_message("test").to_hash)
42
+ expect { client.send(:transport).send_event("test", event) }.to raise_error(Sentry::Error, /error_in_header/)
43
+
44
+ stubs.verify_stubbed_calls
45
+ end
46
+
47
+ it 'allows to customise faraday' do
48
+ builder = spy('faraday_builder')
49
+ expect(Faraday).to receive(:new).and_yield(builder)
50
+
51
+ client.configuration.faraday_builder = proc { |b| b.request :instrumentation }
52
+
53
+ client.send(:transport)
54
+
55
+ expect(builder).to have_received(:request).with(:instrumentation)
56
+ end
57
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Sentry::Transports::Stdout do
4
+ let(:config) { Sentry::Configuration.new.tap { |c| c.dsn = 'stdout://12345:67890@sentry.localdomain/sentry/42' } }
5
+ let(:client) { Sentry::Client.new(config) }
6
+
7
+ it 'should write to stdout' do
8
+ event = JSON.generate(Sentry.capture_message("this is an STDOUT transport test").to_hash)
9
+ expect { client.send(:transport).send_event("stdout test", event) }.to output(/\"message\":\"this is an STDOUT transport test\"/).to_stdout
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ RSpec.describe Sentry do
2
+ it "has a version number" do
3
+ expect(Sentry::VERSION).not_to be nil
4
+ end
5
+
6
+ it "does something useful" do
7
+ expect(false).to eq(true)
8
+ end
9
+ end
@@ -0,0 +1,49 @@
1
+ require "bundler/setup"
2
+ require "pry"
3
+ require "sentry"
4
+
5
+ RSpec.configure do |config|
6
+ # Enable flags like --only-failures and --next-failure
7
+ config.example_status_persistence_file_path = ".rspec_status"
8
+
9
+ # Disable RSpec exposing methods globally on `Module` and `main`
10
+ config.disable_monkey_patching!
11
+
12
+ config.expect_with :rspec do |c|
13
+ c.syntax = :expect
14
+ end
15
+ end
16
+
17
+ def build_exception_with_cause(cause = "exception a")
18
+ begin
19
+ raise cause
20
+ rescue
21
+ raise "exception b"
22
+ end
23
+ rescue RuntimeError => e
24
+ e
25
+ end
26
+
27
+ def build_exception_with_two_causes
28
+ begin
29
+ begin
30
+ raise "exception a"
31
+ rescue
32
+ raise "exception b"
33
+ end
34
+ rescue
35
+ raise "exception c"
36
+ end
37
+ rescue RuntimeError => e
38
+ e
39
+ end
40
+
41
+ def build_exception_with_recursive_cause
42
+ backtrace = []
43
+
44
+ exception = double("Exception")
45
+ allow(exception).to receive(:cause).and_return(exception)
46
+ allow(exception).to receive(:message).and_return("example")
47
+ allow(exception).to receive(:backtrace).and_return(backtrace)
48
+ exception
49
+ end
@@ -0,0 +1,6 @@
1
+ foo
2
+ bar
3
+ baz
4
+ qux
5
+ lorem
6
+ ipsum
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-raven
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-20 00:00:00.000000000 Z
11
+ date: 2020-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -34,35 +34,44 @@ extra_rdoc_files:
34
34
  - LICENSE
35
35
  files:
36
36
  - ".craft.yml"
37
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
38
+ - ".github/pull_request_template.md"
37
39
  - ".github/workflows/test.yml"
40
+ - ".github/workflows/zeus_upload.yml"
38
41
  - ".gitignore"
39
42
  - ".gitmodules"
40
43
  - ".rspec"
41
44
  - ".rubocop.yml"
42
45
  - ".scripts/bump-version.sh"
46
+ - CHANGELOG.md
47
+ - CONTRIBUTING.md
43
48
  - Gemfile
44
49
  - LICENSE
45
50
  - README.md
46
51
  - Rakefile
47
- - changelog.md
48
52
  - exe/raven
49
53
  - lib/raven.rb
50
54
  - lib/raven/backtrace.rb
51
55
  - lib/raven/base.rb
52
56
  - lib/raven/breadcrumbs.rb
53
- - lib/raven/breadcrumbs/activesupport.rb
57
+ - lib/raven/breadcrumbs/active_support_logger.rb
54
58
  - lib/raven/breadcrumbs/logger.rb
59
+ - lib/raven/breadcrumbs/sentry_logger.rb
55
60
  - lib/raven/cli.rb
56
61
  - lib/raven/client.rb
57
62
  - lib/raven/configuration.rb
58
63
  - lib/raven/context.rb
64
+ - lib/raven/core_ext/object/deep_dup.rb
65
+ - lib/raven/core_ext/object/duplicable.rb
59
66
  - lib/raven/event.rb
67
+ - lib/raven/helpers/deprecation_helper.rb
60
68
  - lib/raven/instance.rb
61
69
  - lib/raven/integrations/delayed_job.rb
62
70
  - lib/raven/integrations/rack-timeout.rb
63
71
  - lib/raven/integrations/rack.rb
64
72
  - lib/raven/integrations/rails.rb
65
73
  - lib/raven/integrations/rails/active_job.rb
74
+ - lib/raven/integrations/rails/backtrace_cleaner.rb
66
75
  - lib/raven/integrations/rails/controller_methods.rb
67
76
  - lib/raven/integrations/rails/controller_transaction.rb
68
77
  - lib/raven/integrations/rails/overrides/debug_exceptions_catcher.rb
@@ -70,6 +79,8 @@ files:
70
79
  - lib/raven/integrations/railties.rb
71
80
  - lib/raven/integrations/rake.rb
72
81
  - lib/raven/integrations/sidekiq.rb
82
+ - lib/raven/integrations/sidekiq/cleanup_middleware.rb
83
+ - lib/raven/integrations/sidekiq/error_handler.rb
73
84
  - lib/raven/integrations/tasks.rb
74
85
  - lib/raven/interface.rb
75
86
  - lib/raven/interfaces/exception.rb
@@ -91,13 +102,150 @@ files:
91
102
  - lib/raven/transports/dummy.rb
92
103
  - lib/raven/transports/http.rb
93
104
  - lib/raven/transports/stdout.rb
105
+ - lib/raven/utils/context_filter.rb
94
106
  - lib/raven/utils/deep_merge.rb
95
107
  - lib/raven/utils/exception_cause_chain.rb
96
108
  - lib/raven/utils/real_ip.rb
97
109
  - lib/raven/version.rb
98
110
  - lib/sentry-raven-without-integrations.rb
99
111
  - lib/sentry-raven.rb
112
+ - lib/sentry_raven_without_integrations.rb
100
113
  - sentry-raven.gemspec
114
+ - sentry-ruby/.gitignore
115
+ - sentry-ruby/.rspec
116
+ - sentry-ruby/.travis.yml
117
+ - sentry-ruby/CODE_OF_CONDUCT.md
118
+ - sentry-ruby/Gemfile
119
+ - sentry-ruby/LICENSE.txt
120
+ - sentry-ruby/README.md
121
+ - sentry-ruby/Rakefile
122
+ - sentry-ruby/bin/console
123
+ - sentry-ruby/bin/setup
124
+ - sentry-ruby/examples/rails-6.0/.browserslistrc
125
+ - sentry-ruby/examples/rails-6.0/.gitignore
126
+ - sentry-ruby/examples/rails-6.0/Gemfile
127
+ - sentry-ruby/examples/rails-6.0/README.md
128
+ - sentry-ruby/examples/rails-6.0/Rakefile
129
+ - sentry-ruby/examples/rails-6.0/app/assets/config/manifest.js
130
+ - sentry-ruby/examples/rails-6.0/app/assets/images/.keep
131
+ - sentry-ruby/examples/rails-6.0/app/assets/stylesheets/application.css
132
+ - sentry-ruby/examples/rails-6.0/app/channels/application_cable/channel.rb
133
+ - sentry-ruby/examples/rails-6.0/app/channels/application_cable/connection.rb
134
+ - sentry-ruby/examples/rails-6.0/app/controllers/application_controller.rb
135
+ - sentry-ruby/examples/rails-6.0/app/controllers/concerns/.keep
136
+ - sentry-ruby/examples/rails-6.0/app/controllers/welcome_controller.rb
137
+ - sentry-ruby/examples/rails-6.0/app/helpers/application_helper.rb
138
+ - sentry-ruby/examples/rails-6.0/app/javascript/channels/consumer.js
139
+ - sentry-ruby/examples/rails-6.0/app/javascript/channels/index.js
140
+ - sentry-ruby/examples/rails-6.0/app/javascript/packs/application.js
141
+ - sentry-ruby/examples/rails-6.0/app/jobs/application_job.rb
142
+ - sentry-ruby/examples/rails-6.0/app/mailers/application_mailer.rb
143
+ - sentry-ruby/examples/rails-6.0/app/models/application_record.rb
144
+ - sentry-ruby/examples/rails-6.0/app/models/concerns/.keep
145
+ - sentry-ruby/examples/rails-6.0/app/views/layouts/application.html.erb
146
+ - sentry-ruby/examples/rails-6.0/app/views/layouts/mailer.html.erb
147
+ - sentry-ruby/examples/rails-6.0/app/views/layouts/mailer.text.erb
148
+ - sentry-ruby/examples/rails-6.0/app/views/welcome/report_demo.html.erb
149
+ - sentry-ruby/examples/rails-6.0/app/views/welcome/view_error.html.erb
150
+ - sentry-ruby/examples/rails-6.0/app/workers/error_worker.rb
151
+ - sentry-ruby/examples/rails-6.0/babel.config.js
152
+ - sentry-ruby/examples/rails-6.0/bin/bundle
153
+ - sentry-ruby/examples/rails-6.0/bin/rails
154
+ - sentry-ruby/examples/rails-6.0/bin/rake
155
+ - sentry-ruby/examples/rails-6.0/bin/setup
156
+ - sentry-ruby/examples/rails-6.0/bin/spring
157
+ - sentry-ruby/examples/rails-6.0/bin/webpack
158
+ - sentry-ruby/examples/rails-6.0/bin/webpack-dev-server
159
+ - sentry-ruby/examples/rails-6.0/bin/yarn
160
+ - sentry-ruby/examples/rails-6.0/config.ru
161
+ - sentry-ruby/examples/rails-6.0/config/application.rb
162
+ - sentry-ruby/examples/rails-6.0/config/boot.rb
163
+ - sentry-ruby/examples/rails-6.0/config/cable.yml
164
+ - sentry-ruby/examples/rails-6.0/config/credentials.yml.enc
165
+ - sentry-ruby/examples/rails-6.0/config/database.yml
166
+ - sentry-ruby/examples/rails-6.0/config/environment.rb
167
+ - sentry-ruby/examples/rails-6.0/config/environments/development.rb
168
+ - sentry-ruby/examples/rails-6.0/config/environments/production.rb
169
+ - sentry-ruby/examples/rails-6.0/config/environments/test.rb
170
+ - sentry-ruby/examples/rails-6.0/config/initializers/application_controller_renderer.rb
171
+ - sentry-ruby/examples/rails-6.0/config/initializers/assets.rb
172
+ - sentry-ruby/examples/rails-6.0/config/initializers/backtrace_silencers.rb
173
+ - sentry-ruby/examples/rails-6.0/config/initializers/content_security_policy.rb
174
+ - sentry-ruby/examples/rails-6.0/config/initializers/cookies_serializer.rb
175
+ - sentry-ruby/examples/rails-6.0/config/initializers/filter_parameter_logging.rb
176
+ - sentry-ruby/examples/rails-6.0/config/initializers/inflections.rb
177
+ - sentry-ruby/examples/rails-6.0/config/initializers/mime_types.rb
178
+ - sentry-ruby/examples/rails-6.0/config/initializers/wrap_parameters.rb
179
+ - sentry-ruby/examples/rails-6.0/config/locales/en.yml
180
+ - sentry-ruby/examples/rails-6.0/config/puma.rb
181
+ - sentry-ruby/examples/rails-6.0/config/routes.rb
182
+ - sentry-ruby/examples/rails-6.0/config/spring.rb
183
+ - sentry-ruby/examples/rails-6.0/config/storage.yml
184
+ - sentry-ruby/examples/rails-6.0/config/webpack/development.js
185
+ - sentry-ruby/examples/rails-6.0/config/webpack/environment.js
186
+ - sentry-ruby/examples/rails-6.0/config/webpack/production.js
187
+ - sentry-ruby/examples/rails-6.0/config/webpack/test.js
188
+ - sentry-ruby/examples/rails-6.0/config/webpacker.yml
189
+ - sentry-ruby/examples/rails-6.0/db/seeds.rb
190
+ - sentry-ruby/examples/rails-6.0/lib/assets/.keep
191
+ - sentry-ruby/examples/rails-6.0/lib/tasks/.keep
192
+ - sentry-ruby/examples/rails-6.0/package.json
193
+ - sentry-ruby/examples/rails-6.0/postcss.config.js
194
+ - sentry-ruby/examples/rails-6.0/public/404.html
195
+ - sentry-ruby/examples/rails-6.0/public/422.html
196
+ - sentry-ruby/examples/rails-6.0/public/500.html
197
+ - sentry-ruby/examples/rails-6.0/public/apple-touch-icon-precomposed.png
198
+ - sentry-ruby/examples/rails-6.0/public/apple-touch-icon.png
199
+ - sentry-ruby/examples/rails-6.0/public/favicon.ico
200
+ - sentry-ruby/examples/rails-6.0/public/robots.txt
201
+ - sentry-ruby/examples/rails-6.0/storage/.keep
202
+ - sentry-ruby/examples/rails-6.0/test/application_system_test_case.rb
203
+ - sentry-ruby/examples/rails-6.0/test/channels/application_cable/connection_test.rb
204
+ - sentry-ruby/examples/rails-6.0/test/controllers/.keep
205
+ - sentry-ruby/examples/rails-6.0/test/fixtures/.keep
206
+ - sentry-ruby/examples/rails-6.0/test/fixtures/files/.keep
207
+ - sentry-ruby/examples/rails-6.0/test/helpers/.keep
208
+ - sentry-ruby/examples/rails-6.0/test/integration/.keep
209
+ - sentry-ruby/examples/rails-6.0/test/mailers/.keep
210
+ - sentry-ruby/examples/rails-6.0/test/models/.keep
211
+ - sentry-ruby/examples/rails-6.0/test/system/.keep
212
+ - sentry-ruby/examples/rails-6.0/test/test_helper.rb
213
+ - sentry-ruby/examples/rails-6.0/vendor/.keep
214
+ - sentry-ruby/examples/rails-6.0/yarn.lock
215
+ - sentry-ruby/lib/sentry.rb
216
+ - sentry-ruby/lib/sentry/backtrace.rb
217
+ - sentry-ruby/lib/sentry/client.rb
218
+ - sentry-ruby/lib/sentry/client/state.rb
219
+ - sentry-ruby/lib/sentry/configuration.rb
220
+ - sentry-ruby/lib/sentry/event.rb
221
+ - sentry-ruby/lib/sentry/interface.rb
222
+ - sentry-ruby/lib/sentry/interfaces/exception.rb
223
+ - sentry-ruby/lib/sentry/interfaces/http.rb
224
+ - sentry-ruby/lib/sentry/interfaces/message.rb
225
+ - sentry-ruby/lib/sentry/interfaces/single_exception.rb
226
+ - sentry-ruby/lib/sentry/interfaces/stack_trace.rb
227
+ - sentry-ruby/lib/sentry/linecache.rb
228
+ - sentry-ruby/lib/sentry/logger.rb
229
+ - sentry-ruby/lib/sentry/transports.rb
230
+ - sentry-ruby/lib/sentry/transports/dummy.rb
231
+ - sentry-ruby/lib/sentry/transports/http.rb
232
+ - sentry-ruby/lib/sentry/transports/stdout.rb
233
+ - sentry-ruby/lib/sentry/utils/deep_merge.rb
234
+ - sentry-ruby/lib/sentry/utils/exception_cause_chain.rb
235
+ - sentry-ruby/lib/sentry/version.rb
236
+ - sentry-ruby/sentry-ruby.gemspec
237
+ - sentry-ruby/spec/sentry/backtrace_spec.rb
238
+ - sentry-ruby/spec/sentry/client_spec.rb
239
+ - sentry-ruby/spec/sentry/configuration_spec.rb
240
+ - sentry-ruby/spec/sentry/event_spec.rb
241
+ - sentry-ruby/spec/sentry/interface_spec.rb
242
+ - sentry-ruby/spec/sentry/interfaces/stack_trace_spec.rb
243
+ - sentry-ruby/spec/sentry/linecache_spec.rb
244
+ - sentry-ruby/spec/sentry/transports/http_spec.rb
245
+ - sentry-ruby/spec/sentry/transports/stdout_spec.rb
246
+ - sentry-ruby/spec/sentry_spec.rb
247
+ - sentry-ruby/spec/spec_helper.rb
248
+ - sentry-ruby/spec/support/linecache.txt
101
249
  homepage: https://github.com/getsentry/raven-ruby
102
250
  licenses:
103
251
  - Apache-2.0