process_runner 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/process_runner/version.rb +1 -1
- data/lib/process_runner.rb +2 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4cda99f4c357a71598d965b30337338df8c93f9
|
4
|
+
data.tar.gz: 14eacdb699cb9d6f7dbfc598e219b453edece04d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87596950cff264917bb81f981f08929e8fec6cb7cb08ab14e1ac8d542000c489469daf9affe3a251c769f47d83d1a7624227cde29c0760d7a3a4c4f29bf5804c
|
7
|
+
data.tar.gz: a97618b653985055365a45adf8e553229b3cb9c51d95b1337c8cd32ee76cb850ad7721bd0ae1902a9d825ac95a5aeab8fe0e7b541fa16b692873c56fcf4dd0fb
|
data/lib/process_runner.rb
CHANGED
@@ -9,6 +9,8 @@ module ProcessRunner
|
|
9
9
|
# @raise (see Process#spawn)
|
10
10
|
# @raise (see Process#detach)
|
11
11
|
def self.go(command, options={})
|
12
|
+
dirname = File.dirname(command.first)
|
13
|
+
options.merge!(:chdir => dirname) if options[:chdir].nil? && dirname && !dirname.empty?
|
12
14
|
Process.detach(Process.spawn(command.join(' '), options)).pid
|
13
15
|
end
|
14
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Morrill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -73,8 +73,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.0.
|
76
|
+
rubygems_version: 2.0.3
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: Extremely tiny Ruby gem to asynchronously start independent processes.
|
80
80
|
test_files: []
|
81
|
+
has_rdoc:
|