sentry-ruby-core 4.1.5.pre.beta.1 → 4.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a30d58f74de8b3fc64399e3d7f741fb30ad9a771ce44e20100a95a90eb7937f
4
- data.tar.gz: 5154472623046d9a2d0819a7c32be2716e73e67d22477213836cc5f421c5ad26
3
+ metadata.gz: c7862b3ddbb49c77b2c47c1a9509cce1efa4c193d459d0b3bd07bebd6aa9b62e
4
+ data.tar.gz: faca1cc6efce70d3f64e1266c2e32fc2d67352544f8bfc2b2a278bcbefca1a61
5
5
  SHA512:
6
- metadata.gz: 32a4049d5cbf0c72a432f784932e8f40ceedf60d762b7365e46ab68d135f53bed0049724a9404dbe4515f3a7557361c8aeb9c0922e1eac0838d963c886ca2982
7
- data.tar.gz: dc838374f8426e6e63852207e68eacf4ee40f7d27ff4e9e7c418c0352658883fc120a53371d118a5c4685b3ec95e2952c9d569c65e3cf288fbd78bbead683b9f
6
+ metadata.gz: 76dbfe0e360744126dcfdfce35d1563fb14387bafb1196c315fd1ef5e9d57c09d4d627f5a5386610a031a4909fab28a659bdfcd66e96d00a2e56c8737c130358
7
+ data.tar.gz: e4c26db4e8bcaa1c6a32c4acadc9d385356b3617b8d5e76ffeda773b9deb4da291a77eafef27aa7bb98539cca187f27d174a7d0cc16c1ef8204c380e46fd54fc
@@ -1,11 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.1.5
4
+
5
+ - Serialize event hint before passing it to the async block [#1231](https://github.com/getsentry/sentry-ruby/pull/1231)
6
+ - Fixes [#1227](https://github.com/getsentry/sentry-ruby/issues/1227)
7
+ - Require the English library [#1233](https://github.com/getsentry/sentry-ruby/pull/1233) (by @dentarg)
8
+ - Allow `Sentry.init` without block argument [#1235](https://github.com/getsentry/sentry-ruby/pull/1235) (by @sue445)
9
+
3
10
  ## 4.1.5-beta.1
4
11
 
5
12
  - No change
6
13
 
7
14
  ## 4.1.5-beta.0
8
15
 
16
+ - Inline global method [#1213](https://github.com/getsentry/sentry-ruby/pull/1213) (by @tricknotes)
9
17
  - Event message and exception message should have a size limit [#1221](https://github.com/getsentry/sentry-ruby/pull/1221)
10
18
  - Add sentry-ruby-core as a more flexible option [#1226](https://github.com/getsentry/sentry-ruby/pull/1226)
11
19
 
data/README.md CHANGED
@@ -28,6 +28,8 @@ The official Ruby-language client and integration layer for the [Sentry](https:/
28
28
 
29
29
  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.
30
30
 
31
+ If you use self-hosted Sentry, please also make sure its version is above `20.6.0`.
32
+
31
33
  ## Migrate From sentry-raven
32
34
 
33
35
  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/).
@@ -1,3 +1,4 @@
1
+ require "English"
1
2
  require "forwardable"
2
3
  require "time"
3
4
 
@@ -65,7 +66,7 @@ module Sentry
65
66
 
66
67
  def init(&block)
67
68
  config = Configuration.new
68
- yield(config)
69
+ yield(config) if block_given?
69
70
  client = Client.new(config)
70
71
  scope = Scope.new
71
72
  hub = Hub.new(client, scope)
@@ -32,6 +32,7 @@ module Sentry
32
32
  event_hash = event.to_json_compatible
33
33
 
34
34
  if async_block.arity == 2
35
+ hint = JSON.parse(JSON.generate(hint))
35
36
  async_block.call(event_hash, hint)
36
37
  else
37
38
  async_block.call(event_hash)
@@ -1,3 +1,3 @@
1
1
  module Sentry
2
- VERSION = "4.1.5-beta.1"
2
+ VERSION = "4.1.5"
3
3
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
18
  spec.metadata["source_code_uri"] = spec.homepage
19
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/sentry-ruby/CHANGELOG.md"
20
20
 
21
21
  spec.bindir = "exe"
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.metadata["homepage_uri"] = spec.homepage
17
17
  spec.metadata["source_code_uri"] = spec.homepage
18
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
18
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/sentry-ruby/CHANGELOG.md"
19
19
 
20
20
  spec.add_dependency "sentry-ruby-core", Sentry::VERSION
21
21
  spec.add_dependency "faraday", ">= 1.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.5.pre.beta.1
4
+ version: 4.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-21 00:00:00.000000000 Z
11
+ date: 2021-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -49,7 +49,6 @@ files:
49
49
  - ".craft.yml"
50
50
  - ".gitignore"
51
51
  - ".rspec"
52
- - ".travis.yml"
53
52
  - CHANGELOG.md
54
53
  - CODE_OF_CONDUCT.md
55
54
  - Gemfile
@@ -105,7 +104,7 @@ licenses:
105
104
  metadata:
106
105
  homepage_uri: https://github.com/getsentry/sentry-ruby
107
106
  source_code_uri: https://github.com/getsentry/sentry-ruby
108
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
107
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/master/sentry-ruby/CHANGELOG.md
109
108
  post_install_message:
110
109
  rdoc_options: []
111
110
  require_paths:
@@ -117,9 +116,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
116
  version: '2.4'
118
117
  required_rubygems_version: !ruby/object:Gem::Requirement
119
118
  requirements:
120
- - - ">"
119
+ - - ">="
121
120
  - !ruby/object:Gem::Version
122
- version: 1.3.1
121
+ version: '0'
123
122
  requirements: []
124
123
  rubygems_version: 3.0.3
125
124
  signing_key:
@@ -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