loggability 0.12.0.pre20161214121603 → 0.12.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 +0 -0
- data/Manifest.txt +1 -0
- data/lib/loggability.rb +1 -1
- data/spec/loggability/loghost_spec.rb +23 -0
- metadata +5 -4
- 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: dd51d8a4cfbff47781f351f3f50b808f44c02434
|
4
|
+
data.tar.gz: 92a4e5a92182c16a0ca50c15b594063491934330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8864cd2db0a9b3fa25fe921b18684e11bdb27c343f8591075ae4c10952d20fa0f110d736964734f57f28324191a286ce0d9236313af0bc61409f233cc12aaa54
|
7
|
+
data.tar.gz: 8669e87c4d19d9591bba20fedcb1f767e3b09c655b8a00083cb422e768e10588f39ec1a2461f18f5066680997a1ce5032db77bc8c1beb9d2366681be41775a22
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/Manifest.txt
CHANGED
@@ -20,6 +20,7 @@ spec/loggability/formatter/color_spec.rb
|
|
20
20
|
spec/loggability/formatter/html_spec.rb
|
21
21
|
spec/loggability/formatter_spec.rb
|
22
22
|
spec/loggability/logger_spec.rb
|
23
|
+
spec/loggability/loghost_spec.rb
|
23
24
|
spec/loggability/override_spec.rb
|
24
25
|
spec/loggability/spechelpers_spec.rb
|
25
26
|
spec/loggability_spec.rb
|
data/lib/loggability.rb
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env rspec -cfd
|
2
|
+
|
3
|
+
require_relative '../helpers'
|
4
|
+
|
5
|
+
require 'loggability/loghost'
|
6
|
+
|
7
|
+
|
8
|
+
describe Loggability::LogHost do
|
9
|
+
|
10
|
+
|
11
|
+
let( :class_with_loggability ) do
|
12
|
+
Class.new { extend Loggability; log_as :loghost_specs }
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
it "makes subclasses log clients of itself" do
|
17
|
+
subclass = Class.new( class_with_loggability )
|
18
|
+
expect( subclass.log ).to be_a( Loggability::Logger::ObjectNameProxy )
|
19
|
+
expect( subclass.log.logger ).to eq( class_with_loggability.logger )
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
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.12.0
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
|
36
36
|
p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2016-12-
|
38
|
+
date: 2016-12-28 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: hoe-mercurial
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- spec/loggability/formatter/html_spec.rb
|
193
193
|
- spec/loggability/formatter_spec.rb
|
194
194
|
- spec/loggability/logger_spec.rb
|
195
|
+
- spec/loggability/loghost_spec.rb
|
195
196
|
- spec/loggability/override_spec.rb
|
196
197
|
- spec/loggability/spechelpers_spec.rb
|
197
198
|
- spec/loggability_spec.rb
|
@@ -212,9 +213,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
213
|
version: 1.9.3
|
213
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
215
|
requirements:
|
215
|
-
- - "
|
216
|
+
- - ">="
|
216
217
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
218
|
+
version: '0'
|
218
219
|
requirements: []
|
219
220
|
rubyforge_project:
|
220
221
|
rubygems_version: 2.6.8
|
metadata.gz.sig
ADDED
Binary file
|