sapience 0.2.14 → 0.2.15

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
  SHA1:
3
- metadata.gz: afdfda408cd1c09884406ac7ed3f6d432a8cd082
4
- data.tar.gz: 8580864e1662d94e208d3b6ae9fdf45efc675359
3
+ metadata.gz: 5a3c771abd2e88f511482cca40e22316546ac350
4
+ data.tar.gz: 4824530441051a9ff6a0d7022c3a20d2d9b73bb1
5
5
  SHA512:
6
- metadata.gz: 161fbf7132739364aa04ecaa7a5334a8686e53aa0883ed90c03a291bea9985ab6265697a0b0f294a423762d668e711bf486f042b33e60e64cad18d4201cac911
7
- data.tar.gz: 0952e34328a0f224ced2262b1567dc4794d1ef4e12b371749c56718d800d713bfb0d664ad5fd7e0d56f2ca8efa39e2571f7b459e5f2e2e19b3df68cef0124804
6
+ metadata.gz: d7184df137b7d097a8cca5e4b6950853ca85767a976d77c17d9d18749cf0864a04abaa10511cfad37cf4b3239bc5007d5222e76d66d49055c5be88e2737e2707
7
+ data.tar.gz: 0ab885e9083eac441c5d56be9bf2a01597bf9a39c1ed12792df319498d301dddca66058d9836becf499620101238c6ae16a1c556b57ef139945ae07b3f580909
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.15
2
+
3
+ - Fix issue with not resetting previously attached appenders when calling `Sapience.configure`.
4
+
1
5
  ## v0.2.14
2
6
 
3
7
  - Reduce noise for assets:precompile by changing default Railtie log level to :warn instead of :debug
@@ -4,7 +4,7 @@ module Sapience
4
4
  module Rails
5
5
  class Railtie < ::Rails::Railtie
6
6
  config.before_configuration do
7
- Sapience.add_appender(:stream, io: STDOUT, level: :warn, formatter: :color)
7
+ Sapience.add_appender(:stream, io: STDOUT, level: :warn, formatter: :color) if Sapience.appenders.empty?
8
8
  ::Rails.logger = Sapience[::Rails]
9
9
  end
10
10
  end
@@ -21,7 +21,7 @@ require "English"
21
21
  # rubocop:disable ClassVars
22
22
  module Sapience
23
23
  UnknownClass = Class.new(NameError)
24
- @@configured = nil
24
+ @@configured = false
25
25
 
26
26
  # Logging levels in order of most detailed to most severe
27
27
  LEVELS = [:trace, :debug, :info, :warn, :error, :fatal].freeze
@@ -52,7 +52,7 @@ module Sapience
52
52
  @@config = nil
53
53
  @@logger = nil
54
54
  @@metrix = nil
55
- @@configured = nil
55
+ @@configured = false
56
56
  clear_tags!
57
57
  reset_appenders!
58
58
  end
@@ -79,6 +79,7 @@ module Sapience
79
79
  def self.configure(force: false)
80
80
  yield config if block_given?
81
81
  return config if configured? && force == false
82
+ reset_appenders!
82
83
  add_appenders(*config.appenders)
83
84
  @@configured = true
84
85
 
@@ -1,3 +1,3 @@
1
1
  module Sapience
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- sapience (0.2.13)
4
+ sapience (0.2.14)
5
5
  concurrent-ruby (~> 1.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- sapience (0.2.13)
4
+ sapience (0.2.14)
5
5
  concurrent-ruby (~> 1.0)
6
6
 
7
7
  GEM
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapience
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson