continue 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/continue.rb +6 -6
- data/lib/continue/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 666b2974d40b9938054bbddf7f8f5edd22364b93
|
4
|
+
data.tar.gz: 8bc895426723979290062e29c1d885275cdfc728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d7a48cb1774e168d620df2d225119d51bcdf25245c61882988454eb72d230eec78a3027a2ef77b90a891d29cba3f0b46d6fe5bf278f4aef2c7ff12ddb9bbb27
|
7
|
+
data.tar.gz: ecf26ad5ffca1c0125f7fdabf1f34e4314e283b80fc2688d9f3e99cc07e33b05781f398c8923422908165a229275a01b5b0091c340340486019f77040f9ca83d
|
data/lib/continue.rb
CHANGED
@@ -4,18 +4,18 @@ module Continue
|
|
4
4
|
|
5
5
|
def self.Run(procs, value=nil, error=nil)
|
6
6
|
|
7
|
-
run = ->(
|
8
|
-
|
9
|
-
s = ->
|
10
|
-
|
11
|
-
|
7
|
+
run = ->(rem_procs,val,err,_args=nil) do
|
8
|
+
fn, *rest = rem_procs
|
9
|
+
s = ->(args=nil) { run.call(rest,val,err,args) }
|
10
|
+
err ||= ->() { false }
|
11
|
+
fn.call(s,err,val,_args) if fn
|
12
12
|
end
|
13
13
|
|
14
14
|
run.call(procs, value, error)
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.Command(&block)
|
18
|
-
->(s,e,v) { block.call(v) ? s.call : e.call }
|
18
|
+
->(s,e,v,a) { block.call(v, a) ? s.call : e.call }
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
data/lib/continue/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: continue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Douglas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.4.5.2
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: A simple command chain
|