pry-pipeline 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -57,10 +57,18 @@ end
57
57
 
58
58
  ```
59
59
  $ pry
60
- [1] pry(main)> 'foo' | -> o { o.class }
61
- => String
62
- [1] pry(main)> 'foo' | -> o { puts o }
63
- foo
60
+ [1] pry(main)> 'method' | -> v { "Pry.#{v}" } | '$'
61
+
62
+ From: proc.c (C Method):
63
+ Number of lines: 5
64
+ Owner: Kernel
65
+ Visibility: public
66
+
67
+ VALUE
68
+ rb_obj_method(VALUE obj, VALUE vid)
69
+ {
70
+ return mnew(CLASS_OF(obj), obj, rb_to_id(vid), rb_cMethod, FALSE);
71
+ }
64
72
  => nil
65
73
  ```
66
74
 
@@ -4,7 +4,7 @@ class String
4
4
  def _pipe_(cmd);
5
5
  case cmd
6
6
  when Proc
7
- cmd.call self.to_s
7
+ (cmd.call self.to_s).to_s
8
8
  when String
9
9
  Pry.run_command("#{cmd} #{self}")
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module PryPipeline
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pry-pipeline
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Takatoshi Matsumoto