sentry-rails 5.18.2 → 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: bffc341442285ba61f2912e8b2ccea116956963fce33b4ccfadf8e241abb3749
4
- data.tar.gz: 82a09635a284def44b454a507e9683bce2a8eddf73c057c8a814371ad88643b1
3
+ metadata.gz: 1f02fdd8ccd139f443cc3c679298d67bb33425c4b526adc9398910d715dd1a08
4
+ data.tar.gz: 21daa48fb038267f081ebd6ffd446441e2f4d5b01ebf45eadc7036bffd861f11
5
5
  SHA512:
6
- metadata.gz: 33508130e2f9963c137e5e6fa487ba0e098b7c5e8595dd1c66a50d878b92a8a6a061dc390684df7b00d456fdd96a1f1275010a992dc6129e2b4c0e68108b8412
7
- data.tar.gz: 2c29916165ef727b3dbf4ebd17a61f2dab2453c5368b8e28b9dfef833b3e88b3d6d127d672e1d96974b70d83fbbf52a5219d8da18f934ff8e99a3236b029f67d
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
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "5.18.2"
3
+ VERSION = "5.19.0"
4
4
  end
5
5
  end
data/sentry-rails.gemspec CHANGED
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ["lib"]
30
30
 
31
31
  spec.add_dependency "railties", ">= 5.0"
32
- spec.add_dependency "sentry-ruby", "~> 5.18.2"
32
+ spec.add_dependency "sentry-ruby", "~> 5.19.0"
33
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.2
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-23 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.2
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.2
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,15 +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/tree/5.18.2/sentry-rails
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/tree/5.18.2/sentry-rails
92
- source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.18.2/sentry-rails
93
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.18.2/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
94
  bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
95
- documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.18.2
95
+ documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.19.0
96
96
  post_install_message:
97
97
  rdoc_options: []
98
98
  require_paths: