paul_bunyan 1.2.2 → 1.2.3

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: a6263a939de2fd379b135f4fdf1b9d6cd295c95b
4
- data.tar.gz: c7e63a3581b9626904fd65e8052a0feeafbc229e
3
+ metadata.gz: 56f9035eeff5fe301e6f14ee5ed3df1c07d93cf2
4
+ data.tar.gz: 1740d2847bcc3542ef0ff9cd37ee3da20dd8b760
5
5
  SHA512:
6
- metadata.gz: 7c40e3d0c47deaa3f4d4df4ba99d85da638ac9e026988805a046eb2fda412b7d4fca32bf16fec21c990b335a2c7f7820ea97b0805f0614b20f78625791ad9481
7
- data.tar.gz: 064218e15d2cfb50ea42f78923d99af821f18c2d062b076a325b41f4f9d538718626baae537e4f215c9f47902129cc75c6100475c0fd918275988843865a015f
6
+ metadata.gz: 80e44079fd27a47a525d93beef40fd4044fddee54997e13beccaeffb9f77fc460e7ab48e4c0306a3204adc5d83557356739a66dfdca13adb04bdaa9bfb8f8226
7
+ data.tar.gz: 42cd5cc00964a7cf513ba0442b672ab938e71972772a48c2d5c5dd4940d974173998afa5b3158eaddb8be74f2ffbcbc1b04985079633aac1850d45e1a3d599c9
@@ -80,7 +80,7 @@ module PaulBunyan
80
80
  end
81
81
 
82
82
  def format_string(message)
83
- { "message" => PaulBunyan.strip_ansi(message.strip) }
83
+ { "message" => PaulBunyan.strip_ansi(message) }
84
84
  end
85
85
 
86
86
  def format_generic_object(object)
@@ -1,3 +1,3 @@
1
1
  module PaulBunyan
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
3
3
  end
@@ -63,18 +63,6 @@ module PaulBunyan
63
63
  expect(object['message']).to eq 'This is my message, there are many like it.'
64
64
  end
65
65
 
66
- it 'must remove leading whitespace' do
67
- output = formatter.call('', time, '', ' this message has leading spaces')
68
- object = JSON.parse(output)
69
- expect(object['message']).to eq 'this message has leading spaces'
70
- end
71
-
72
- it 'must remove trailing whitespace' do
73
- output = formatter.call('', time, '', 'this message has trailing spaces ')
74
- object = JSON.parse(output)
75
- expect(object['message']).to eq 'this message has trailing spaces'
76
- end
77
-
78
66
  it 'must remove ANSI color codes' do
79
67
  output = formatter.call('', time, '', "\e[36;46mcolored message!")
80
68
  object = JSON.parse(output)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paul_bunyan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Johnson