ppl 1.17.1 → 1.17.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecd0486206406d56c76fb117e670366c7a9397d6
4
- data.tar.gz: 28772223134972c6b129ad759dcfbcf02d030d7f
3
+ metadata.gz: f013c471444b4ddf23abbcdff7ba445c44dcecd9
4
+ data.tar.gz: 9455d8d1e984d55adb0f4e711309c4e74ea8765d
5
5
  SHA512:
6
- metadata.gz: 1887503ef58bbcd1df760d0fc07e61ae2799e83e29994f7097b690b3a043bf65b1abc5be315a4bbceb84cffd616769f01e16c861bb231f533af53d69a61e736e
7
- data.tar.gz: 45268a4da3b16be35c6cb572f48427a7c9d9f5dd07a820c7d317469e080554f6d2f077e4fcab932f13df863b0cf2e5d02f801b2a412139d4cb3690fd82f2e044
6
+ metadata.gz: 3622e85128d613fd52f9c931ff631f63c77dfca590780d554865f206730b39b88b3168980603b47d257e2ba225d5cf4f62e10688413584cf6bf31b4a1520df90
7
+ data.tar.gz: 3b73edb07693aa19e74ab8066c8a16846a82cb61bda2bbc3585935c7a5b358f35fecccebbf7c6cc2cccfc823bc0a7fc423abdcb7d1fefbf56034354bd7e86ddc
data/lib/ppl.rb CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Ppl
3
3
 
4
- Version = "1.17.1"
4
+ Version = "1.17.2"
5
5
 
6
6
  module Adapter
7
7
  end
@@ -21,7 +21,9 @@ class Ppl::Application::Output
21
21
  private
22
22
 
23
23
  def sanitise(string)
24
- string.delete "\r"
24
+ unless string.nil?
25
+ string.to_s.delete "\r"
26
+ end
25
27
  end
26
28
 
27
29
  end
data/ppl.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  spec.name = "ppl"
5
- spec.version = "1.17.1"
5
+ spec.version = "1.17.2"
6
6
  spec.date = "2013-04-14"
7
7
 
8
8
  spec.required_ruby_version = ">= 1.9.3"
@@ -49,6 +49,12 @@ describe Ppl::Application::Output do
49
49
  @stderr.should_receive(:puts).with("The quick brown fox")
50
50
  @output.error(string)
51
51
  end
52
+
53
+ it "should not sanitise output if nil" do
54
+ string = nil
55
+ @stdout.should_receive(:puts).with(nil)
56
+ @output.line(string)
57
+ end
52
58
  end
53
59
 
54
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ppl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.1
4
+ version: 1.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Smith