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.
- checksums.yaml +4 -4
- data/.craft.yml +2 -1
- data/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- data/.github/pull_request_template.md +16 -0
- data/.github/workflows/test.yml +41 -26
- data/.github/workflows/zeus_upload.yml +32 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +6 -3
- data/{changelog.md → CHANGELOG.md} +157 -7
- data/CONTRIBUTING.md +71 -0
- data/Gemfile +5 -2
- data/README.md +29 -14
- data/lib/raven/backtrace.rb +2 -0
- data/lib/raven/base.rb +2 -0
- data/lib/raven/breadcrumbs/active_support_logger.rb +25 -0
- data/lib/raven/breadcrumbs/logger.rb +2 -92
- data/lib/raven/breadcrumbs/sentry_logger.rb +73 -0
- data/lib/raven/cli.rb +8 -19
- data/lib/raven/client.rb +1 -1
- data/lib/raven/configuration.rb +81 -5
- data/lib/raven/context.rb +13 -8
- data/lib/raven/core_ext/object/deep_dup.rb +57 -0
- data/lib/raven/core_ext/object/duplicable.rb +153 -0
- data/lib/raven/event.rb +23 -13
- data/lib/raven/helpers/deprecation_helper.rb +17 -0
- data/lib/raven/instance.rb +10 -1
- data/lib/raven/integrations/delayed_job.rb +2 -1
- data/lib/raven/integrations/rack-timeout.rb +5 -1
- data/lib/raven/integrations/rack.rb +15 -2
- data/lib/raven/integrations/rails.rb +12 -3
- data/lib/raven/integrations/rails/active_job.rb +2 -1
- data/lib/raven/integrations/rails/backtrace_cleaner.rb +29 -0
- data/lib/raven/integrations/sidekiq.rb +4 -78
- data/lib/raven/integrations/sidekiq/cleanup_middleware.rb +13 -0
- data/lib/raven/integrations/sidekiq/error_handler.rb +38 -0
- data/lib/raven/processor/cookies.rb +1 -1
- data/lib/raven/processor/removecircularreferences.rb +2 -1
- data/lib/raven/transports/http.rb +0 -2
- data/lib/raven/utils/context_filter.rb +42 -0
- data/lib/raven/version.rb +1 -1
- data/lib/sentry-raven-without-integrations.rb +6 -1
- data/lib/sentry_raven_without_integrations.rb +1 -0
- data/sentry-ruby/.gitignore +11 -0
- data/sentry-ruby/.rspec +3 -0
- data/sentry-ruby/.travis.yml +6 -0
- data/sentry-ruby/CODE_OF_CONDUCT.md +74 -0
- data/sentry-ruby/Gemfile +9 -0
- data/sentry-ruby/LICENSE.txt +21 -0
- data/sentry-ruby/README.md +44 -0
- data/sentry-ruby/Rakefile +6 -0
- data/sentry-ruby/bin/console +14 -0
- data/sentry-ruby/bin/setup +8 -0
- data/sentry-ruby/examples/rails-6.0/.browserslistrc +1 -0
- data/sentry-ruby/examples/rails-6.0/.gitignore +35 -0
- data/sentry-ruby/examples/rails-6.0/Gemfile +58 -0
- data/sentry-ruby/examples/rails-6.0/README.md +23 -0
- data/sentry-ruby/examples/rails-6.0/Rakefile +6 -0
- data/sentry-ruby/examples/rails-6.0/app/assets/config/manifest.js +2 -0
- data/sentry-ruby/examples/rails-6.0/app/assets/images/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/app/assets/stylesheets/application.css +15 -0
- data/sentry-ruby/examples/rails-6.0/app/channels/application_cable/channel.rb +4 -0
- data/sentry-ruby/examples/rails-6.0/app/channels/application_cable/connection.rb +4 -0
- data/sentry-ruby/examples/rails-6.0/app/controllers/application_controller.rb +2 -0
- data/sentry-ruby/examples/rails-6.0/app/controllers/concerns/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/app/controllers/welcome_controller.rb +23 -0
- data/sentry-ruby/examples/rails-6.0/app/helpers/application_helper.rb +2 -0
- data/sentry-ruby/examples/rails-6.0/app/javascript/channels/consumer.js +6 -0
- data/sentry-ruby/examples/rails-6.0/app/javascript/channels/index.js +5 -0
- data/sentry-ruby/examples/rails-6.0/app/javascript/packs/application.js +17 -0
- data/sentry-ruby/examples/rails-6.0/app/jobs/application_job.rb +7 -0
- data/sentry-ruby/examples/rails-6.0/app/mailers/application_mailer.rb +4 -0
- data/sentry-ruby/examples/rails-6.0/app/models/application_record.rb +3 -0
- data/sentry-ruby/examples/rails-6.0/app/models/concerns/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/app/views/layouts/application.html.erb +15 -0
- data/sentry-ruby/examples/rails-6.0/app/views/layouts/mailer.html.erb +13 -0
- data/sentry-ruby/examples/rails-6.0/app/views/layouts/mailer.text.erb +1 -0
- data/sentry-ruby/examples/rails-6.0/app/views/welcome/report_demo.html.erb +22 -0
- data/sentry-ruby/examples/rails-6.0/app/views/welcome/view_error.html.erb +1 -0
- data/sentry-ruby/examples/rails-6.0/app/workers/error_worker.rb +7 -0
- data/sentry-ruby/examples/rails-6.0/babel.config.js +72 -0
- data/sentry-ruby/examples/rails-6.0/bin/bundle +114 -0
- data/sentry-ruby/examples/rails-6.0/bin/rails +9 -0
- data/sentry-ruby/examples/rails-6.0/bin/rake +9 -0
- data/sentry-ruby/examples/rails-6.0/bin/setup +36 -0
- data/sentry-ruby/examples/rails-6.0/bin/spring +17 -0
- data/sentry-ruby/examples/rails-6.0/bin/webpack +18 -0
- data/sentry-ruby/examples/rails-6.0/bin/webpack-dev-server +18 -0
- data/sentry-ruby/examples/rails-6.0/bin/yarn +11 -0
- data/sentry-ruby/examples/rails-6.0/config.ru +5 -0
- data/sentry-ruby/examples/rails-6.0/config/application.rb +28 -0
- data/sentry-ruby/examples/rails-6.0/config/boot.rb +4 -0
- data/sentry-ruby/examples/rails-6.0/config/cable.yml +10 -0
- data/sentry-ruby/examples/rails-6.0/config/credentials.yml.enc +1 -0
- data/sentry-ruby/examples/rails-6.0/config/database.yml +25 -0
- data/sentry-ruby/examples/rails-6.0/config/environment.rb +5 -0
- data/sentry-ruby/examples/rails-6.0/config/environments/development.rb +62 -0
- data/sentry-ruby/examples/rails-6.0/config/environments/production.rb +112 -0
- data/sentry-ruby/examples/rails-6.0/config/environments/test.rb +48 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/application_controller_renderer.rb +8 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/assets.rb +14 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/backtrace_silencers.rb +7 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/content_security_policy.rb +30 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/cookies_serializer.rb +5 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/inflections.rb +16 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/mime_types.rb +4 -0
- data/sentry-ruby/examples/rails-6.0/config/initializers/wrap_parameters.rb +14 -0
- data/sentry-ruby/examples/rails-6.0/config/locales/en.yml +33 -0
- data/sentry-ruby/examples/rails-6.0/config/puma.rb +38 -0
- data/sentry-ruby/examples/rails-6.0/config/routes.rb +10 -0
- data/sentry-ruby/examples/rails-6.0/config/spring.rb +6 -0
- data/sentry-ruby/examples/rails-6.0/config/storage.yml +34 -0
- data/sentry-ruby/examples/rails-6.0/config/webpack/development.js +5 -0
- data/sentry-ruby/examples/rails-6.0/config/webpack/environment.js +3 -0
- data/sentry-ruby/examples/rails-6.0/config/webpack/production.js +5 -0
- data/sentry-ruby/examples/rails-6.0/config/webpack/test.js +5 -0
- data/sentry-ruby/examples/rails-6.0/config/webpacker.yml +96 -0
- data/sentry-ruby/examples/rails-6.0/db/seeds.rb +7 -0
- data/sentry-ruby/examples/rails-6.0/lib/assets/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/lib/tasks/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/package.json +15 -0
- data/sentry-ruby/examples/rails-6.0/postcss.config.js +12 -0
- data/sentry-ruby/examples/rails-6.0/public/404.html +67 -0
- data/sentry-ruby/examples/rails-6.0/public/422.html +67 -0
- data/sentry-ruby/examples/rails-6.0/public/500.html +66 -0
- data/sentry-ruby/examples/rails-6.0/public/apple-touch-icon-precomposed.png +0 -0
- data/sentry-ruby/examples/rails-6.0/public/apple-touch-icon.png +0 -0
- data/sentry-ruby/examples/rails-6.0/public/favicon.ico +0 -0
- data/sentry-ruby/examples/rails-6.0/public/robots.txt +1 -0
- data/sentry-ruby/examples/rails-6.0/storage/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/application_system_test_case.rb +5 -0
- data/sentry-ruby/examples/rails-6.0/test/channels/application_cable/connection_test.rb +11 -0
- data/sentry-ruby/examples/rails-6.0/test/controllers/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/fixtures/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/fixtures/files/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/helpers/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/integration/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/mailers/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/models/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/system/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/test_helper.rb +13 -0
- data/sentry-ruby/examples/rails-6.0/vendor/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/yarn.lock +7508 -0
- data/sentry-ruby/lib/sentry.rb +16 -0
- data/sentry-ruby/lib/sentry/backtrace.rb +128 -0
- data/sentry-ruby/lib/sentry/client.rb +162 -0
- data/sentry-ruby/lib/sentry/client/state.rb +40 -0
- data/sentry-ruby/lib/sentry/configuration.rb +533 -0
- data/sentry-ruby/lib/sentry/event.rb +209 -0
- data/sentry-ruby/lib/sentry/interface.rb +31 -0
- data/sentry-ruby/lib/sentry/interfaces/exception.rb +15 -0
- data/sentry-ruby/lib/sentry/interfaces/http.rb +16 -0
- data/sentry-ruby/lib/sentry/interfaces/message.rb +18 -0
- data/sentry-ruby/lib/sentry/interfaces/single_exception.rb +14 -0
- data/sentry-ruby/lib/sentry/interfaces/stack_trace.rb +69 -0
- data/sentry-ruby/lib/sentry/linecache.rb +44 -0
- data/sentry-ruby/lib/sentry/logger.rb +20 -0
- data/sentry-ruby/lib/sentry/transports.rb +19 -0
- data/sentry-ruby/lib/sentry/transports/dummy.rb +16 -0
- data/sentry-ruby/lib/sentry/transports/http.rb +66 -0
- data/sentry-ruby/lib/sentry/transports/stdout.rb +20 -0
- data/sentry-ruby/lib/sentry/utils/deep_merge.rb +22 -0
- data/sentry-ruby/lib/sentry/utils/exception_cause_chain.rb +20 -0
- data/sentry-ruby/lib/sentry/version.rb +3 -0
- data/sentry-ruby/sentry-ruby.gemspec +26 -0
- data/sentry-ruby/spec/sentry/backtrace_spec.rb +38 -0
- data/sentry-ruby/spec/sentry/client_spec.rb +443 -0
- data/sentry-ruby/spec/sentry/configuration_spec.rb +400 -0
- data/sentry-ruby/spec/sentry/event_spec.rb +238 -0
- data/sentry-ruby/spec/sentry/interface_spec.rb +38 -0
- data/sentry-ruby/spec/sentry/interfaces/stack_trace_spec.rb +11 -0
- data/sentry-ruby/spec/sentry/linecache_spec.rb +40 -0
- data/sentry-ruby/spec/sentry/transports/http_spec.rb +57 -0
- data/sentry-ruby/spec/sentry/transports/stdout_spec.rb +11 -0
- data/sentry-ruby/spec/sentry_spec.rb +9 -0
- data/sentry-ruby/spec/spec_helper.rb +49 -0
- data/sentry-ruby/spec/support/linecache.txt +6 -0
- metadata +152 -4
- 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,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
|
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.
|
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-
|
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/
|
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
|