sentry-rails 5.18.1 → 5.19.0

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: f37e46eaedbb7739f9def9819546a7f4b1457c7fefd076bb394104fdf18910c1
4
- data.tar.gz: f7360c8d456797deef74837c24ee44ae7a5fd875cc602b83382ac345d6498c44
3
+ metadata.gz: 1f02fdd8ccd139f443cc3c679298d67bb33425c4b526adc9398910d715dd1a08
4
+ data.tar.gz: 21daa48fb038267f081ebd6ffd446441e2f4d5b01ebf45eadc7036bffd861f11
5
5
  SHA512:
6
- metadata.gz: c5ec2e4609761381f9414e88c58559086dae1fb177d8f7b9a91e52bce88b3ea82f9f201d4aabd498e39d52f91637a7a1d5778f726d91afa1138f429136a96294
7
- data.tar.gz: e58d7d66bb42a9dc0ff8679d7667c9c9bcb1fe268313c1fced2a6bd8713bf04b2dd95d407547b95052a8f57a9e93a393ace8e03108c9d9491bbc727414983944
6
+ metadata.gz: d20a91ba02a2914f5f9277409b7ce9dae74239aa976aa9d3a0fab1c46cc2d6ecabd1405d1e9afc067494f5a315fcc5af2d846b1b1bd6db56442d958512b141d9
7
+ data.tar.gz: 1a3a0d2a4f05ebd917a982bda4f17b395a8a45b51de5125836fcaee8aa6c1707195c9dec0ac0af2e62bfa1beffcf6559ab4537a6ec6fa16a1b9794b5fa7130c5
@@ -3,6 +3,8 @@ require "rails/generators/base"
3
3
  class SentryGenerator < ::Rails::Generators::Base
4
4
  class_option :dsn, type: :string, desc: "Sentry DSN"
5
5
 
6
+ class_option :inject_meta, type: :boolean, default: true, desc: "Inject meta tag into layout"
7
+
6
8
  def copy_initializer_file
7
9
  dsn = options[:dsn] ? "'#{options[:dsn]}'" : "ENV['SENTRY_DSN']"
8
10
 
@@ -16,4 +18,12 @@ class SentryGenerator < ::Rails::Generators::Base
16
18
  end
17
19
  RUBY
18
20
  end
21
+
22
+ def inject_code_into_layout
23
+ return unless options[:inject_meta]
24
+
25
+ inject_into_file "app/views/layouts/application.html.erb", before: "</head>\n" do
26
+ " <%= Sentry.get_trace_propagation_meta.html_safe %>\n "
27
+ end
28
+ end
19
29
  end
@@ -12,7 +12,7 @@ module Sentry
12
12
  app.config.middleware.insert_after ActionDispatch::DebugExceptions, Sentry::Rails::RescuedExceptionInterceptor
13
13
  end
14
14
 
15
- # because the extension works by registering the around_perform callcack, it should always be ran
15
+ # because the extension works by registering the around_perform callback, it should always be run
16
16
  # before the application is eager-loaded (before user's jobs register their own callbacks)
17
17
  # See https://github.com/getsentry/sentry-ruby/issues/1249#issuecomment-853871871 for the detail explanation
18
18
  initializer "sentry.extend_active_job", before: :eager_load! do |app|
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "5.18.1"
3
+ VERSION = "5.19.0"
4
4
  end
5
5
  end
data/sentry-rails.gemspec CHANGED
@@ -7,21 +7,27 @@ Gem::Specification.new do |spec|
7
7
  spec.description = spec.summary = "A gem that provides Rails integration for the Sentry error logger"
8
8
  spec.email = "accounts@sentry.io"
9
9
  spec.license = 'MIT'
10
- spec.homepage = "https://github.com/getsentry/sentry-ruby"
11
10
 
12
11
  spec.platform = Gem::Platform::RUBY
13
12
  spec.required_ruby_version = '>= 2.4'
14
13
  spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
15
14
  spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")
16
15
 
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = spec.homepage
19
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
16
+ github_root_uri = 'https://github.com/getsentry/sentry-ruby'
17
+ spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"
18
+
19
+ spec.metadata = {
20
+ "homepage_uri" => spec.homepage,
21
+ "source_code_uri" => spec.homepage,
22
+ "changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
23
+ "bug_tracker_uri" => "#{github_root_uri}/issues",
24
+ "documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
25
+ }
20
26
 
21
27
  spec.bindir = "exe"
22
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
29
  spec.require_paths = ["lib"]
24
30
 
25
31
  spec.add_dependency "railties", ">= 5.0"
26
- spec.add_dependency "sentry-ruby", "~> 5.18.1"
32
+ spec.add_dependency "sentry-ruby", "~> 5.19.0"
27
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.18.1
4
+ version: 5.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 5.18.1
33
+ version: 5.19.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 5.18.1
40
+ version: 5.19.0
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []
@@ -84,13 +84,15 @@ files:
84
84
  - lib/sentry/rails/tracing/active_storage_subscriber.rb
85
85
  - lib/sentry/rails/version.rb
86
86
  - sentry-rails.gemspec
87
- homepage: https://github.com/getsentry/sentry-ruby
87
+ homepage: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-rails
88
88
  licenses:
89
89
  - MIT
90
90
  metadata:
91
- homepage_uri: https://github.com/getsentry/sentry-ruby
92
- source_code_uri: https://github.com/getsentry/sentry-ruby
93
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md
91
+ homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-rails
92
+ source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.19.0/sentry-rails
93
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.19.0/CHANGELOG.md
94
+ bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
95
+ documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.19.0
94
96
  post_install_message:
95
97
  rdoc_options: []
96
98
  require_paths: