pipe_chain 1.0.1 → 1.0.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: bd5bba499278934eed36d2f01c74aea1d0afb4ff
4
- data.tar.gz: fd2c9759f816e3941ccbbebd71f114bef0f8c966
3
+ metadata.gz: 9be45d8d9fec2b64c9fec468892c1d910f764ed5
4
+ data.tar.gz: 7aada61b7dc024a11678aaf453932760fdbf979f
5
5
  SHA512:
6
- metadata.gz: a8f8fe6fe93e13c9794fc10276dce8d1ec824e9ba2815d723e7c0fccdb19a87501527595474ac4f189e57ebc0e8de2ee8d7283597a294aef67ec09f91244396e
7
- data.tar.gz: 9726cca9b5c2832c5e4fe1e05810220dfe061c4095482f6c34d7d918f9acb938cc320c994069aa7badf69014c9cdc5f26366f875bd17c97b941e0253c57d9885
6
+ metadata.gz: c17702f46ef1f9737371288ce5d6ab4ea720ae8e83a29802b10cbbaeae1eac1b0c98d0ca248c0a730abed4d0b9587f4f8745956d06d2f792365067f3416d440c
7
+ data.tar.gz: 60c8a6ada136917fbdebcb26a2332130e81437b8c79bc284a7c18f8a19f2df7caa9c5cd04461d0fb53e0b65b7a59c7123fb91cf043a2718c937bbd40cb439d38
data/README.md CHANGED
@@ -22,7 +22,21 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ```rb
26
+ require 'pipe_chain'
27
+
28
+ # Using pipe
29
+ puts "hello" | :length
30
+ #=> 5
31
+
32
+ # Using pipe with parameter
33
+ puts [1, 2, 3] * 5 | :join['-']
34
+ #=> "1-2-3-1-2-3-1-2-3-1-2-3-1-2-3"
35
+
36
+ # Using functional method
37
+ "hello" | :length ^ :puts
38
+ #=> 5
39
+ ```
26
40
 
27
41
  ## Development
28
42
 
data/demo.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'pipe_chain'
2
+
3
+ # Using pipe
4
+ puts "hello" | :length
5
+ #=> 5
6
+
7
+ # Using pipe with parameter
8
+ puts [1, 2, 3] * 5 | :join['-']
9
+ #=> "1-2-3-1-2-3-1-2-3-1-2-3-1-2-3"
10
+
11
+ # Using functional method
12
+ "hello" | :length ^ :puts
13
+ #=> 5
@@ -1,3 +1,3 @@
1
1
  module PipeChain
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
data/lib/pipe_chain.rb CHANGED
@@ -61,4 +61,7 @@ Object.constants.select{|c| Object.const_get(c).class == Class}.map{|c| Object.c
61
61
  end
62
62
 
63
63
  end
64
- end
64
+ end
65
+
66
+
67
+ puts 'hello'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipe_chain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Ota
@@ -69,6 +69,7 @@ files:
69
69
  - Rakefile
70
70
  - bin/console
71
71
  - bin/setup
72
+ - demo.rb
72
73
  - lib/pipe_chain.rb
73
74
  - lib/pipe_chain/version.rb
74
75
  - pipe_chain.gemspec