loggability 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +6 -0
- data/lib/loggability.rb +5 -3
- data/spec/loggability_spec.rb +5 -0
- data.tar.gz.sig +0 -0
- metadata +12 -12
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a7480c801b3343da84c0f66665a782bf058c9fe
|
4
|
+
data.tar.gz: 0762156f1674e35adc1b4bc79e12b9226fbc62a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18801ec28bdef48b7b715ab735bf73bd606e7bd282702e137f72dd1240185a0c53e18d5374b3673b1275d2e3477ea61103d05eaccc6034513b6dc5d4adb499e8
|
7
|
+
data.tar.gz: 28438c4dd6ac7130f17a6adb3888dafa333b7e369c53f9a7dca9af33b1033bd856367d8529f0cfacede39023a9fdd83eb774640eff74d5e69eb64e516b37cd05
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== v0.10.1 [2014-03-24] Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
Bugfix: Raise an exception when something attempts to use a non-existant
|
4
|
+
log host.
|
5
|
+
|
6
|
+
|
1
7
|
== v0.10.0 [2014-02-04] Michael Granger <ged@FaerieMUD.org>
|
2
8
|
|
3
9
|
Add a #write method to Loggability::Logger for Rack::CommonLogger
|
data/lib/loggability.rb
CHANGED
@@ -9,10 +9,10 @@ require 'date'
|
|
9
9
|
module Loggability
|
10
10
|
|
11
11
|
# Package version constant
|
12
|
-
VERSION = '0.10.
|
12
|
+
VERSION = '0.10.1'
|
13
13
|
|
14
14
|
# VCS revision
|
15
|
-
REVISION = %q$Revision:
|
15
|
+
REVISION = %q$Revision: 24fd8762623d $
|
16
16
|
|
17
17
|
# The key for the global logger (Loggability's own logger)
|
18
18
|
GLOBAL_KEY = :__global__
|
@@ -112,7 +112,9 @@ module Loggability
|
|
112
112
|
key = self.log_host_key_for( logclient )
|
113
113
|
key ||= GLOBAL_KEY
|
114
114
|
|
115
|
-
|
115
|
+
loghost = self.log_hosts[ key ] or
|
116
|
+
raise ArgumentError, "no log host set up for %p yet." % [ key ]
|
117
|
+
return loghost.logger
|
116
118
|
end
|
117
119
|
|
118
120
|
|
data/spec/loggability_spec.rb
CHANGED
@@ -130,6 +130,11 @@ describe Loggability do
|
|
130
130
|
expect( Loggability[subclass] ).to be( @loghost.logger )
|
131
131
|
end
|
132
132
|
|
133
|
+
it "raises an exception if asked for a log host that hasn't yet been declared" do
|
134
|
+
logged_class = Class.new { extend Loggability; log_to :the_void }
|
135
|
+
expect { logged_class.log.logger }.to raise_error( ArgumentError, /no log host/i )
|
136
|
+
end
|
137
|
+
|
133
138
|
end
|
134
139
|
|
135
140
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loggability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -12,7 +12,7 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
|
14
14
|
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
15
|
-
|
15
|
+
HhcNMTQwMzE5MDQzNTI2WhcNMTUwMzE5MDQzNTI2WjA+MQwwCgYDVQQDDANnZWQx
|
16
16
|
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
17
17
|
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDb92mkyYwuGBg1oRxt2tkH
|
18
18
|
+Uo3LAsaL/APBfSLzy8o3+B3AUHKCjMUaVeBoZdWtMHB75X3VQlvXfZMyBxj59Vo
|
@@ -23,14 +23,14 @@ cert_chain:
|
|
23
23
|
AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSZ0hCV
|
24
24
|
qoHr122fGKelqffzEQBhszAcBgNVHREEFTATgRFnZWRARmFlcmllTVVELm9yZzAc
|
25
25
|
BgNVHRIEFTATgRFnZWRARmFlcmllTVVELm9yZzANBgkqhkiG9w0BAQUFAAOCAQEA
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
TuL1Bzl6TBs1YEzEubFHb9XAPgehWzzUudjDKzTRd+uyZmxnomBqTCQjT5ucNRph
|
27
|
+
3jZ6bhLNooLQxTjIuHodeGcEMHZdt4Yi7SyPmw5Nry12z6wrDp+5aGps3HsE5WsQ
|
28
|
+
Zq2EuyEOc96g31uoIvjNdieKs+1kE+K+dJDjtw+wTH2i63P7r6N/NfPPXpxsFquo
|
29
|
+
wcYRRrHdR7GhdJeT+V8Q8Bi5bglCUGdx+8scMgkkePc98k9osQHypbACmzO+Bqkv
|
30
|
+
c7ZKPJcWBv0sm81+FCZXNACn2f9jfF8OQinxVs0O052KbGuEQaaiGIYeuuwQE2q6
|
31
|
+
ggcrPfcYeTwWlfZPu2LrBg==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-
|
33
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: hoe-mercurial
|
@@ -136,14 +136,14 @@ dependencies:
|
|
136
136
|
requirements:
|
137
137
|
- - ~>
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '3.
|
139
|
+
version: '3.9'
|
140
140
|
type: :development
|
141
141
|
prerelease: false
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - ~>
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '3.
|
146
|
+
version: '3.9'
|
147
147
|
description: "A composable logging system built on the standard Logger library.\n\nYou
|
148
148
|
can add Loggability to large libraries and systems, then hook everything\nup later
|
149
149
|
when you know where you want logs to be written, at what level of\nseverity, and
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
214
|
rubyforge_project: loggability
|
215
|
-
rubygems_version: 2.2.
|
215
|
+
rubygems_version: 2.2.2
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: A composable logging system built on the standard Logger library
|
metadata.gz.sig
CHANGED
Binary file
|