sane 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/sane/pp.rb +9 -0
  3. data/spec/spec.sane.rb +4 -0
  4. metadata +3 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.18.0
1
+ 0.19.0
data/lib/sane/pp.rb ADDED
@@ -0,0 +1,9 @@
1
+ # stolen from pp.rb
2
+ # load 'pp' library on demand
3
+ module Kernel
4
+ private
5
+ def pp(*objs) # :doc:
6
+ require 'pp'
7
+ pp *objs # use the new method
8
+ end
9
+ end
data/spec/spec.sane.rb CHANGED
@@ -117,5 +117,9 @@ describe Sane do
117
117
  it "should have File.filename" do
118
118
  File.filename("abc/ext.xt").should == "ext.xt"
119
119
  end
120
+
121
+ it "should have an auto-loading pp method" do
122
+ pp 1,2,3
123
+ end
120
124
 
121
125
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-08 00:00:00 -07:00
12
+ date: 2010-01-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -73,6 +73,7 @@ files:
73
73
  - lib/sane/hash_hashes.rb
74
74
  - lib/sane/hash_minus_hash.rb
75
75
  - lib/sane/irb_startup_options.rb
76
+ - lib/sane/pp.rb
76
77
  - lib/sane/pps.rb
77
78
  - lib/sane/sane_random.rb
78
79
  - lib/sane/string_blank.rb