sentry-raven 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.craft.yml +9 -5
- data/.scripts/bump-version.rb +5 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +5 -1
- data/Makefile +3 -0
- data/README.md +19 -7
- data/lib/raven/base.rb +1 -0
- data/lib/raven/configuration.rb +0 -1
- data/lib/raven/event.rb +5 -1
- data/lib/raven/instance.rb +7 -1
- data/lib/raven/integrations/delayed_job.rb +1 -1
- data/lib/raven/integrations/rack.rb +2 -14
- data/lib/raven/transports/http.rb +2 -1
- data/lib/raven/utils/request_id.rb +16 -0
- data/lib/raven/version.rb +1 -1
- data/sentry-raven.gemspec +7 -0
- metadata +10 -148
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
- data/.github/pull_request_template.md +0 -16
- data/.github/workflows/test.yml +0 -92
- data/.github/workflows/zeus_upload.yml +0 -32
- data/.gitignore +0 -16
- data/.gitmodules +0 -0
- data/.rspec +0 -1
- data/.rubocop.yml +0 -112
- data/.scripts/bump-version.sh +0 -9
- data/CONTRIBUTING.md +0 -71
- data/sentry-ruby/.gitignore +0 -11
- data/sentry-ruby/.rspec +0 -3
- data/sentry-ruby/.travis.yml +0 -6
- data/sentry-ruby/CODE_OF_CONDUCT.md +0 -74
- data/sentry-ruby/Gemfile +0 -9
- data/sentry-ruby/LICENSE.txt +0 -21
- data/sentry-ruby/README.md +0 -44
- data/sentry-ruby/Rakefile +0 -6
- data/sentry-ruby/bin/console +0 -14
- data/sentry-ruby/bin/setup +0 -8
- data/sentry-ruby/examples/rails-6.0/.browserslistrc +0 -1
- data/sentry-ruby/examples/rails-6.0/.gitignore +0 -35
- data/sentry-ruby/examples/rails-6.0/Gemfile +0 -58
- data/sentry-ruby/examples/rails-6.0/README.md +0 -23
- data/sentry-ruby/examples/rails-6.0/Rakefile +0 -6
- data/sentry-ruby/examples/rails-6.0/app/assets/config/manifest.js +0 -2
- 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 +0 -15
- data/sentry-ruby/examples/rails-6.0/app/channels/application_cable/channel.rb +0 -4
- data/sentry-ruby/examples/rails-6.0/app/channels/application_cable/connection.rb +0 -4
- data/sentry-ruby/examples/rails-6.0/app/controllers/application_controller.rb +0 -2
- 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 +0 -23
- data/sentry-ruby/examples/rails-6.0/app/helpers/application_helper.rb +0 -2
- data/sentry-ruby/examples/rails-6.0/app/javascript/channels/consumer.js +0 -6
- data/sentry-ruby/examples/rails-6.0/app/javascript/channels/index.js +0 -5
- data/sentry-ruby/examples/rails-6.0/app/javascript/packs/application.js +0 -17
- data/sentry-ruby/examples/rails-6.0/app/jobs/application_job.rb +0 -7
- data/sentry-ruby/examples/rails-6.0/app/mailers/application_mailer.rb +0 -4
- data/sentry-ruby/examples/rails-6.0/app/models/application_record.rb +0 -3
- 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 +0 -15
- data/sentry-ruby/examples/rails-6.0/app/views/layouts/mailer.html.erb +0 -13
- data/sentry-ruby/examples/rails-6.0/app/views/layouts/mailer.text.erb +0 -1
- data/sentry-ruby/examples/rails-6.0/app/views/welcome/report_demo.html.erb +0 -22
- data/sentry-ruby/examples/rails-6.0/app/views/welcome/view_error.html.erb +0 -1
- data/sentry-ruby/examples/rails-6.0/app/workers/error_worker.rb +0 -7
- data/sentry-ruby/examples/rails-6.0/babel.config.js +0 -72
- data/sentry-ruby/examples/rails-6.0/bin/bundle +0 -114
- data/sentry-ruby/examples/rails-6.0/bin/rails +0 -9
- data/sentry-ruby/examples/rails-6.0/bin/rake +0 -9
- data/sentry-ruby/examples/rails-6.0/bin/setup +0 -36
- data/sentry-ruby/examples/rails-6.0/bin/spring +0 -17
- data/sentry-ruby/examples/rails-6.0/bin/webpack +0 -18
- data/sentry-ruby/examples/rails-6.0/bin/webpack-dev-server +0 -18
- data/sentry-ruby/examples/rails-6.0/bin/yarn +0 -11
- data/sentry-ruby/examples/rails-6.0/config.ru +0 -5
- data/sentry-ruby/examples/rails-6.0/config/application.rb +0 -28
- data/sentry-ruby/examples/rails-6.0/config/boot.rb +0 -4
- data/sentry-ruby/examples/rails-6.0/config/cable.yml +0 -10
- data/sentry-ruby/examples/rails-6.0/config/credentials.yml.enc +0 -1
- data/sentry-ruby/examples/rails-6.0/config/database.yml +0 -25
- data/sentry-ruby/examples/rails-6.0/config/environment.rb +0 -5
- data/sentry-ruby/examples/rails-6.0/config/environments/development.rb +0 -62
- data/sentry-ruby/examples/rails-6.0/config/environments/production.rb +0 -112
- data/sentry-ruby/examples/rails-6.0/config/environments/test.rb +0 -48
- data/sentry-ruby/examples/rails-6.0/config/initializers/application_controller_renderer.rb +0 -8
- data/sentry-ruby/examples/rails-6.0/config/initializers/assets.rb +0 -14
- data/sentry-ruby/examples/rails-6.0/config/initializers/backtrace_silencers.rb +0 -7
- data/sentry-ruby/examples/rails-6.0/config/initializers/content_security_policy.rb +0 -30
- data/sentry-ruby/examples/rails-6.0/config/initializers/cookies_serializer.rb +0 -5
- data/sentry-ruby/examples/rails-6.0/config/initializers/filter_parameter_logging.rb +0 -4
- data/sentry-ruby/examples/rails-6.0/config/initializers/inflections.rb +0 -16
- data/sentry-ruby/examples/rails-6.0/config/initializers/mime_types.rb +0 -4
- data/sentry-ruby/examples/rails-6.0/config/initializers/wrap_parameters.rb +0 -14
- data/sentry-ruby/examples/rails-6.0/config/locales/en.yml +0 -33
- data/sentry-ruby/examples/rails-6.0/config/puma.rb +0 -38
- data/sentry-ruby/examples/rails-6.0/config/routes.rb +0 -10
- data/sentry-ruby/examples/rails-6.0/config/spring.rb +0 -6
- data/sentry-ruby/examples/rails-6.0/config/storage.yml +0 -34
- data/sentry-ruby/examples/rails-6.0/config/webpack/development.js +0 -5
- data/sentry-ruby/examples/rails-6.0/config/webpack/environment.js +0 -3
- data/sentry-ruby/examples/rails-6.0/config/webpack/production.js +0 -5
- data/sentry-ruby/examples/rails-6.0/config/webpack/test.js +0 -5
- data/sentry-ruby/examples/rails-6.0/config/webpacker.yml +0 -96
- data/sentry-ruby/examples/rails-6.0/db/seeds.rb +0 -7
- 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 +0 -15
- data/sentry-ruby/examples/rails-6.0/postcss.config.js +0 -12
- data/sentry-ruby/examples/rails-6.0/public/404.html +0 -67
- data/sentry-ruby/examples/rails-6.0/public/422.html +0 -67
- data/sentry-ruby/examples/rails-6.0/public/500.html +0 -66
- 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 +0 -1
- data/sentry-ruby/examples/rails-6.0/storage/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/test/application_system_test_case.rb +0 -5
- data/sentry-ruby/examples/rails-6.0/test/channels/application_cable/connection_test.rb +0 -11
- 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 +0 -13
- data/sentry-ruby/examples/rails-6.0/vendor/.keep +0 -0
- data/sentry-ruby/examples/rails-6.0/yarn.lock +0 -7508
- data/sentry-ruby/lib/sentry.rb +0 -16
- data/sentry-ruby/lib/sentry/backtrace.rb +0 -128
- data/sentry-ruby/lib/sentry/client.rb +0 -162
- data/sentry-ruby/lib/sentry/client/state.rb +0 -40
- data/sentry-ruby/lib/sentry/configuration.rb +0 -533
- data/sentry-ruby/lib/sentry/event.rb +0 -209
- data/sentry-ruby/lib/sentry/interface.rb +0 -31
- data/sentry-ruby/lib/sentry/interfaces/exception.rb +0 -15
- data/sentry-ruby/lib/sentry/interfaces/http.rb +0 -16
- data/sentry-ruby/lib/sentry/interfaces/message.rb +0 -18
- data/sentry-ruby/lib/sentry/interfaces/single_exception.rb +0 -14
- data/sentry-ruby/lib/sentry/interfaces/stack_trace.rb +0 -69
- data/sentry-ruby/lib/sentry/linecache.rb +0 -44
- data/sentry-ruby/lib/sentry/logger.rb +0 -20
- data/sentry-ruby/lib/sentry/transports.rb +0 -19
- data/sentry-ruby/lib/sentry/transports/dummy.rb +0 -16
- data/sentry-ruby/lib/sentry/transports/http.rb +0 -66
- data/sentry-ruby/lib/sentry/transports/stdout.rb +0 -20
- data/sentry-ruby/lib/sentry/utils/deep_merge.rb +0 -22
- data/sentry-ruby/lib/sentry/utils/exception_cause_chain.rb +0 -20
- data/sentry-ruby/lib/sentry/version.rb +0 -3
- data/sentry-ruby/sentry-ruby.gemspec +0 -26
- data/sentry-ruby/spec/sentry/backtrace_spec.rb +0 -38
- data/sentry-ruby/spec/sentry/client_spec.rb +0 -443
- data/sentry-ruby/spec/sentry/configuration_spec.rb +0 -400
- data/sentry-ruby/spec/sentry/event_spec.rb +0 -238
- data/sentry-ruby/spec/sentry/interface_spec.rb +0 -38
- data/sentry-ruby/spec/sentry/interfaces/stack_trace_spec.rb +0 -11
- data/sentry-ruby/spec/sentry/linecache_spec.rb +0 -40
- data/sentry-ruby/spec/sentry/transports/http_spec.rb +0 -57
- data/sentry-ruby/spec/sentry/transports/stdout_spec.rb +0 -11
- data/sentry-ruby/spec/sentry_spec.rb +0 -9
- data/sentry-ruby/spec/spec_helper.rb +0 -49
- data/sentry-ruby/spec/support/linecache.txt +0 -6
@@ -1,32 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Bug report
|
3
|
-
about: Create a report to help us improve
|
4
|
-
title: ''
|
5
|
-
labels: bug
|
6
|
-
assignees: st0012
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
**Describe the bug**
|
11
|
-
|
12
|
-
**To Reproduce**
|
13
|
-
|
14
|
-
**Expected behavior**
|
15
|
-
|
16
|
-
**Actual behavior**
|
17
|
-
|
18
|
-
**Environment**
|
19
|
-
- Ruby Version:
|
20
|
-
- SDK Version:
|
21
|
-
- Integration Versions (if any):
|
22
|
-
- e.g. Rails 6.0, Sidekiq 6.1.2
|
23
|
-
|
24
|
-
**Raven Config**
|
25
|
-
|
26
|
-
This is not necessary but could be helpful.
|
27
|
-
|
28
|
-
```ruby
|
29
|
-
Raven.configure do |config|
|
30
|
-
# the config you're using, without DSN and other sensitive data
|
31
|
-
end
|
32
|
-
```
|
@@ -1,16 +0,0 @@
|
|
1
|
-
Thanks for your Pull Request 🎉
|
2
|
-
|
3
|
-
**Please keep these instructions in mind so we can review it more efficiently:**
|
4
|
-
|
5
|
-
- Add the references of all the related issues/PRs in the description
|
6
|
-
- Whether it's a new feature or a bug fix, make sure they're covered by new test cases
|
7
|
-
- If this PR contains any refactoring work, please give it its own commit(s)
|
8
|
-
|
9
|
-
|
10
|
-
**Other Notes**
|
11
|
-
- We squash all commits before merging
|
12
|
-
- We generally review new PRs within a week
|
13
|
-
- If you have any question, you can ask for feedback in our [discord community](https://discord.gg/Ww9hbqr) first
|
14
|
-
|
15
|
-
## Description
|
16
|
-
Describe your changes:
|
data/.github/workflows/test.yml
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
name: Test
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- master
|
7
|
-
pull_request:
|
8
|
-
jobs:
|
9
|
-
test:
|
10
|
-
name: Test on ruby ${{ matrix.ruby_version }} and rails ${{ matrix.rails_version }}
|
11
|
-
runs-on: ${{ matrix.os }}
|
12
|
-
strategy:
|
13
|
-
matrix:
|
14
|
-
rails_version: [0, 4.2, 5.2, 6.0]
|
15
|
-
ruby_version: [2.3, 2.4, 2.5, 2.6, 2.7, jruby, head]
|
16
|
-
os: [ubuntu-latest]
|
17
|
-
include:
|
18
|
-
- ruby_version: head
|
19
|
-
rails_version: 0
|
20
|
-
- ruby_version: 2.7
|
21
|
-
rails_version: 6.0
|
22
|
-
env: RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
|
23
|
-
exclude:
|
24
|
-
- ruby_version: 2.3
|
25
|
-
rails_version: 6.0
|
26
|
-
- ruby_version: 2.4
|
27
|
-
rails_version: 6.0
|
28
|
-
- ruby_version: 2.7
|
29
|
-
rails_version: 4.2
|
30
|
-
- ruby_version: head
|
31
|
-
rails_version: 4.2
|
32
|
-
- ruby_version: head
|
33
|
-
rails_version: 5.2
|
34
|
-
- ruby_version: head
|
35
|
-
rails_version: 6.0
|
36
|
-
|
37
|
-
steps:
|
38
|
-
- uses: actions/checkout@v1
|
39
|
-
|
40
|
-
- name: Set up Ruby ${{ matrix.ruby_version }}
|
41
|
-
uses: ruby/setup-ruby@v1
|
42
|
-
with:
|
43
|
-
bundler: 1
|
44
|
-
ruby-version: ${{ matrix.ruby_version }}
|
45
|
-
|
46
|
-
- name: Start Redis
|
47
|
-
uses: supercharge/redis-github-action@1.1.0
|
48
|
-
with:
|
49
|
-
redis-version: 5
|
50
|
-
|
51
|
-
- name: Build with Rails ${{ matrix.rails_version }}
|
52
|
-
env:
|
53
|
-
RAILS_VERSION: ${{ matrix.rails_version }}
|
54
|
-
run: |
|
55
|
-
bundle install --jobs 4 --retry 3
|
56
|
-
bundle exec rake
|
57
|
-
|
58
|
-
compare_allocation:
|
59
|
-
name: Compare memory allocation with ${{ matrix.ruby_version }} and rails ${{ matrix.rails_version }}
|
60
|
-
runs-on: ${{ matrix.os }}
|
61
|
-
needs: test
|
62
|
-
env:
|
63
|
-
RAILS_VERSION: ${{ matrix.rails_version }}
|
64
|
-
strategy:
|
65
|
-
matrix:
|
66
|
-
rails_version: [5.2, 6.0]
|
67
|
-
ruby_version: [2.6, 2.7]
|
68
|
-
os: [ubuntu-latest]
|
69
|
-
steps:
|
70
|
-
- name: Set up Ruby ${{ matrix.ruby_version }}
|
71
|
-
uses: ruby/setup-ruby@v1
|
72
|
-
with:
|
73
|
-
bundler: 1
|
74
|
-
ruby-version: ${{ matrix.ruby_version }}
|
75
|
-
|
76
|
-
- uses: actions/checkout@v2
|
77
|
-
with:
|
78
|
-
ref: master
|
79
|
-
|
80
|
-
- name: Build and run allocation report on master
|
81
|
-
run: |
|
82
|
-
bundle install --jobs 4 --retry 3
|
83
|
-
bundle exec ruby benchmarks/allocation_comparison.rb
|
84
|
-
|
85
|
-
- uses: actions/checkout@v1
|
86
|
-
|
87
|
-
- name: Rebuild on the branch
|
88
|
-
run: |
|
89
|
-
bundle install --jobs 4 --retry 3
|
90
|
-
- name: Run allocation report on the branch
|
91
|
-
run: |
|
92
|
-
bundle exec ruby benchmarks/allocation_comparison.rb
|
@@ -1,32 +0,0 @@
|
|
1
|
-
name: Zeus Upload
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- release/**
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
zeus_upload:
|
10
|
-
name: Zeus
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
steps:
|
13
|
-
- uses: actions/checkout@v2
|
14
|
-
- uses: actions/setup-node@v1
|
15
|
-
- name: Set up Ruby
|
16
|
-
uses: ruby/setup-ruby@v1
|
17
|
-
with:
|
18
|
-
ruby-version: 2.6 # Not needed with a .ruby-version file
|
19
|
-
- run: bundle install
|
20
|
-
- name: Install Zeus
|
21
|
-
run: |
|
22
|
-
yarn global add @zeus-ci/cli
|
23
|
-
echo "::add-path::$(yarn global bin)"
|
24
|
-
- name: Upload to Zeus
|
25
|
-
env:
|
26
|
-
ZEUS_API_TOKEN: ${{ secrets.ZEUS_API_TOKEN }}
|
27
|
-
ZEUS_HOOK_BASE: ${{ secrets.ZEUS_HOOK_BASE }}
|
28
|
-
run: |
|
29
|
-
zeus job update -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -r $GITHUB_SHA
|
30
|
-
gem build sentry-raven.gemspec
|
31
|
-
zeus upload -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -t "application/tar+gem" ./*.gem
|
32
|
-
zeus job update --status=passed -b $GITHUB_RUN_ID -j $GITHUB_RUN_NUMBER -r $GITHUB_SHA
|
data/.gitignore
DELETED
data/.gitmodules
DELETED
File without changes
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|
data/.rubocop.yml
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
Include:
|
3
|
-
- 'lib/**/*.rb'
|
4
|
-
- 'spec/**/*.rb'
|
5
|
-
Exclude:
|
6
|
-
- 'examples/**/*'
|
7
|
-
- 'vendor/**/*'
|
8
|
-
|
9
|
-
Metrics/ClassLength:
|
10
|
-
Max: 350
|
11
|
-
CountComments: false
|
12
|
-
|
13
|
-
Metrics/AbcSize:
|
14
|
-
Max: 40
|
15
|
-
|
16
|
-
Metrics/BlockLength:
|
17
|
-
Enabled: false
|
18
|
-
|
19
|
-
Metrics/CyclomaticComplexity:
|
20
|
-
Max: 12
|
21
|
-
|
22
|
-
Metrics/PerceivedComplexity:
|
23
|
-
Max: 11
|
24
|
-
|
25
|
-
Metrics/MethodLength:
|
26
|
-
Max: 40
|
27
|
-
|
28
|
-
Style/SymbolArray:
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
Style/PercentLiteralDelimiters:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
Style/FrozenStringLiteralComment:
|
35
|
-
Enabled: false
|
36
|
-
|
37
|
-
Style/SignalException:
|
38
|
-
Enabled: false
|
39
|
-
|
40
|
-
Style/ClassAndModuleChildren:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
Style/RescueStandardError:
|
44
|
-
Enabled: false
|
45
|
-
|
46
|
-
Style/ParallelAssignment:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
Style/Documentation:
|
50
|
-
Enabled: false
|
51
|
-
|
52
|
-
Style/CommentedKeyword:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
Style/RescueModifier:
|
56
|
-
Enabled: false
|
57
|
-
|
58
|
-
Style/RegexpLiteral:
|
59
|
-
Enabled: false
|
60
|
-
|
61
|
-
Style/StringLiterals:
|
62
|
-
Enabled: false
|
63
|
-
|
64
|
-
Style/CaseEquality:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
Style/DoubleNegation:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
Style/GuardClause:
|
71
|
-
Enabled: false
|
72
|
-
|
73
|
-
Style/RedundantBegin:
|
74
|
-
Enabled: false
|
75
|
-
|
76
|
-
Style/NumericLiterals:
|
77
|
-
Exclude:
|
78
|
-
- 'spec/raven/processors/sanitizedata_processor_spec.rb'
|
79
|
-
|
80
|
-
Style/HashSyntax:
|
81
|
-
Enabled: false
|
82
|
-
|
83
|
-
Style/IfUnlessModifier:
|
84
|
-
Enabled: false
|
85
|
-
|
86
|
-
Lint/RescueException:
|
87
|
-
Exclude:
|
88
|
-
- 'lib/raven/base.rb'
|
89
|
-
- 'lib/raven/instance.rb'
|
90
|
-
- 'lib/raven/integrations/delayed_job.rb'
|
91
|
-
- 'lib/raven/integrations/rack.rb'
|
92
|
-
- 'lib/raven/integrations/sidekiq.rb'
|
93
|
-
- 'spec/raven/event_spec.rb'
|
94
|
-
|
95
|
-
Lint/SuppressedException:
|
96
|
-
Enabled: false
|
97
|
-
|
98
|
-
Lint/AssignmentInCondition:
|
99
|
-
Enabled: false
|
100
|
-
|
101
|
-
Layout/LineLength:
|
102
|
-
Max: 155
|
103
|
-
|
104
|
-
Naming/FileName:
|
105
|
-
Exclude:
|
106
|
-
- 'lib/sentry-raven-without-integrations.rb'
|
107
|
-
- 'lib/sentry-raven.rb'
|
108
|
-
- 'lib/raven/integrations/rack-timeout.rb'
|
109
|
-
|
110
|
-
Naming/MethodParameterName:
|
111
|
-
Enabled: false
|
112
|
-
|
data/.scripts/bump-version.sh
DELETED
data/CONTRIBUTING.md
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
<p align="center">
|
2
|
-
<a href="https://sentry.io" target="_blank" align="center">
|
3
|
-
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
|
4
|
-
</a>
|
5
|
-
<br />
|
6
|
-
</p>
|
7
|
-
|
8
|
-
# Contributing
|
9
|
-
|
10
|
-
You can contribute this project in the following ways:
|
11
|
-
|
12
|
-
- File a [bug report] or propose a feature
|
13
|
-
- Open a PR for bug fixes or implementing requested features
|
14
|
-
- Give feedback to opened issues/pull requests
|
15
|
-
- Test the latest version - `gem 'sentry-raven', github: 'getsentry/raven-ruby'`
|
16
|
-
- Contribute documentation in the [document repo]
|
17
|
-
|
18
|
-
|
19
|
-
And if you have any questions, please feel free to reach out on [Discord].
|
20
|
-
|
21
|
-
|
22
|
-
[bug report]: https://github.com/getsentry/raven-ruby/issues/new?template=bug_report.md
|
23
|
-
[document repo]: https://github.com/getsentry/sentry-docs
|
24
|
-
[Discord]: https://discord.gg/Ww9hbqr
|
25
|
-
|
26
|
-
## How To Contribute
|
27
|
-
|
28
|
-
### Running Tests
|
29
|
-
|
30
|
-
#### RAILS_VERSION
|
31
|
-
|
32
|
-
Because this SDK supports multiple versions of Rails, or even without Rails, you might want to run your test against different versions of Rails.
|
33
|
-
|
34
|
-
You can do this by changing the `RAILS_VERSION` environment variable:
|
35
|
-
|
36
|
-
|
37
|
-
```
|
38
|
-
$ echo RAILS_VERSION=6.0
|
39
|
-
$ bundle update # this is necessary if you're switching between Rails versions
|
40
|
-
$ bundle exec rake
|
41
|
-
```
|
42
|
-
|
43
|
-
If not specified, it runs tests against `Rails 5.2`.
|
44
|
-
|
45
|
-
And if you don't want to run the Rails related test cases, you can use `RAILS_VERSION=0`
|
46
|
-
|
47
|
-
```
|
48
|
-
$ RAILS_VERSION=0 bundle exec rake # runs without Rails related test cases
|
49
|
-
```
|
50
|
-
|
51
|
-
### Testing Your Change Against Example Rails Apps
|
52
|
-
|
53
|
-
We have a few example apps for different Rails versions under the `/examples` folder. You can use them to perform an end-to-end testing on your changes (just remember to change the DSN to your project's).
|
54
|
-
|
55
|
-
At this moment, we recommend testing against the [Rails 6 example](https://github.com/getsentry/raven-ruby/tree/master/examples/rails-6.0) first. Please read its readme to see what kind of testing you can perform with it.
|
56
|
-
|
57
|
-
|
58
|
-
## Making a release
|
59
|
-
|
60
|
-
Install and use `craft`: https://github.com/getsentry/craft
|
61
|
-
|
62
|
-
Make sure the `CHANGELOG.md` is update and latest `master` contains all changes.
|
63
|
-
|
64
|
-
Run:
|
65
|
-
|
66
|
-
```bash
|
67
|
-
craft prepare x.x.x
|
68
|
-
```
|
69
|
-
|
70
|
-
Where `x.x.x` stands for the version you want to release.
|
71
|
-
Afterwards reach out to an employee of Sentry, they will cut a release by running the `publish` process of `craft`.
|
data/sentry-ruby/.gitignore
DELETED
data/sentry-ruby/.rspec
DELETED
data/sentry-ruby/.travis.yml
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at stan001212@gmail.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: https://contributor-covenant.org
|
74
|
-
[version]: https://contributor-covenant.org/version/1/4/
|