cogger 0.0.0 → 0.0.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/README.adoc +5 -5
- data/cogger.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 549f70dc2a1efc438bfec3d9c565033d67aa9bb9ed7c67b1d846821f40a43755
|
4
|
+
data.tar.gz: 7c69238e1957399e8c921705a08633d42b6a9a49749df4e54af92652d18c988f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9da91778d1781177eb34752785d1fcad0884af4f903d14ae240965b0133828a20db0de2cbff35bebca1fed164f073a1f6490b3c2f1b4af264a9de17a199823ba
|
7
|
+
data.tar.gz: 119a4f3088262ff8e1d82e9a6c0d5d03dcc434742eb5d850ebde50dc199d1e9c125efbd15314396ae2a594c487d713336ce528b567c57c90725a9e14d2c0e589
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -117,7 +117,7 @@ logger = Cogger::Client.new do |instance|
|
|
117
117
|
end
|
118
118
|
----
|
119
119
|
|
120
|
-
====
|
120
|
+
==== Environment
|
121
121
|
|
122
122
|
The default log level is `INFO` but can be customized via your environment. For instance, you could
|
123
123
|
set the logging level to any of the following:
|
@@ -184,7 +184,7 @@ was logged. Example:
|
|
184
184
|
[source,ruby]
|
185
185
|
----
|
186
186
|
class Demo
|
187
|
-
def initialize logger: Cogger::
|
187
|
+
def initialize logger: Cogger::Client.new
|
188
188
|
@logger = logger
|
189
189
|
end
|
190
190
|
|
@@ -198,12 +198,12 @@ end
|
|
198
198
|
RSpec.describe Demo do
|
199
199
|
subject(:demo) { described_class.new logger: }
|
200
200
|
|
201
|
-
let(:logger) { Cogger::
|
201
|
+
let(:logger) { Cogger::Client.new Logger.new(StringIO.new) }
|
202
202
|
|
203
203
|
describe "#say" do
|
204
204
|
it "logs text" do
|
205
|
-
demo.say "
|
206
|
-
expect(logger.reread).to include("
|
205
|
+
demo.say "test"
|
206
|
+
expect(logger.reread).to include("test")
|
207
207
|
end
|
208
208
|
end
|
209
209
|
end
|
data/cogger.gemspec
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cogger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-04-
|
31
|
+
date: 2022-04-09 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pastel
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
|
-
rubygems_version: 3.3.
|
103
|
+
rubygems_version: 3.3.11
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Decorates native logging with colorized output.
|
metadata.gz.sig
CHANGED
Binary file
|