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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ae6079821a9d8aeea074790ab1ae354fa3b6554
4
- data.tar.gz: e444d8c35eb98e1156f91c04559bfda77fc063d0
3
+ metadata.gz: 771b5d2922350be347edf3c922bdf1dc4d69d8f1
4
+ data.tar.gz: 726f17ce0e1aa15812d5889b9141c4e40fc65fc5
5
5
  SHA512:
6
- metadata.gz: d3a50baa236a6b1b7feb48bd270cfd676101c1967cda53a2fb6fb2f0857811888393225eb03987e56bd7c4b053b18afaa45225693b1def2a62467763911b1c5a
7
- data.tar.gz: f62ee633295943b1aa944d6da3e87605038977096ad667dc57182dbdeed4db24c68b4f5796303fd8e3db779e698052e3bb9af02f7d2bc871580adb501efd506e
6
+ metadata.gz: 0a65ec3c1bceff1f615e802091960560875657253eff61145a827c3f45add52ceb50fa07159c8d69c96f3d7caee1c596ec6e4f9161f9531bd1fb735c0d528d1c
7
+ data.tar.gz: 07271ff5cf2cbaa72ddac0536b465862d88e647827a8cdb5fb37aacabacc81fc391ade27553cf8116dbe841ff820459edbf9659cbf9eaa5931cfeb170dc2ea1e
data/.travis.yml CHANGED
@@ -9,7 +9,6 @@ rvm:
9
9
  - 2.3.0
10
10
  - 2.3.1
11
11
  - jruby-9.0.0.0
12
- - rbx-2
13
12
 
14
13
  # Ensure we don't build for *every* commit (doesn't apply to PR builds)
15
14
  branches:
@@ -19,7 +19,7 @@ module Macmillan
19
19
  # @return [Formatter] the configured formatter object
20
20
  #
21
21
  def initialize(prefix = nil)
22
- @format = "[%5s]: %s\n"
22
+ @format = '[%5s]: %s'
23
23
  @format = "#{prefix} #{@format}" if prefix
24
24
  end
25
25
 
@@ -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}\n").once
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}\n").once
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\n").once
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.31
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-08-22 00:00:00.000000000 Z
11
+ date: 2016-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler