rfunk 1.2.0 → 1.3.0

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: 2b9f9d004d2fd219aea8cc2067f2271cb43c7cbb
4
- data.tar.gz: 1bcc087face734df020fe7561776deabbe67a45a
3
+ metadata.gz: 223adbcaf5f4603180e45b6828ee7e2fa56eca43
4
+ data.tar.gz: 29b65b0c27a8196d561222c30c59f7e5602ed498
5
5
  SHA512:
6
- metadata.gz: d35b9d7ab85c41e7a4eadd76b0b6e886cf5a289422b46173b6242568605a9c75245fd0cfaea0c2d351dfeb850b26668141a5bd7a6f9e000999ca43a34518c981
7
- data.tar.gz: facb8be128e08e8a086c2ebb8b5965db97958288d09600fc4517d234195d26765ccba600fc633bd4705305757efa96ba6d6fa20a180e4a8da1b23620f53f0bb0
6
+ metadata.gz: a98a626f0ecc665b97d17e664994390f081241560a0d2641c8da3167f1866c8375310d11b262a93638da8a84b82e7e121104664151cec38c37d7ccb2f888e990
7
+ data.tar.gz: 519d7c40b77b13737930857b7155b4adcc72c6429bf10abfadde0f2452653fe71eb1425d34ffc3d0863f56e53ceaee68149eacc7a0a2ff1280f8a68388bba449
@@ -10,6 +10,10 @@ module RFunk
10
10
  RFunk::Option(other)
11
11
  end
12
12
 
13
+ def pipe(&_block)
14
+ self
15
+ end
16
+
13
17
  def method_missing(_method, *_arguments, &_block)
14
18
  self
15
19
  end
@@ -14,6 +14,11 @@ module RFunk
14
14
  self
15
15
  end
16
16
 
17
+ def pipe(&block)
18
+ return self if block.nil?
19
+ RFunk::Option(yield value)
20
+ end
21
+
17
22
  def method_missing(method, *arguments, &block)
18
23
  RFunk::Option(value.send(method, *arguments, &block))
19
24
  end
data/lib/rfunk/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RFunk
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfunk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Falkowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2016-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ice_nine