Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ Metrics/BlockLength:
Exclude:
- "spec/**/*"
- "errbit-ruby.gemspec"

Gemspec/OrderedDependencies:
Enabled: false
12 changes: 10 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ PATH
remote: .
specs:
errbit-ruby (0.1.0)
json
net-http
uri

GEM
remote: https://rubygems.org/
Expand All @@ -26,6 +29,8 @@ GEM
language_server-protocol (3.17.0.6)
lint_roller (1.1.0)
logger (1.7.0)
net-http (0.9.1)
uri (>= 0.11.1)
parallel (2.2.0)
parser (3.3.12.0)
ast (~> 2.4.1)
Expand Down Expand Up @@ -83,6 +88,7 @@ GEM
unicode-display_width (3.3.0)
unicode-emoji (~> 4.3)
unicode-emoji (4.3.0)
uri (1.1.1)
webmock (3.26.4)
addressable (>= 2.8.0)
crack (>= 0.3.2)
Expand All @@ -96,9 +102,9 @@ DEPENDENCIES
errbit-ruby!
irb
rake
rspec (~> 3.13)
rspec
rubocop (~> 1.65)
webmock (~> 3.23)
webmock

CHECKSUMS
addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
Expand All @@ -116,6 +122,7 @@ CHECKSUMS
language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996
parallel (2.2.0) sha256=e1059c5fd7b649558a0aec38a769f06a42942bdb40503d005a59c352fe011cd8
parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
Expand All @@ -141,6 +148,7 @@ CHECKSUMS
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
unicode-display_width (3.3.0) sha256=4b7aa66a4b11db50f6f7e98411215cd0dd10eaecb665d36eec5bcacb3fa0b613
unicode-emoji (4.3.0) sha256=11c02fa73290378c066bb0562cd4c87d8e1b706fbbe0059ca12746a4244de8ce
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
webmock (3.26.4) sha256=8d8da206d217ebe6968cfb09c77f4533c23074e1432bad865f3994eacbaad50d

BUNDLED WITH
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ end
result = Errbit.notify(e)

result.success? # => true/false
result.ignored? # => true if the exception matched config.ignore
result.failure? # => true on a 4xx/5xx response from the server
result.id # => server-assigned id, on success
result.error # => server error message, on failure
result.ignored? # => true if the exception matched config.ignore
result.failure? # => true on a 4xx/5xx response from the server
result.id # => server-assigned id, on success
result.error # => server error message, on failure
```

A report is delivered synchronously over HTTP(S) on the calling thread. A
Expand Down
9 changes: 5 additions & 4 deletions errbit-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

# Zero runtime dependencies: net/http, json, and uri all ship in the
# Ruby standard library.
spec.add_dependency "net-http"
spec.add_dependency "json"
spec.add_dependency "uri"
Comment on lines +33 to +35

spec.add_development_dependency "rspec", "~> 3.13"
spec.add_development_dependency "webmock", "~> 3.23"
spec.add_development_dependency "rspec"
spec.add_development_dependency "webmock"
spec.add_development_dependency "rubocop", "~> 1.65"
end
Loading