sentry-ruby 0.3.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +102 -24
  3. metadata +41 -54
  4. data/.craft.yml +0 -19
  5. data/.gitignore +0 -11
  6. data/.rspec +0 -3
  7. data/.travis.yml +0 -6
  8. data/CHANGELOG.md +0 -31
  9. data/CODE_OF_CONDUCT.md +0 -74
  10. data/Gemfile +0 -16
  11. data/Rakefile +0 -8
  12. data/bin/console +0 -14
  13. data/bin/setup +0 -8
  14. data/lib/sentry/backtrace.rb +0 -128
  15. data/lib/sentry/benchmarks/benchmark_transport.rb +0 -14
  16. data/lib/sentry/breadcrumb/sentry_logger.rb +0 -87
  17. data/lib/sentry/breadcrumb.rb +0 -25
  18. data/lib/sentry/breadcrumb_buffer.rb +0 -47
  19. data/lib/sentry/client.rb +0 -80
  20. data/lib/sentry/configuration.rb +0 -387
  21. data/lib/sentry/core_ext/object/deep_dup.rb +0 -57
  22. data/lib/sentry/core_ext/object/duplicable.rb +0 -153
  23. data/lib/sentry/dsn.rb +0 -48
  24. data/lib/sentry/event.rb +0 -177
  25. data/lib/sentry/hub.rb +0 -137
  26. data/lib/sentry/interface.rb +0 -22
  27. data/lib/sentry/interfaces/exception.rb +0 -11
  28. data/lib/sentry/interfaces/request.rb +0 -95
  29. data/lib/sentry/interfaces/single_exception.rb +0 -14
  30. data/lib/sentry/interfaces/stacktrace.rb +0 -57
  31. data/lib/sentry/linecache.rb +0 -44
  32. data/lib/sentry/logger.rb +0 -20
  33. data/lib/sentry/rack/capture_exception.rb +0 -45
  34. data/lib/sentry/rack/tracing.rb +0 -39
  35. data/lib/sentry/rack.rb +0 -5
  36. data/lib/sentry/scope.rb +0 -214
  37. data/lib/sentry/span.rb +0 -155
  38. data/lib/sentry/transaction.rb +0 -113
  39. data/lib/sentry/transaction_event.rb +0 -29
  40. data/lib/sentry/transport/configuration.rb +0 -21
  41. data/lib/sentry/transport/dummy_transport.rb +0 -14
  42. data/lib/sentry/transport/http_transport.rb +0 -65
  43. data/lib/sentry/transport/state.rb +0 -40
  44. data/lib/sentry/transport.rb +0 -97
  45. data/lib/sentry/utils/exception_cause_chain.rb +0 -20
  46. data/lib/sentry/utils/real_ip.rb +0 -70
  47. data/lib/sentry/utils/request_id.rb +0 -16
  48. data/lib/sentry/version.rb +0 -3
  49. data/lib/sentry-ruby.rb +0 -123
  50. data/sentry-ruby.gemspec +0 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de5539f70eb6f49164765e4e13416bef15f8b697349f2d2e71f63ac57916f325
4
- data.tar.gz: 89121fce3fb31be7fe783599ee204ab86354f70a870ce775c79e4a33f6141e13
3
+ metadata.gz: 3f450d4675e2f6de879b83853aace0c6051ea680b35832da76a156b3a5d49fea
4
+ data.tar.gz: 392b363545f23cb65bc2b4a55afaab8767ad6a10f7f74b8d210b29218723dd79
5
5
  SHA512:
6
- metadata.gz: ca35ae1d033f68fcebfe2c3e9e4b91fa2784a56261423a1bc5e5c7550b6304eb63963bf4273b22e924db27e1287f256e712b7e74781d866e71bae288308e13ae
7
- data.tar.gz: e5853d409d5bbbb4b60ecee8c1edc3c6de91971b39938c03a19895ce790246cc234e5441d848aaba745ccc90cc4bbd3f1df4eb3108c18ea68736dab41f2ca93f
6
+ metadata.gz: 98571bdbba234d79a982596afeb34549def742ad0f4a109af7f61c3d97ea49bddd6f7f65d099c59b6e40f97194f828161b62010216966b44dc3723c36a538543
7
+ data.tar.gz: c1e513dac483417242989841078adb5c674e7668518c95e1d7246f4b276650d5a45f11ae7f02e3250fbbb6cfc78e0bfdac08d8afb45ba8e59ec11dc409626b33
data/README.md CHANGED
@@ -2,10 +2,16 @@
2
2
  <a href="https://sentry.io" target="_blank" align="center">
