rf_logger 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/rf_logger/notifications/error_notification.rb +2 -2
- data/lib/rf_logger/sequel_logger.rb +2 -2
- data/lib/rf_logger/version.rb +1 -1
- data/rf_logger.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjNhYTQ2MGY4ZGU0MTVhOGU2ODdhM2IwMmU1MGVmMWNlZWM5MGYyYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTNhNDcxZmQ0MWUxODE1MjdlYTFmZGFlMzhkOTI1MmEzYjI3ZTk5MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2Y1ZjNmODBmM2JkY2EzODU4NGE4ZTcyZWZhOTVlOGUxN2MwNTQ5OGE0OTli
|
10
|
+
OWNiN2RiZWJlZGQzNzFjNjkzOWMwZDg1NjhjODAwYTNmOWFmNDk5MGY3NTEw
|
11
|
+
OTYxZDI2YTA4YWNmNjQ5NWMyMzFiNGE3OWY5YWIyOGU3MjNmYzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzUxZGJkYTdkMjQzMTkxZWU5NDFmZmYyZmVkOTI3ZWM3NWJiODZjMzM0N2I2
|
14
|
+
YWViNzgzMGQ0MzFiMTA1OTNkMDE2ZWM5ZDJhOGEzMGUyNGQyZjdhZWRiMmU2
|
15
|
+
YzVkOGViNWNhNjkyMmRmYWNlNDIxNjUyZTU2N2FhMDk3MDA0YTQ=
|
@@ -8,7 +8,7 @@ module RfLogger
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def notifiers
|
11
|
-
|
11
|
+
@notifiers ||= Hash[RfLogger::LEVELS.map { |level| [level, []] }]
|
12
12
|
end
|
13
13
|
|
14
14
|
def add_notifier notifier, constraints={}
|
@@ -30,7 +30,7 @@ module RfLogger
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def reset!
|
33
|
-
|
33
|
+
@notifiers = nil; notifiers
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'json'
|
2
2
|
module RfLogger
|
3
|
-
class SequelLogger < Sequel::Model
|
3
|
+
class SequelLogger < Sequel::Model(DB.fetch('select 1'))
|
4
4
|
class << self
|
5
5
|
def inherited(subclass)
|
6
|
-
subclass.set_dataset underscore(demodulize(subclass.name.pluralize)).to_sym
|
7
6
|
super
|
7
|
+
subclass.set_dataset underscore(demodulize(subclass.name.pluralize)).to_sym
|
8
8
|
end
|
9
9
|
|
10
10
|
RfLogger::LEVELS.each do |level|
|
data/lib/rf_logger/version.rb
CHANGED
data/rf_logger.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'rf_logger/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'rf_logger'
|
8
|
-
s.version = '0.0.
|
8
|
+
s.version = '0.0.4'
|
9
9
|
s.date = '2014-02-20'
|
10
10
|
s.summary = "A logger that adheres to Renewable Funding logging conventions"
|
11
11
|
s.description = "A logger that allows specification of severity, applicable entity/records, metadata, and optional notifications"
|