raygun-apm-rails 0.1.7 → 0.1.12

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: a2d31d0ad976f35bdac2a42c3ae4b0da985291ab2a36e60982de8e04e2d34e7c
4
- data.tar.gz: 582ec4542445a59adc1f33e76353c667153cc5e7af889a8f34a55213ef6e4564
3
+ metadata.gz: 0a4b9163fa7ad19d6a57734000d788288c5f1ca74ce4d3729d4ff9acd81036d0
4
+ data.tar.gz: 76a7c8afa228f0586528f1009d0ae7fed3c596b5b332a9b61534dcdac37a7fdc
5
5
  SHA512:
6
- metadata.gz: 757a3a0f926195c155aabaea9c29ee716b6d408d1c401440db9348fde89209c4bf919284752d715674ecd5b163b3f330706156aa215d2c8d5a167741a468bd41
7
- data.tar.gz: e390eee50d733103fef5b025f6f8710689bf4235e956800ecd73791355e318452799eb43d87be4e825c11e1cc6768fa2c23b781614439c3a9d7d89053d112df7
6
+ metadata.gz: ac85078db0464c339ece99a1099e7ba0d4beaef0c36b2202efb007635f7344c14f78b0c2f15a318ffd1ad1f6a6e247cdeee41942e434b8fab4ea8a84134fd8e5
7
+ data.tar.gz: dedc829409e7e9a581b2b5a1d028338d1e4171f71ec937845de11267b1fd1f69654e6758322cc1c7421f82bff747e2def7f0702c8da49ed8e8e62079caf7fb50
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ *.gem
data/README.rdoc CHANGED
@@ -17,10 +17,9 @@ Distributed as a Rails wrapper to inject the precompiled native profiler gem.
17
17
 
18
18
  The profiler only supports CRuby, also known as Matz's Ruby Interpreter (MRI).
19
19
 
20
- * 2.4.x (End of life upstream release that does not receive backports anymore)
21
20
  * 2.5.x
22
21
  * 2.6.x
23
- * 2.7.x (Preview release, still officially unreleased, but supported)
22
+ * 2.7.x
24
23
 
25
24
  {Contact us}[https://raygun.com/about/contact] to support other Ruby versions.
26
25
 
@@ -30,7 +30,7 @@ module Raygun
30
30
  res = nil
31
31
  # Can be nil if we had a fatal error
32
32
  if @tracer
33
- Thread.current[:_raygun_apm_tracer] = @tracer
33
+ Thread.current.thread_variable_set(:_raygun_apm_tracer, @tracer)
34
34
  @tracer.start_trace
35
35
  end
36
36
  res = @app.call(env)
@@ -49,7 +49,8 @@ module Raygun
49
49
  # Shutdown the tracepoint if enabled to reduce any overhead and stall emission
50
50
  @tracer.tracepoint.stop if @tracer.tracepoint.enabled?
51
51
  # Let the GC clean up the sink thread through the finalizer below
52
- @tracer = Thread.current[:_raygun_apm_tracer] = nil
52
+ @tracer = nil
53
+ Thread.current.thread_variable_set(:_raygun_apm_tracer, nil)
53
54
  end
54
55
 
55
56
  def http_in_handler(args)
@@ -3,7 +3,6 @@ module Raygun
3
3
  module Rails
4
4
  class Railtie < ::Rails::Railtie
5
5
  initializer "raygun.apm" do |app|
6
- return if ENV['RAYGUN_SKIP_MIDDLEWARE']
7
6
  require "raygun/apm"
8
7
  require "raygun/apm/rails/middleware"
9
8
  Raygun::Apm::Blacklist.extend_with Raygun::Apm::Rails::BLACKLIST
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Rails
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.12"
5
5
  end
6
6
  end
7
7
  end
@@ -70,4 +70,6 @@ module Raygun
70
70
  end
71
71
  end
72
72
 
73
- require "raygun/apm/rails/railtie" if defined?(::Rails)
73
+ if defined?(::Rails) && !ENV['RAYGUN_SKIP_MIDDLEWARE']
74
+ require "raygun/apm/rails/railtie"
75
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erkki Eilonen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-20 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: raygun-apm
@@ -84,7 +84,6 @@ files:
84
84
  - lib/raygun/apm/rails/middleware.rb
85
85
  - lib/raygun/apm/rails/railtie.rb
86
86
  - lib/raygun/apm/rails/version.rb
87
- - raygun-apm-rails-0.1.0.gem
88
87
  - raygun-apm-rails.gemspec
89
88
  homepage:
90
89
  licenses: []
@@ -104,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
103
  - !ruby/object:Gem::Version
105
104
  version: '0'
106
105
  requirements: []
107
- rubygems_version: 3.0.3
106
+ rubygems_version: 3.1.2
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: Raygun application performance monitoring for Rails
Binary file