functo 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/functo.rb +2 -2
- data/lib/functo/compose.rb +3 -3
- data/lib/functo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7720de3b3e117fa28e9d2639effd50fd1086cd8a
|
4
|
+
data.tar.gz: 8bde21afaba5ebebc4467ac27a58d14d3646e4b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aba72367efee8ebf0067103b6a3a269f6194c97276263cdd2684bdc24d4f96c47b876992a74556b061d47c95bfb15f5b9166157498d0c585ceefc80a7cd8d420
|
7
|
+
data.tar.gz: 1f9b97fa728c36e3d32bf66efbacb52b5a34aaaa8ccd59c2a48a6999bcbb18b6ca3c458a9eacd70346fd52728051bf660c7dd7dd19493c0a6b8586d3bca67589
|
data/lib/functo.rb
CHANGED
@@ -107,8 +107,8 @@ class Functo < Module
|
|
107
107
|
function = @function
|
108
108
|
|
109
109
|
@function_module.class_eval do
|
110
|
-
define_method :call do |*args|
|
111
|
-
new(*args).public_send(function)
|
110
|
+
define_method :call do |*args, &block|
|
111
|
+
new(*args).public_send(function, &block)
|
112
112
|
end
|
113
113
|
end
|
114
114
|
end
|
data/lib/functo/compose.rb
CHANGED
@@ -10,11 +10,11 @@ module Functo::Compose
|
|
10
10
|
def compose(outer, splat: false)
|
11
11
|
inner = self
|
12
12
|
|
13
|
-
Functo.wrap do |*args|
|
13
|
+
Functo.wrap do |*args, &block|
|
14
14
|
if splat
|
15
|
-
outer.call(*inner.call(*args))
|
15
|
+
outer.call(*inner.call(*args), &block)
|
16
16
|
else
|
17
|
-
outer.call(inner.call(*args))
|
17
|
+
outer.call(inner.call(*args), &block)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
data/lib/functo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: functo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Scully
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|