process-pipeline 1.0.0 → 1.0.1

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: a67cb5a35b096ecb1073235621e07330879ebe4c
4
- data.tar.gz: '029fb6df9ca4908eb223af97e66f5ed2a2c1f7a8'
3
+ metadata.gz: e96f6e2303acd63d03ce3ae53384af5ab5e25448
4
+ data.tar.gz: ecfa25a340f99b42c46ecc4fc0022ea2eb775cd5
5
5
  SHA512:
6
- metadata.gz: 04b22c3ef7fe98b6f2e754faf84d6838fdbd57d376925dff1f7a4e07c00e2561cac079e1bd68760883984e50a1cc675bc78b39ed803f8e646aff5ec8ed4b5ea1
7
- data.tar.gz: 2facbb5fb37cfe8179f22dc5d2a7c25dc6c4c1fb293df59096df5fe811d801b8a0f8f4cd6d9d1fbafcaf53accdb80a3bc79260fa80c8e9c9a920b799d7cf016e
6
+ metadata.gz: 9b85e763cc78a5af9a400060f3a2a0a856b3829afcee5e1ab0872ee996c87883727c78156397014fe7ea0a6e5b13a2c8a8c51ad7efeb4b16a685feca209efb06
7
+ data.tar.gz: 943e527f56c4a2d0ee23aceabb6adcaa03296eb80e88a3b25280ac8c3b081ff916a4b7013736edf7af17d7738d9cabd219247344f3b68154567e4766c05fc25a
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --format documentation
2
- --color
2
+ --require spec_helper
3
+ --warnings
@@ -1,5 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.0
5
- before_install: gem install bundler -v 1.15.3
4
+ - 2.1
5
+ - 2.2
6
+ - 2.3
7
+ - 2.4
data/Gemfile CHANGED
@@ -7,4 +7,6 @@ gemspec
7
7
 
8
8
  group :development do
9
9
  gem "pry"
10
+ gem "simplecov"
10
11
  end
12
+
@@ -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.class.new(self.tail&.dup(tail) || tail, self.command)
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
- return self.tail&.call(group, input, output, error)
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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Process
22
22
  module Pipeline
23
- VERSION = "1.0.0"
23
+ VERSION = "1.0.1"
24
24
  end
25
25
  end
@@ -1,7 +1,5 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
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.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: []