process-pipeline 1.0.0 → 1.0.1
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/.rspec +2 -1
- data/.travis.yml +4 -2
- data/Gemfile +2 -0
- data/lib/process/pipeline/step.rb +10 -2
- data/lib/process/pipeline/version.rb +1 -1
- data/process-pipeline.gemspec +3 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e96f6e2303acd63d03ce3ae53384af5ab5e25448
|
4
|
+
data.tar.gz: ecfa25a340f99b42c46ecc4fc0022ea2eb775cd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b85e763cc78a5af9a400060f3a2a0a856b3829afcee5e1ab0872ee996c87883727c78156397014fe7ea0a6e5b13a2c8a8c51ad7efeb4b16a685feca209efb06
|
7
|
+
data.tar.gz: 943e527f56c4a2d0ee23aceabb6adcaa03296eb80e88a3b25280ac8c3b081ff916a4b7013736edf7af17d7738d9cabd219247344f3b68154567e4766c05fc25a
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -25,7 +25,11 @@ module Process
|
|
25
25
|
module Pipeline
|
26
26
|
Step = Struct.new(:tail, :command) do
|
27
27
|
def dup(tail)
|
28
|
-
self.
|
28
|
+
if self.tail
|
29
|
+
self.class.new(self.tail.dup(tail), self.command)
|
30
|
+
else
|
31
|
+
self.class.new(tail, self.command)
|
32
|
+
end
|
29
33
|
end
|
30
34
|
|
31
35
|
def call(*command)
|
@@ -34,7 +38,11 @@ module Process
|
|
34
38
|
|
35
39
|
def spawn(group, input, output, error)
|
36
40
|
if self.command.nil?
|
37
|
-
|
41
|
+
if tail = self.tail
|
42
|
+
return tail.call(group, input, output, error)
|
43
|
+
else
|
44
|
+
return nil
|
45
|
+
end
|
38
46
|
end
|
39
47
|
|
40
48
|
if Hash === self.command.last
|
data/process-pipeline.gemspec
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "process/pipeline/version"
|
1
|
+
|
2
|
+
require_relative "lib/process/pipeline/version"
|
5
3
|
|
6
4
|
Gem::Specification.new do |spec|
|
7
5
|
spec.name = "process-pipeline"
|
@@ -11,6 +9,7 @@ Gem::Specification.new do |spec|
|
|
11
9
|
|
12
10
|
spec.summary = %q{Execute composable shell-like pipelines.}
|
13
11
|
spec.homepage = "https://github.com/ioquatix/process-pipeline"
|
12
|
+
spec.license = "MIT"
|
14
13
|
|
15
14
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
15
|
f.match(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process-pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -85,7 +85,8 @@ files:
|
|
85
85
|
- lib/process/pipeline/version.rb
|
86
86
|
- process-pipeline.gemspec
|
87
87
|
homepage: https://github.com/ioquatix/process-pipeline
|
88
|
-
licenses:
|
88
|
+
licenses:
|
89
|
+
- MIT
|
89
90
|
metadata: {}
|
90
91
|
post_install_message:
|
91
92
|
rdoc_options: []
|