sentry-ruby 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cd10cdc1a28f396af641980c7440ab8fc74648a2ebe1364e81d137af7a8d832
4
- data.tar.gz: d96bebca93ed6d16fc4bc1a7c6f14a53f33ebf84f4d6197ce79ee344bd2a0056
3
+ metadata.gz: b16bf44cdc5e7689122b6727e08f680c7cfb98be5bebba286fdfc8a9e9f2cb81
4
+ data.tar.gz: 55a4793366f3e1a1dba8db0bec236d5c7bed5b2f1cb838244faaf629f4a1edb4
5
5
  SHA512:
6
- metadata.gz: bacf5d66a156684b3dcf3048806ffab6b53f3172a146626a4b28e4a80d1c933a729ee813a933052a425d86d3c58ce04b8409a55ba0b3fe76c45cce3defc8a6f0
7
- data.tar.gz: 756550d44dd6765e478ae2922f69c2098121c3ae290dd99345805d5690281021683146b54e999b77ed82b82330f40b5ec7e57b172a39741e4023c911c9867cb0
6
+ metadata.gz: 99da84ece5e4ee5c459fa93284edfa2154c4bb0409278bb763ff98c2ceeddb57821f173c8fe3d1cf3a1cfa48d9d168e676f8cc666117604d7b367c5f8f352f4c
7
+ data.tar.gz: aed7ff1ecf47362e8f8be166cc173b0b5ef62dacd17dc21d7d10e6c8240193024b934d1b510cbb72ccd39837c24b79421b568577ad3e3921adbb4b050395a976
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3
4
+
5
+ Fix require reference
6
+
3
7
  ## 0.1.2
4
8
 
5
9
  - Fix: Fix async callback [1098](https://github.com/getsentry/sentry-ruby/pull/1098)
data/README.md CHANGED
@@ -76,7 +76,7 @@ end
76
76
 
77
77
  ```
78
78
  require 'rack'
79
- require 'sentry'
79
+ require 'sentry-ruby'
80
80
 
81
81
  use Sentry::Rack::CaptureException
82
82
 
File without changes
@@ -51,10 +51,10 @@ module Sentry
51
51
  Event.new(configuration: configuration, message: message)
52
52
  end
53
53
 
54
- def send_event(event, hint = nil)
54
+ def send_event(event)
55
55
  return false unless configuration.sending_allowed?(event)
56
56
 
57
- event = configuration.before_send.call(event, hint) if configuration.before_send
57
+ event = configuration.before_send.call(event) if configuration.before_send
58
58
  if event.nil?
59
59
  configuration.logger.info(LOGGER_PROGNAME) { "Discarded event because before_send returned nil" }
60
60
  return
@@ -96,9 +96,9 @@ module Sentry
96
96
  attr_reader :transport
97
97
 
98
98
  # Optional Proc, called before sending an event to the server/
99
- # E.g.: lambda { |event, hint| event }
100
- # E.g.: lambda { |event, hint| nil }
101
- # E.g.: lambda { |event, hint|
99
+ # E.g.: lambda { |event| event }
100
+ # E.g.: lambda { |event| nil }
101
+ # E.g.: lambda { |event|
102
102
  # event[:message] = 'a'
103
103
  # event
104
104
  # }
@@ -1,19 +1,12 @@
1
1
  module Sentry
2
2
  class Transport
3
3
  class Configuration
4
- attr_accessor :timeout, :open_timeout, :proxy, :ssl, :ssl_ca_file, :ssl_verification, :encoding, :http_adapter, :faraday_builder, :transport_class
4
+ attr_accessor :timeout, :open_timeout, :proxy, :ssl, :ssl_ca_file, :ssl_verification, :http_adapter, :faraday_builder, :transport_class
5
5
 
6
6
  def initialize
7
7
  @ssl_verification = true
8
8
  @open_timeout = 1
9
9
  @timeout = 2
10
- @encoding = 'gzip'
11
- end
12
-
13
- def encoding=(encoding)
14
- raise(Error, 'Unsupported encoding') unless %w(gzip json).include? encoding
15
-
16
- @encoding = encoding
17
10
  end
18
11
 
19
12
  def transport_class=(klass)
@@ -1,3 +1,3 @@
1
1
  module Sentry
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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-12 00:00:00.000000000 Z
11
+ date: 2020-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -44,7 +44,7 @@ files:
44
44
  - Rakefile
45
45
  - bin/console
46
46
  - bin/setup
47
- - lib/sentry.rb
47
+ - lib/sentry-ruby.rb
48
48
  - lib/sentry/backtrace.rb
49
49
  - lib/sentry/breadcrumb.rb
50
50
  - lib/sentry/breadcrumb/sentry_logger.rb
@@ -65,7 +65,6 @@ files:
65
65
  - lib/sentry/logger.rb
66
66
  - lib/sentry/rack.rb
67
67
  - lib/sentry/rack/capture_exception.rb
68
- - lib/sentry/ruby.rb
69
68
  - lib/sentry/scope.rb
70
69
  - lib/sentry/transport.rb
71
70
  - lib/sentry/transport/configuration.rb
@@ -1 +0,0 @@
1
- require "sentry"