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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d86a9b6513f72556e4dc7edc98f555dedb795a66
4
- data.tar.gz: 87ee3372b70da67680051577fd0d1d23a48f5925
3
+ metadata.gz: 666b2974d40b9938054bbddf7f8f5edd22364b93
4
+ data.tar.gz: 8bc895426723979290062e29c1d885275cdfc728
5
5
  SHA512:
6
- metadata.gz: ddac7aad0bfd4538a4ff5dca6a36f0e3338bd305b620f5823e49bd0722f5513dcae5b5a30b89e75d7bbf0c52b0cc9772bc6f0058b6a06f1929ef87720207358b
7
- data.tar.gz: d42f9df3cb458ba818a30e4018cf397cf22d62107df564917d9159bf364141918d7edcdbb04749081a7310f9ea4e2a6e80dda82698e6253f8bcb5813c99fa24a
6
+ metadata.gz: 9d7a48cb1774e168d620df2d225119d51bcdf25245c61882988454eb72d230eec78a3027a2ef77b90a891d29cba3f0b46d6fe5bf278f4aef2c7ff12ddb9bbb27
7
+ data.tar.gz: ecf26ad5ffca1c0125f7fdabf1f34e4314e283b80fc2688d9f3e99cc07e33b05781f398c8923422908165a229275a01b5b0091c340340486019f77040f9ca83d
@@ -4,18 +4,18 @@ module Continue
4
4
 
5
5
  def self.Run(procs, value=nil, error=nil)
6
6
 
7
- run = ->(p,v,e) do
8
- f, *r = p
9
- s = -> () { run.call(r,v,e) }
10
- e ||= ->() { false }
11
- f.call(s,e,v) if f
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
@@ -1,3 +1,3 @@
1
1
  module Continue
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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-02 00:00:00.000000000 Z
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.6.8
96
+ rubygems_version: 2.4.5.2
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: A simple command chain