instrument_all_the_things 5.0.0 → 5.0.1

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: 5092de92a898d3f15edde6f9379bdcbab22131323822744a5c3adbdc8868a922
4
- data.tar.gz: 6e167a14df06cf6afc2f438dbdb4bd5d6d329a1d0299da62773e6a1fc36e60ef
3
+ metadata.gz: b00334c391218796442db8b018a217b2b748b78fbec258fe74de022f99404d73
4
+ data.tar.gz: '08bf1168df3633431aebe265810f7b305266d941aadfd80ae7bba021be830168'
5
5
  SHA512:
6
- metadata.gz: 552a49f66410a04d109fc9e722fa8e8739e117c3989be7b77e77b4e203c3c249af221a08309c048f91f3e733d8abbd7694d9f301d899f61db4483bd1bc746e70
7
- data.tar.gz: 2b32646bd335b455d952169bbafd4439c8e9ee41117dd7ff5027749369103161e478f027657156cdb909cb30ebb4ea6b69e68a7979936fd0f48f82a73d759f6c
6
+ metadata.gz: '0686251e5d4219382dc01054e98ad4f29eaee73f8d0b714e549a2082670fae9de0b452a86cd1db1825145de71578dc796a47403a3508d9e72705843f9bbfbdc6'
7
+ data.tar.gz: c2a8a81fc8e4844898a7d23a3e243cdddad3e84b131e2d8e58c78798a14d3e2bb424391ed969717114e783f106cbbaa8189f92ee12f6603ade2c3ce1a92d9787
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstrumentAllTheThings
4
- VERSION = '5.0.0'
4
+ VERSION = '5.0.1'
5
5
  end
@@ -18,7 +18,7 @@ module InstrumentAllTheThings
18
18
  def logger
19
19
  return @logger if defined?(@logger)
20
20
 
21
- @logger ||= if defined?(Rails)
21
+ @logger ||= if defined?(Rails) && Rails.respond_to?(:logger)
22
22
  Rails.logger
23
23
  elsif defined?(App) && App.respond_to?(:logger)
24
24
  App.logger
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrument_all_the_things
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Malinconico
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: datadog