loggability 0.9.0.pre.73 → 0.9.0
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -1
- data/History.rdoc +11 -0
- data/Rakefile +1 -1
- data/lib/loggability.rb +2 -2
- data/spec/loggability/logger_spec.rb +1 -1
- data/spec/loggability/override_spec.rb +6 -6
- data/spec/loggability_spec.rb +10 -10
- metadata +8 -8
- 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: 1497b6514a93d2e6fefc3fb1c540203cf8373a2c
|
4
|
+
data.tar.gz: 60995f4e004948547422d1be31fd7a889b9dda6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c6fbe16b601fd5f7aaeee05bac34661d50b705427153a9b63dc2b741d95a62b7cb40e360478f858b1fe7f33af5a559ccd44a046aef5467083535a64e0857170
|
7
|
+
data.tar.gz: 207e8f1fd7e7cd3442d67851532c272cc2f64f84e3aa3f8ee315f443ed471fa2b664b71b84a397941527a44c52612d99bbb0da5479ced87e2d983660f57b7368
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
v��/�P�oXP�YxK��\�w��ↅF_3�����0�pnC�&�L��Pn8�e��ۆ!�!�
|
2
|
+
۫����V�Hz��{�Vch�)�f���@�4|z����,��6����^�\�b��"F�kSb��;\s�gԁGXq����F��Ǫ�߯�� ����7< sd^:Z.�.kOv'�T�,�5�6j�!H|\<�U80��xfӲ�����ߡa�+4Xjw�����ޯ3����
|
3
|
+
@D����
|
data/History.rdoc
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
== v0.9.0 [2014-01-08] Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
Make the spechelpers a little more intelligent.
|
4
|
+
|
5
|
+
- You no longer need to do setup_logging/reset_logging in a
|
6
|
+
before(:all)/after(:all) block; that's done for you.
|
7
|
+
- You can now override the logging level for any example group by
|
8
|
+
adding 'logging' or 'log' metadata.
|
9
|
+
- Fixed some documentation, added docs for the spec helpers.
|
10
|
+
|
11
|
+
|
1
12
|
== v0.8.1 [2013-10-09] Michael Granger <ged@FaerieMUD.org>
|
2
13
|
|
3
14
|
- Fix the problem with blocks not being called in chained overrides.
|
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ hoespec = Hoe.spec 'loggability' do
|
|
22
22
|
|
23
23
|
self.developer 'Michael Granger', 'ged@FaerieMUD.org'
|
24
24
|
|
25
|
-
self.dependency 'hoe-deveiate', '~> 0.
|
25
|
+
self.dependency 'hoe-deveiate', '~> 0.4', :developer
|
26
26
|
self.dependency 'hoe-bundler', '~> 1.2', :developer
|
27
27
|
self.dependency 'simplecov', '~> 0.7', :developer
|
28
28
|
self.dependency 'configurability', '~> 2.0', :developer
|
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.9.0
|
12
|
+
VERSION = '0.9.0'
|
13
13
|
|
14
14
|
# VCS revision
|
15
|
-
REVISION = %q$Revision:
|
15
|
+
REVISION = %q$Revision: 469cf788e750 $
|
16
16
|
|
17
17
|
# The key for the global logger (Loggability's own logger)
|
18
18
|
GLOBAL_KEY = :__global__
|
@@ -154,7 +154,7 @@ describe Loggability::Logger do
|
|
154
154
|
expect( @logger.logdev ).to be_a( Loggability::Logger::AppendingLogDevice )
|
155
155
|
@logger.level = :debug
|
156
156
|
@logger.info( "Something happened." )
|
157
|
-
expect( logmessages ).to
|
157
|
+
expect( logmessages.size ).to eq( 1 )
|
158
158
|
expect( logmessages.first ).to match( /something happened/i )
|
159
159
|
end
|
160
160
|
|
@@ -55,7 +55,7 @@ describe Loggability::Override do
|
|
55
55
|
end
|
56
56
|
loghost.logger.debug "This shouldn't either."
|
57
57
|
|
58
|
-
expect( log ).to
|
58
|
+
expect( log.size ).to eq( 1 )
|
59
59
|
end
|
60
60
|
|
61
61
|
|
@@ -80,8 +80,8 @@ describe Loggability::Override do
|
|
80
80
|
end
|
81
81
|
loghost.logger.debug "This should be output to the original destination"
|
82
82
|
|
83
|
-
expect( original_destination ).to
|
84
|
-
expect( new_destination ).to
|
83
|
+
expect( original_destination.size ).to eq( 2 )
|
84
|
+
expect( new_destination.size ).to eq( 1 )
|
85
85
|
end
|
86
86
|
|
87
87
|
|
@@ -108,8 +108,8 @@ describe Loggability::Override do
|
|
108
108
|
|
109
109
|
html_log = log.grep( /<div/ )
|
110
110
|
|
111
|
-
expect( log ).to
|
112
|
-
expect( html_log ).to
|
111
|
+
expect( log.size ).to eq( 3 )
|
112
|
+
expect( html_log.size ).to eq( 1 )
|
113
113
|
end
|
114
114
|
|
115
115
|
|
@@ -142,7 +142,7 @@ describe Loggability::Override do
|
|
142
142
|
|
143
143
|
|
144
144
|
expect( result ).to eq( :did_it )
|
145
|
-
expect( log ).to
|
145
|
+
expect( log.size ).to eq( 1 )
|
146
146
|
expect( log.first ).to match( /Doing it!/ )
|
147
147
|
end
|
148
148
|
|
data/spec/loggability_spec.rb
CHANGED
@@ -178,8 +178,8 @@ describe Loggability do
|
|
178
178
|
end
|
179
179
|
Loggability[ @loghost ].info "After the override"
|
180
180
|
|
181
|
-
expect( @default_output ).to
|
182
|
-
expect( tmp_output ).to
|
181
|
+
expect( @default_output.size ).to eq( 2 )
|
182
|
+
expect( tmp_output.size ).to eq( 1 )
|
183
183
|
end
|
184
184
|
|
185
185
|
|
@@ -197,8 +197,8 @@ describe Loggability do
|
|
197
197
|
end
|
198
198
|
Loggability[ @loghost ].info "After the overrides"
|
199
199
|
|
200
|
-
expect( @default_output ).to
|
201
|
-
expect( tmp_output ).to
|
200
|
+
expect( @default_output.size ).to eq( 3 )
|
201
|
+
expect( tmp_output.size ).to eq( 2 )
|
202
202
|
end
|
203
203
|
|
204
204
|
|
@@ -209,7 +209,7 @@ describe Loggability do
|
|
209
209
|
end
|
210
210
|
Loggability[ @loghost ].debug "After the override"
|
211
211
|
|
212
|
-
expect( @default_output ).to
|
212
|
+
expect( @default_output.size ).to eq( 1 )
|
213
213
|
end
|
214
214
|
|
215
215
|
|
@@ -226,7 +226,7 @@ describe Loggability do
|
|
226
226
|
end
|
227
227
|
Loggability[ @loghost ].debug "After the overrides"
|
228
228
|
|
229
|
-
expect( @default_output ).to
|
229
|
+
expect( @default_output.size ).to eq( 2 )
|
230
230
|
end
|
231
231
|
|
232
232
|
|
@@ -237,8 +237,8 @@ describe Loggability do
|
|
237
237
|
end
|
238
238
|
Loggability[ @loghost ].info "After the override"
|
239
239
|
|
240
|
-
expect( @default_output ).to
|
241
|
-
expect( @default_output.grep(/<div/) ).to
|
240
|
+
expect( @default_output.size ).to eq( 3 )
|
241
|
+
expect( @default_output.grep(/<div/).size ).to eq( 1 )
|
242
242
|
end
|
243
243
|
|
244
244
|
|
@@ -255,8 +255,8 @@ describe Loggability do
|
|
255
255
|
end
|
256
256
|
Loggability[ @loghost ].info "After the overrides"
|
257
257
|
|
258
|
-
expect( @default_output ).to
|
259
|
-
expect( @default_output.grep(/<div/) ).to
|
258
|
+
expect( @default_output.size ).to eq( 5 )
|
259
|
+
expect( @default_output.grep(/<div/).size ).to eq( 2 )
|
260
260
|
end
|
261
261
|
|
262
262
|
|
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.9.0
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
6mKCwjpegytE0oifXfF8k75A9105cBnNiMZOe1tXiqYc/exCgWvbggurzDOcRkZu
|
31
31
|
/YSusaiDXHKU2O3Akc3htA==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: hoe-mercurial
|
@@ -80,14 +80,14 @@ dependencies:
|
|
80
80
|
requirements:
|
81
81
|
- - ~>
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '0.
|
83
|
+
version: '0.4'
|
84
84
|
type: :development
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - ~>
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '0.
|
90
|
+
version: '0.4'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: hoe-bundler
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,6 +165,7 @@ extra_rdoc_files:
|
|
165
165
|
- Manifest.txt
|
166
166
|
- README.rdoc
|
167
167
|
files:
|
168
|
+
- .gemtest
|
168
169
|
- ChangeLog
|
169
170
|
- History.rdoc
|
170
171
|
- Manifest.txt
|
@@ -189,7 +190,6 @@ files:
|
|
189
190
|
- spec/loggability/override_spec.rb
|
190
191
|
- spec/loggability/spechelpers_spec.rb
|
191
192
|
- spec/loggability_spec.rb
|
192
|
-
- .gemtest
|
193
193
|
homepage: http://deveiate.org/projects/loggability
|
194
194
|
licenses:
|
195
195
|
- Ruby
|
@@ -207,12 +207,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: 1.9.3
|
208
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
209
|
requirements:
|
210
|
-
- - '
|
210
|
+
- - '>='
|
211
211
|
- !ruby/object:Gem::Version
|
212
|
-
version:
|
212
|
+
version: '0'
|
213
213
|
requirements: []
|
214
214
|
rubyforge_project: loggability
|
215
|
-
rubygems_version: 2.1
|
215
|
+
rubygems_version: 2.2.1
|
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
|