command-runner 0.9.2 → 0.9.3
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/README.md +1 -1
- data/lib/command/runner.rb +5 -3
- data/lib/command/runner/backends/posix_spawn.rb +1 -1
- data/lib/command/runner/backends/spawn.rb +0 -1
- data/lib/command/runner/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: 3c20f34462627d31302dcacf69edce7b78a2cb81
|
4
|
+
data.tar.gz: 958e8dc065b871e47d76df18597a84adcac64dab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06239f22d7746a931ca3bfd2bffbc56c5e98978b12c11cd81108b180177f1e2e303b3dc144761fcbf7e334068a48c9d34fb3f49d58a588ede22d8dee727240b9
|
7
|
+
data.tar.gz: 9ad17133e451fe696cbeb8b71e1609159079a7b2491face0a5b7a532ff73ca9edba62e51d66953ea4de7b4b426d4412576021290ff1b3c2f24215dbf764064b8
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Command Runner
|
2
|
-
[](https://travis-ci.org/medcat/command-runner) [](https://codeclimate.com/github/medcat/command-runner)
|
2
|
+
[](https://travis-ci.org/medcat/command-runner) [](https://codeclimate.com/github/medcat/command-runner) [](http://badge.fury.io/rb/command-runner)
|
3
3
|
|
4
4
|
Runs commands.
|
5
5
|
|
data/lib/command/runner.rb
CHANGED
@@ -65,7 +65,7 @@ module Command
|
|
65
65
|
# @see Runner.backend
|
66
66
|
# @return [#call] a backend to use.
|
67
67
|
def backend
|
68
|
-
@backend
|
68
|
+
@backend ||= self.class.backend
|
69
69
|
end
|
70
70
|
|
71
71
|
# Sets the backend to be used by the messenger. This is local to the
|
@@ -79,9 +79,11 @@ module Command
|
|
79
79
|
# may contain interpolated values, like +{key}+ or +{{key}}+.
|
80
80
|
# @param options [Hash] the options for the messenger.
|
81
81
|
def initialize(command, arguments, options = {})
|
82
|
-
@command
|
82
|
+
@command = command
|
83
83
|
@arguments = arguments
|
84
|
-
@options
|
84
|
+
@options = options
|
85
|
+
@unsafe = false
|
86
|
+
@backend = nil
|
85
87
|
end
|
86
88
|
|
87
89
|
# Runs the command and arguments with the given interpolations;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Rodi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: promise
|