raygun-apm 1.0.21-x86-mingw32 → 1.0.22-x86-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: 50abc8f27c57528541feb3fcac30a740cfdf29ff3643e9f71f34d3cd60ee7a9b
4
- data.tar.gz: 7d1d18ac89af24cf695632eafb9f6a957ecaa3d03be1cac87ed31172aaa91cf4
3
+ metadata.gz: de628cc42cc493e6403a77dc3af8302bdcdf5c4ad6b6420697a207efa6bd75af
4
+ data.tar.gz: 64ee7bc68242b1898a25e1729868eaaeabcfa0385b18362c73b9d6e6a32f82fd
5
5
  SHA512:
6
- metadata.gz: f69456acb80c4c1502ed9c2e9aca0b3dc70a6c2489f1dd39e0097b5237beb21302ad9839556a9e96ddc4770c6102b248b5aa9467e055ed98f4ff416ff95d8803
7
- data.tar.gz: 994457e3a0d3edf98819ccc1cd56d63035fd04f1b10a502c33e72dc83e1aa3163ea2e18df95e6d6307f06e4cd5f0e88a33c7fad0a4eaea95e06fa9f4c403a1c8
6
+ metadata.gz: d095d60e631a6813665c3aec2067f7bd9cc4ca3932ac9d7d950b69c8542ea39883bd60f9dd07ef9633c5e7440f33aae2f97d3662e08598913c4b05be6be904fe
7
+ data.tar.gz: a94f935c8166656527cc73dcbd366f48b42eea95378dc42af851e7d35ee47a1009ea0bf05d9cd0ed5064ecc5ec3707918c26cc7924232b37afe5a2f9772246a9
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: x86-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