manageiq-loggers 1.0.0 → 1.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: a3eb7ea1a06988309ad93d51e5be24deb9f9252621e35816d3a746a2aaaa2147
4
- data.tar.gz: 725ba6fe5040b59543e69b5005257a0b2caa336cb882f7db7baa581c9e6a1e95
3
+ metadata.gz: d411d75a73f5d47de3de8080101e168c99265168eb34beef036a173955aa9823
4
+ data.tar.gz: '06163649ad33e5964c5d06f3ab369a1fa0e2fd9cf08d71ca70d0a14da6978420'
5
5
  SHA512:
6
- metadata.gz: 978b7049328f4e775e7d622de15a42737a5e6141c00565282767ea9f637cab8d0ce234feb45adbc184db86b3e4f20a683be1aca895bfd394d8ccc76f9b0d07b6
7
- data.tar.gz: 2ba937fb168cecc740263eab132ff60469261deadddf4b6006ae3f6871d8d2bbc0b91a0adff503bdeb403def7363917fe5a9349e73d4e166433d030d112e8d77
6
+ metadata.gz: 84de0b21346b0bc7d805ee5987e6575eee4e7f2b405dea90454d5f41443b0b9ec80282fad209c26b3dbd63f9d69c18159eae5e65b1aac7f3722adf1685da6358
7
+ data.tar.gz: 52d917bf352a7df54e4993d043a7b9dd1f53e79f4c55456759dc3e850f9d66e30c49fb40cfa90e5b293099a00e03600cbb6ff11e0cc9ed82370a7ee94f4d592e
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.0.1] - 2021-01-05
9
+ ### Fixed
10
+ - Fix require issue when used with Rails 7 [(#42)](https://github.com/ManageIQ/manageiq-loggers/pull/42)
11
+ - Check if the global is defined before trying to use it for Ruby 3 support [(#41)](https://github.com/ManageIQ/manageiq-loggers/pull/41)
12
+
8
13
  ## [1.0.0] - 2021-11-16
9
14
  ### Removed
10
15
  - **BREAKING** Remove support for Ruby 2.4 and 2.5 [(#40)](https://github.com/ManageIQ/manageiq-loggers/pull/40)
@@ -70,8 +75,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
70
75
 
71
76
  ## [0.1.0] - 2019-01-08
72
77
 
73
- [Unreleased]: https://github.com/ManageIQ/manageiq-loggers/compare/v1.0.0...master
74
- [0.8.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.8.0...v1.0.0
78
+ [Unreleased]: https://github.com/ManageIQ/manageiq-loggers/compare/v1.0.1...master
79
+ [1.0.1]: https://github.com/ManageIQ/manageiq-loggers/compare/v1.0.0...v1.0.1
80
+ [1.0.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.8.0...v1.0.0
75
81
  [0.8.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.7.0...v0.8.0
76
82
  [0.7.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.6.0...v0.7.0
77
83
  [0.6.0]: https://github.com/ManageIQ/manageiq-loggers/compare/v0.5.0...v0.6.0
@@ -1,4 +1,5 @@
1
1
  require 'logger'
2
+ require 'active_support'
2
3
  require 'active_support/core_ext/object/try'
3
4
  require 'active_support/core_ext/numeric/bytes'
4
5
  require 'active_support/core_ext/string'
@@ -151,7 +152,7 @@ module ManageIQ
151
152
 
152
153
  def prefix_task_id(msg)
153
154
  # Add task id to the message if a task is currently being worked on.
154
- if (task_id = (Thread.current["tracking_label"] || $_miq_worker_current_msg.try(:task_id)))
155
+ if (task_id = (Thread.current["tracking_label"] || (defined?($_miq_worker_current_msg) && $_miq_worker_current_msg.try(:task_id))))
155
156
  prefix = "Q-task_id([#{task_id}])"
156
157
  msg = "#{prefix} #{msg}" unless msg.include?(prefix)
157
158
  end
@@ -1,3 +1,4 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext/string'
2
3
  require 'active_support/logger'
3
4
 
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Loggers
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-loggers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Authors
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-16 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubygems_version: 3.2.22
172
+ rubygems_version: 3.1.6
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Loggers for ManageIQ projects