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 +4 -4
- data/README.md +15 -1
- data/demo.rb +13 -0
- data/lib/pipe_chain/version.rb +1 -1
- data/lib/pipe_chain.rb +4 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9be45d8d9fec2b64c9fec468892c1d910f764ed5
|
4
|
+
data.tar.gz: 7aada61b7dc024a11678aaf453932760fdbf979f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
data/lib/pipe_chain/version.rb
CHANGED
data/lib/pipe_chain.rb
CHANGED
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.
|
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
|