macmillan-utils 1.0.31 → 1.0.32
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
- data/.travis.yml +0 -1
- data/lib/macmillan/utils/logger/formatter.rb +1 -1
- data/spec/lib/macmillan/utils/logger/formatter_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 771b5d2922350be347edf3c922bdf1dc4d69d8f1
|
4
|
+
data.tar.gz: 726f17ce0e1aa15812d5889b9141c4e40fc65fc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a65ec3c1bceff1f615e802091960560875657253eff61145a827c3f45add52ceb50fa07159c8d69c96f3d7caee1c596ec6e4f9161f9531bd1fb735c0d528d1c
|
7
|
+
data.tar.gz: 07271ff5cf2cbaa72ddac0536b465862d88e647827a8cdb5fb37aacabacc81fc391ade27553cf8116dbe841ff820459edbf9659cbf9eaa5931cfeb170dc2ea1e
|
data/.travis.yml
CHANGED
@@ -24,14 +24,14 @@ describe Macmillan::Utils::Logger::Formatter do
|
|
24
24
|
let(:prefix) { 'WEEEE' }
|
25
25
|
|
26
26
|
it 'is put in front of the log message' do
|
27
|
-
expect(target).to receive(:write).with("#{prefix} [ INFO]: #{msg}
|
27
|
+
expect(target).to receive(:write).with("#{prefix} [ INFO]: #{msg}").once
|
28
28
|
logger.info msg
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
context 'when the log message is a string' do
|
33
33
|
it 'returns the string' do
|
34
|
-
expect(target).to receive(:write).with("[ INFO]: #{msg}
|
34
|
+
expect(target).to receive(:write).with("[ INFO]: #{msg}").once
|
35
35
|
logger.info msg
|
36
36
|
end
|
37
37
|
end
|
@@ -40,7 +40,7 @@ describe Macmillan::Utils::Logger::Formatter do
|
|
40
40
|
it 'returns full details of the exception' do
|
41
41
|
ex = StandardError.new('qwerty')
|
42
42
|
allow(ex).to receive(:backtrace).and_return(%w(foo bar baz quux))
|
43
|
-
expect(target).to receive(:write).with("[ INFO]: qwerty (StandardError)\nfoo\nbar\nbaz\nquux
|
43
|
+
expect(target).to receive(:write).with("[ INFO]: qwerty (StandardError)\nfoo\nbar\nbaz\nquux").once
|
44
44
|
logger.info ex
|
45
45
|
end
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: macmillan-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Springer Nature
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|