hedgelog 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +1 -0
- data/lib/hedgelog/context.rb +1 -1
- data/lib/hedgelog/version.rb +1 -1
- data/lib/hedgelog.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2UxODc0MGY2MzJkM2M3ZGNiOTc1NWM0MjM4MWFlMTMwNzM5MjAzOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWRlZTQ2YTdiNzAyZjc1NWM3ZDUxNWE0YjZjYjU3YmYyMzBlZDMyMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2U4MjJhZDQxZTE0MzMwY2M3MDY1MjY1NTU4NTE4ZWVkZjlkZmZmYzQyMmZj
|
10
|
+
Y2M0NmRhNWFlMDdmMmQ0YTg3OTBlNWRiMjExODc0Njk3NzU1YjBiYTJkN2Vk
|
11
|
+
ZDA1MzFhOWY5YmI4N2M1ZTI1NzE1M2IyNjBmNGZlNTE3MjFhN2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDIzN2M1OGJjYTMwNmNkNzc4MWQ5NjM2NWZmMTM5YzI0MjE1ZDFjZDNlYmI1
|
14
|
+
NWYyYjY3NmYyNzkzYmRkYzExMzA3ZDkyN2Y2ZWE1ZjdhZTgxYjQ3NTg5YjEz
|
15
|
+
NzNiNzM5MDZjODZlYmM4Zjk1NThhNWY1MTE3NDQzZWFlNTEyMGM=
|
data/Gemfile
CHANGED
data/lib/hedgelog/context.rb
CHANGED
@@ -58,7 +58,7 @@ class Hedgelog
|
|
58
58
|
|
59
59
|
def check_reserved_keys(hash)
|
60
60
|
invalid_keys = Hedgelog::RESERVED_KEYS & hash.keys
|
61
|
-
raise ::ArgumentError, "#{self.class}: The following keys are reserved and cannot be used #{invalid_keys.to_a}."
|
61
|
+
raise ::ArgumentError, "#{self.class}: The following keys are reserved and cannot be used #{invalid_keys.to_a}." unless invalid_keys.empty?
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
data/lib/hedgelog/version.rb
CHANGED
data/lib/hedgelog.rb
CHANGED
@@ -45,7 +45,7 @@ class Hedgelog
|
|
45
45
|
|
46
46
|
attr_writer :app
|
47
47
|
|
48
|
-
def add(severity = LEVELS[:unknown], message = nil, progname = nil, context, &block)
|
48
|
+
def add(severity = LEVELS[:unknown], message = nil, progname = nil, context = {}, &block)
|
49
49
|
return true if (@logdev.nil? && @channel.nil?) || severity < @level
|
50
50
|
|
51
51
|
message, context = *yield if block
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hedgelog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Utter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yajl-ruby
|