raygun-apm 1.0.21-x64-mingw32 → 1.0.22-x64-mingw32

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: 36d7eef65a36f9cd3087740e66bb35259aea896fb2fb7cea512f0922900a1cfd
4
- data.tar.gz: 35f04062d3542fb4e53f3be4be9df78b8c96b932d03b240b8f735e87c889a478
3
+ metadata.gz: 9e6fcff15260308cf2621748ed1ff2a627cd95f29379aa48b1e5dbc5b0930cd0
4
+ data.tar.gz: 4661553b0a0c892c11ec6d271c430d1a5708ea2afd4f244c8171376c72e9ee55
5
5
  SHA512:
6
- metadata.gz: e03656d3f1242a3ff7f3c2f5b18fcb16dc5cee4c5c9019df26157ffed4c7b72a174b25ad8ebf8842f6d9545ec049037fb47a99d69846db0bd67719760c3b4e80
7
- data.tar.gz: c55d6584d1e5502f94dc43033c9d357951fde59a8d8b00fe25fdcdf0c41c50729dc1a35ce979d3e0f6140286c1ae530177bdbda3a9e2d8abf068065d2dd10319
6
+ metadata.gz: ce478627e5138f0cd81f23554fe09731d2d0a10618b93a1e19aa27576149aa06ae8a8e6dbbd262e0111caa569b950c529641cea61e257c038ff7c3b1ed7a593f
7
+ data.tar.gz: 97f951c4af275546024a4fb9bce3e6f5186dcad74b7bf627bf1d6c1c498995b96446c038a0403989f43f94d58ef8fe566719cf8f9138c984e462b82869a22570
Binary file
Binary file
Binary file
@@ -12,6 +12,12 @@ module Raygun
12
12
  # ruby profiler specific
13
13
  "Blacklist" => Tracer::LOG_BLACKLIST
14
14
  }
15
+
16
+ ENVIRONMENTS = {
17
+ "development" => Tracer::ENV_DEVELOPMENT,
18
+ "production" => Tracer::ENV_PRODUCTION
19
+ }
20
+
15
21
  attr_accessor :env
16
22
  def initialize(env=ENV)
17
23
  @env = env
@@ -70,6 +76,11 @@ module Raygun
70
76
  def loglevel
71
77
  LOGLEVELS[proton_debug_loglevel] || raise(ArgumentError, "invalid log level")
72
78
  end
79
+
80
+ def environment
81
+ environment = env['RACK_ENV'] || env['RAILS_ENV'] || 'production'
82
+ ENVIRONMENTS[environment] || Tracer::ENV_PRODUCTION
83
+ end
73
84
  end
74
85
  end
75
86
  end
@@ -28,6 +28,7 @@ module Raygun
28
28
  add_filters Raygun::Apm::Blacklist.resolve_entries, ignore_comments: false
29
29
  show_filters if config.loglevel == Tracer::LOG_BLACKLIST
30
30
  self.log_level = config.loglevel
31
+ self.environment = config.environment
31
32
  ObjectSpace.define_finalizer(self, proc{ disable_tracepoints })
32
33
  # Any fails here is kamikaze for the tracer
33
34
  rescue => e
@@ -1,5 +1,5 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "1.0.21"
3
+ VERSION = "1.0.22"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.22
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Raygun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-03-25 00:00:00.000000000 Z
12
+ date: 2020-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source