raygun-apm 1.0.21-universal-darwin → 1.0.22-universal-darwin

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: 21b8c0fe72ca8474d5160ec700a07e22298e4102c9aadacd8d07ba109eeddb74
4
- data.tar.gz: 2e732f3f2601d66523001e288a4fa2ae5fe159df9adf33722a3fa0e0db6a1e30
3
+ metadata.gz: 624aede0276a591426bc131863f34a28ea03644834076a5a3af125acfe17f38b
4
+ data.tar.gz: 83dcea82d84f3d8b1aa023f67f817780cfada2ddf00741930b56c9f944428ee8
5
5
  SHA512:
6
- metadata.gz: 6b66ed614d5d6f0400a006751285dab3b45a8b560eb47f79a35ce0d524129ff010dbddfdd3a4828ee59c4f6553fc0284aee300bcc108eba6aceb9fdd7c8ce3a5
7
- data.tar.gz: e3865479b61e634cd3b69d806a2aa51e6ffefe5cab130d72107fb6b89bd88355d54518583f8c2324c46f9564eb69032d37a280cfd8a067122feffe4ed94c34cf
6
+ metadata.gz: 57060059a59d294aa02cc79ed27469bf3656ea106108f4c942125dbf77848280c2ad8cbe6985cc3b064a0eee9f6e931ce77eb0cf682d2c61009c6d023a3a1434
7
+ data.tar.gz: 04ab1e40606e2fb6fe457c293ab567be0c232161c51ee873c805e0234c9a7edce878d4265fececcdb023aa7e4bdce6a18b87aca29de8309d56a788a8b4ce0909
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: universal-darwin
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-26 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