3
3
  <img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
4
4
  </a>
5
- <br>
5
+ <br />
6
6
  </p>
7
7
 
8
- # sentry-ruby, the Ruby Client for Sentry
8
+ _Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us [<kbd>**Check out our open positions**</kbd>](https://sentry.io/careers/)_
9
+
10
+ Sentry SDK for Ruby
11
+ ===========
12
+
13
+
14
+ **The old `sentry-raven` client has entered maintenance mode and was moved to [here](https://github.com/getsentry/sentry-ruby/tree/master/sentry-raven).**
9
15
 
10
16
  ---
11
17
 
@@ -17,14 +23,20 @@
17
23
  [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=sentry-ruby&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=sentry-ruby&package-manager=bundler&version-scheme=semver)
18
24
 
19
25
 
20
- [Documentation](https://docs.sentry.io/clients/ruby/) | [Bug Tracker](https://github.com/getsentry/sentry-ruby/issues) | [Forum](https://forum.sentry.io/) | IRC: irc.freenode.net, #sentry
26
+ [Documentation](https://docs.sentry.io/platforms/ruby/) | [Bug Tracker](https://github.com/getsentry/sentry-ruby/issues) | [Forum](https://forum.sentry.io/) | IRC: irc.freenode.net, #sentry
21
27
 
22
28
  The official Ruby-language client and integration layer for the [Sentry](https://github.com/getsentry/sentry) error reporting API.
23
29
 
24
30
 
25
31
  ## Requirements
26
32
 
27
- We test on Ruby 2.4, 2.5, 2.6 and 2.7 at the latest patchlevel/teeny version. We also support JRuby 9.0.
33
+ We test on Ruby 2.4, 2.5, 2.6, 2.7, and 3.0 at the latest patchlevel/teeny version. We also support JRuby 9.0.
34
+
35
+ If you use self-hosted Sentry, please also make sure its version is above `20.6.0`.
36
+
37
+ ## Migrate From sentry-raven
38
+
39
+ If you're using `sentry-raven`, we recommend you to migrate to this new SDK. You can find the benefits of migrating and how to do it in our [migration guide](https://docs.sentry.io/platforms/ruby/migration/).
28
40
 
29
41
  ## Getting Started
30
42
 
@@ -39,6 +51,7 @@ and depends on the integrations you want to have, you might also want to install
39
51
  ```ruby
40
52
  gem "sentry-rails"
41
53
  gem "sentry-sidekiq"
54
+ gem "sentry-delayed_job"
42
55
  # and mores to come in the future!
43
56
  ```
44
57
 
@@ -59,7 +72,7 @@ end
59
72
 
60
73
  ### Sentry doesn't report some kinds of data by default
61
74
 
62
- **Sentry ignores some exceptions by default** - most of these are related to 404s parameter parsing errors. [For a complete list, see the `IGNORE_DEFAULT` constant](https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/configuration.rb#L118) and the integration gems' `IGNORE_DEFAULT`, like [`sentry-rails`'s](https://github.com/getsentry/sentry-ruby/blob/update-readme/sentry-rails/lib/sentry/rails/configuration.rb#L12)
75
+ **Sentry ignores some exceptions by default** - most of these are related to 404s parameter parsing errors. [For a complete list, see the `IGNORE_DEFAULT` constant](https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/lib/sentry/configuration.rb#L118) and the integration gems' `IGNORE_DEFAULT`, like [`sentry-rails`'s](https://github.com/getsentry/sentry-ruby/blob/master/sentry-rails/lib/sentry/rails/configuration.rb#L12)
63
76
 
64
77
  Sentry doesn't send personally identifiable information (pii) by default, such as request body, user ip or cookies. If you want those information to be sent, you can use the `send_default_pii` config option:
65
78
 
@@ -70,17 +83,46 @@ Sentry.init do |config|
70
83
  end
71
84
  ```
72
85
 
86
+ ### Performance Monitoring
87
+
88
+ You can activate performance monitoring by enabling traces sampling:
89
+
90
+ ```ruby
91
+ Sentry.init do |config|
92
+ # set a uniform sample rate between 0.0 and 1.0
93
+ config.traces_sample_rate = 0.2
94
+
95
+ # or control sampling dynamically
96
+ config.traces_sampler = lambda do |sampling_context|
97
+ # sampling_context[:transaction_context] contains the information about the transaction
98
+ # sampling_context[:parent_sampled] contains the transaction's parent's sample decision
99
+ true # return value can be a boolean or a float between 0.0 and 1.0
100
+ end
101
+ end
102
+ ```
103
+
104
+ To learn more about performance monitoring, please visit the [official documentation](https://docs.sentry.io/platforms/ruby/performance).
105
+
73
106
  ### Usage
74
107
 
75
108
  `sentry-ruby` has a default integration with `Rack`, so you only need to use the middleware in your application like:
76
109
 
77
- ```
78
- require 'rack'
110
+ ```ruby
79
111
  require 'sentry-ruby'
80
112
 
81
- use Sentry::Rack::CaptureException
113
+ Sentry.init do |config|
114
+ config.dsn = 'https://examplePublicKey@o0.ingest.sentry.io/0'
115
+
116
+ # To activate performance monitoring, set one of these options.
117
+ # We recommend adjusting the value in production:
118
+ config.traces_sample_rate = 0.5
119
+ # or
120
+ config.traces_sampler = lambda do |context|
121
+ true
122
+ end
123
+ end
82
124
 
83
- run theapp
125
+ use Sentry::Rack::CaptureExceptions
84
126
  ```
85
127
 
86
128
  Otherwise, Sentry you can always use the capture helpers manually
@@ -99,37 +141,63 @@ We also provide integrations with popular frameworks/libraries with the related
99
141
 
100
142
  - [sentry-rails](https://github.com/getsentry/sentry-ruby/tree/master/sentry-rails)
101
143
  - [sentry-sidekiq](https://github.com/getsentry/sentry-ruby/tree/master/sentry-sidekiq)
144
+ - [sentry-delayed_job](https://github.com/getsentry/sentry-ruby/tree/master/sentry-delayed_job)
102
145
 
103
146
  ### More configuration
104
147
 
105
148
  You're all set - but there's a few more settings you may want to know about too!
106
149
 
107
- #### async
150
+ #### Blocking v.s. Non-blocking
151
+
152
+ `sentry-ruby` sends events asynchronously by default. The functionality works like this:
153
+
154
+ 1. When the SDK is initialized, a `Sentry::BackgroundWorker` will be initialized too.
155
+ 2. When an event is passed to `Client#capture_event`, instead of sending it directly with `Client#send_event`, we'll let the worker do it.
156
+ 3. The worker will have a number of threads. And the one of the idle threads will pick the job and call `Client#send_event`.
157
+ - If all the threads are busy, new jobs will be put into a queue, which has a limit of 30.
158
+ - If the queue size is exceeded, new events will be dropped.
159
+
160
+ However, if you still prefer to use your own async approach, that's totally fine. If you have `config.async` set, the worker won't initialize a thread pool and won't be used either.
108
161
 
109
- When an error or message occurs, the notification is immediately sent to Sentry. Sentry can be configured to send asynchronously:
162
+ ##### About `Sentry::BackgroundWorker`
163
+
164
+ - The worker is built on top of the [concurrent-ruby](https://github.com/ruby-concurrency/concurrent-ruby) gem's [ThreadPoolExecutor](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ThreadPoolExecutor.html), which is also used by Rails ActiveJob's async adapter. This should minimize the risk of messing up client applications with our own thread pool implementaion.
165
+
166
+ This functionality also introduces a new `background_worker_threads` config option. It allows you to decide how many threads should the worker hold. By default, the value will be the number of the processors your machine has. For example, if your machine has 4 processors, the value would be 4.
167
+
168
+ Of course, you can always override the value to fit your use cases, like
110
169
 
111
170
  ```ruby
112
- config.async = lambda { |event|
113
- Thread.new { Sentry.send_event(event) }
114
- }
171
+ config.background_worker_threads = 5 # the worker will have 5 threads for sending events
115
172
  ```
116
173
 
117
- Using a thread to send events will be adequate for truly parallel Ruby platforms such as JRuby, though the benefit on MRI/CRuby will be limited. If the async callback raises an exception, Sentry will attempt to send synchronously.
174
+ You can also disable this new non-blocking behaviour by giving a `0` value:
175
+
176
+ ```ruby
177
+ config.background_worker_threads = 0 # all events will be sent synchronously
178
+ ```
118
179
 
119
- Note that the naive example implementation has a major drawback - it can create an infinite number of threads. We recommend creating a background job, using your background job processor, that will send Sentry notifications in the background.
180
+ If you want to send a particular event immediately, you can use event hints to do it:
120
181
 
121
182
  ```ruby
122
- config.async = lambda { |event| SentryJob.perform_later(event) }
183
+ Sentry.capture_message("send me now!", hint: { background: false })
184
+ ```
123
185
 
124
- class SentryJob < ActiveJob::Base
125
- queue_as :default
186
+ ##### `config.async`
126
187
 
127
- def perform(event)
128
- Sentry.send_event(event)
129
- end
130
- end
188
+ You can also use `config.async` to send events with you own worker:
189
+
190
+ ```ruby
191
+ config.async = lambda { |event, hint| SentryJob.perform_later(event, hint) }
131
192
  ```
132
193
 
194
+ And if you use `sentry-rails`, you can directly use the job we defined for you:
195
+
196
+ ```ruby
197
+ config.async = lambda { |event, hint| Sentry::SendEventJob.perform_later(event, hint) }
198
+ ```
199
+
200
+
133
201
  #### Contexts
134
202
 
135
203
  In sentry-ruby, every event will inherit their contextual data from the current scope. So you can enrich the event's data by configuring the current scope like:
@@ -148,6 +216,15 @@ end
148
216
  Sentry.capture_exception(exception) # the event will carry all those information now
149
217
  ```
150
218
 
219
+ Or use top-level setters
220
+
221
+
222
+ ```ruby
223
+ Sentry.set_user(id: 1, email: "test@example.com")
224
+ Sentry.set_tags(tag_1: "foo", tag_2: "bar")
225
+ Sentry.set_extras(order_number: 1234, tickets_count: 4)
226
+ ```
227
+
151
228
  Or build up a temporary scope for local information:
152
229
 
153
230
  ```ruby
@@ -172,7 +249,8 @@ Sentry.capture_exception(exception, tags: {foo: "bar"})
172
249
 
173
250
  ## More Information
174
251
 
175
- * [Documentation](https://docs.sentry.io/clients/ruby/)
252
+ * [Documentation](https://docs.sentry.io/platforms/ruby/)
176
253
  * [Bug Tracker](https://github.com/getsentry/sentry-ruby/issues)
177
254
  * [Forum](https://forum.sentry.io/)
178
255
  - [Discord](https://discord.gg/ez5KZN7)
256
+
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-04 00:00:00.000000000 Z
11
+ date: 2021-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sentry-ruby-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 4.3.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 4.3.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: faraday
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -24,6 +38,26 @@ dependencies:
24
38
  - - ">="
25
39
  - !ruby/object:Gem::Version
26
40
  version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: concurrent-ruby
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 1.0.2
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '1.0'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 1.0.2
27
61
  description: A gem that provides a client interface for the Sentry error logger
28
62
  email: accounts@sentry.io
29
63
  executables: []
@@ -32,62 +66,15 @@ extra_rdoc_files:
32
66
  - README.md
33
67
  - LICENSE.txt
34
68
  files:
35
- - ".craft.yml"
36
- - ".gitignore"
37
- - ".rspec"
38
- - ".travis.yml"
39
- - CHANGELOG.md
40
- - CODE_OF_CONDUCT.md
41
- - Gemfile
42
69
  - LICENSE.txt
43
70
  - README.md
44
- - Rakefile
45
- - bin/console
46
- - bin/setup
47
- - lib/sentry-ruby.rb
48
- - lib/sentry/backtrace.rb
49
- - lib/sentry/benchmarks/benchmark_transport.rb
50
- - lib/sentry/breadcrumb.rb
51
- - lib/sentry/breadcrumb/sentry_logger.rb
52
- - lib/sentry/breadcrumb_buffer.rb
53
- - lib/sentry/client.rb
54
- - lib/sentry/configuration.rb
55
- - lib/sentry/core_ext/object/deep_dup.rb
56
- - lib/sentry/core_ext/object/duplicable.rb
57
- - lib/sentry/dsn.rb
58
- - lib/sentry/event.rb
59
- - lib/sentry/hub.rb
60
- - lib/sentry/interface.rb
61
- - lib/sentry/interfaces/exception.rb
62
- - lib/sentry/interfaces/request.rb
63
- - lib/sentry/interfaces/single_exception.rb
64
- - lib/sentry/interfaces/stacktrace.rb
65
- - lib/sentry/linecache.rb
66
- - lib/sentry/logger.rb
67
- - lib/sentry/rack.rb
68
- - lib/sentry/rack/capture_exception.rb
69
- - lib/sentry/rack/tracing.rb
70
- - lib/sentry/scope.rb
71
- - lib/sentry/span.rb
72
- - lib/sentry/transaction.rb
73
- - lib/sentry/transaction_event.rb
74
- - lib/sentry/transport.rb
75
- - lib/sentry/transport/configuration.rb
76
- - lib/sentry/transport/dummy_transport.rb
77
- - lib/sentry/transport/http_transport.rb
78
- - lib/sentry/transport/state.rb
79
- - lib/sentry/utils/exception_cause_chain.rb
80
- - lib/sentry/utils/real_ip.rb
81
- - lib/sentry/utils/request_id.rb
82
- - lib/sentry/version.rb
83
- - sentry-ruby.gemspec
84
- homepage: https://github.com/getsentry/raven-ruby
71
+ homepage: https://github.com/getsentry/sentry-ruby
85
72
  licenses:
86
73
  - Apache-2.0
87
74
  metadata:
88
- homepage_uri: https://github.com/getsentry/raven-ruby
89
- source_code_uri: https://github.com/getsentry/raven-ruby
90
- changelog_uri: https://github.com/getsentry/raven-ruby/blob/master/CHANGELOG.md
75
+ homepage_uri: https://github.com/getsentry/sentry-ruby
76
+ source_code_uri: https://github.com/getsentry/sentry-ruby
77
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/CHANGELOG.md
91
78
  post_install_message:
92
79
  rdoc_options: []
93
80
  require_paths:
data/.craft.yml DELETED
@@ -1,19 +0,0 @@
1
- minVersion: '0.13.2'
2
- github:
3
- owner: getsentry
4
- repo: sentry-ruby
5
- changelogPolicy: simple
6
- preReleaseCommand: ruby ../.scripts/bump-version.rb
7
- releaseBranchPrefix: release-sentry-ruby
8
- statusProvider:
9
- name: github
10
- artifactProvider:
11
- name: github
12
- targets:
13
- - name: gem
14
- - name: github
15
- tagPrefix: sentry-ruby-v
16
- - name: registry
17
- type: sdk
18
- config:
19
- canonical: 'gem:sentry-ruby'
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.5
6
- before_install: gem install bundler -v 2.1.1
data/CHANGELOG.md DELETED
@@ -1,31 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.3.0
4
-
5
- - Major API changes: [1123](https://github.com/getsentry/sentry-ruby/pull/1123)
6
- - Support event hint: [1122](https://github.com/getsentry/sentry-ruby/pull/1122)
7
- - Add request-id tag to events: [1120](https://github.com/getsentry/sentry-ruby/pull/1120) (by @tvec)
8
-
9
- ## 0.2.0
10
-
11
- - Multiple fixes and refactorings
12
- - Tracing support
13
-
14
- ## 0.1.3
15
-
16
- Fix require reference
17
-
18
- ## 0.1.2
19
-
20
- - Fix: Fix async callback [1098](https://github.com/getsentry/sentry-ruby/pull/1098)
21
- - Refactor: Some code cleanup [1100](https://github.com/getsentry/sentry-ruby/pull/1100)
22
- - Refactor: Remove Event options [1101](https://github.com/getsentry/sentry-ruby/pull/1101)
23
-
24
- ## 0.1.1
25
-
26
- - Feature: Allow passing custom scope to Hub#capture* helpers [1086](https://github.com/getsentry/sentry-ruby/pull/1086)
27
-
28
- ## 0.1.0
29
-
30
- First version
31
-
data/CODE_OF_CONDUCT.md 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/
data/Gemfile DELETED
@@ -1,16 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in sentry-ruby.gemspec
4
- gemspec
5
-
6
- gem "rake", "~> 12.0"
7
- gem "rspec", "~> 3.0"
8
- gem "codecov"
9
-
10
- gem "pry"
11
- gem "rack"
12
-
13
- gem "benchmark-ips"
14
- gem "benchmark_driver"
15
- gem "benchmark-ipsa"
16
- gem "benchmark-memory"
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec).tap do |task|
5
- task.rspec_opts = "--order rand"
6
- end
7
-
8
- task :default => :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "sentry/ruby"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here