ezlog 0.5.0 → 0.5.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: 6954ed2d852dfdb1c6c0f61674fc8e7a93f5886ff7ad419d6ad389ca64cee50a
4
- data.tar.gz: 3fcf6b956d3fa834e08b22136b18004db4fb87efc7db04e709ff200fb5d5943f
3
+ metadata.gz: ad2b6dbcdd9a5f406ef62d7fb236b533f08b6b618ee471545838da63d9feaf45
4
+ data.tar.gz: 3f731ee481f1d4a05ec02a4276a6e787c2f0c11110255021a2b2187c17a21938
5
5
  SHA512:
6
- metadata.gz: 01701da962f2d69c5128d91aa64680c2e391fbae3280e290902c392323b9a57e8683f734def0257b975547f4f06d983817fd139b1ae8c8a807fcbff924f91a04
7
- data.tar.gz: 8f477d3320f1509b75cc8ff31a085e3fbaee01da9b4bacdad3c563689ff5b060d0e6d06676d8315f3eb7472ed992f966b45d443d63444a50f04f69d7c90d40c9
6
+ metadata.gz: 5702219d4387e9a628b83391b7f2f6a66b42413314969e48f60016e445d8a1ab328acaaca687f78452f67f92ebeadebf9d4b7951e3dc137b881ecd4f521a9404
7
+ data.tar.gz: d2f5e226bff51fa7d821f238b7633c3ba9fa0e328423576b854b26e0405bbc54ab6bdbfdd9dfc63214d8aaf443ee9fed79f99dd2c36e07e7cbf46ed42d191a59
@@ -1,3 +1,11 @@
1
+ ### 0.5.1 (2019-09-16)
2
+
3
+ [Full Changelog](https://github.com/emartech/ezlog/compare/v0.5.0...v0.5.1)
4
+
5
+ * Bug fixes
6
+ * Projects that don't use ActiveRecord can still use Ezlog. The previous version tried to replace ActiveRecord's
7
+ log subscriber even when ActiveRecord wasn't used and thus halted the initialization process.
8
+
1
9
  ### 0.5.0 (2019-09-11)
2
10
 
3
11
  [Full Changelog](https://github.com/emartech/ezlog/compare/v0.4.0...v0.5.0)
@@ -31,8 +31,10 @@ module Ezlog
31
31
  config.after_initialize do
32
32
  Ezlog::Rails::LogSubscriber.detach ::ActionController::LogSubscriber
33
33
  Ezlog::Rails::LogSubscriber.detach ::ActionView::LogSubscriber
34
- Ezlog::Rails::LogSubscriber.detach ::ActiveRecord::LogSubscriber
35
- Ezlog::Rails::LogSubscriber.attach Ezlog::Rails::ActiveRecord::LogSubscriber, :active_record
34
+ if defined? ::ActiveRecord
35
+ Ezlog::Rails::LogSubscriber.detach ::ActiveRecord::LogSubscriber
36
+ Ezlog::Rails::LogSubscriber.attach Ezlog::Rails::ActiveRecord::LogSubscriber, :active_record
37
+ end
36
38
  end
37
39
 
38
40
  config.before_configuration do |app|
@@ -1,3 +1,3 @@
1
1
  module Ezlog
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoltan Ormandi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-11 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 3.0.3
184
+ rubygems_version: 3.0.1
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: A zero-configuration logging solution for projects using Sidekiq, Rails,