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 +4 -4
- data/lib/generators/sentry_generator.rb +10 -0
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f02fdd8ccd139f443cc3c679298d67bb33425c4b526adc9398910d715dd1a08
|
4
|
+
data.tar.gz: 21daa48fb038267f081ebd6ffd446441e2f4d5b01ebf45eadc7036bffd861f11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/sentry/rails/version.rb
CHANGED
data/sentry-rails.gemspec
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
92
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.
|
93
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.
|
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.
|
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:
|