process_runner 0.0.2 → 0.0.3

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: d4cda99f4c357a71598d965b30337338df8c93f9
4
- data.tar.gz: 14eacdb699cb9d6f7dbfc598e219b453edece04d
3
+ metadata.gz: a322083cd53f5b5825714dcc14a3c4c978a737e5
4
+ data.tar.gz: aadc7a195b0a8b0b166f4747f77f06e4d5c7d30a
5
5
  SHA512:
6
- metadata.gz: 87596950cff264917bb81f981f08929e8fec6cb7cb08ab14e1ac8d542000c489469daf9affe3a251c769f47d83d1a7624227cde29c0760d7a3a4c4f29bf5804c
7
- data.tar.gz: a97618b653985055365a45adf8e553229b3cb9c51d95b1337c8cd32ee76cb850ad7721bd0ae1902a9d825ac95a5aeab8fe0e7b541fa16b692873c56fcf4dd0fb
6
+ metadata.gz: 0eccb4ef39f3549be33a2a964291531065471d0c3c9d6a22b964faaff6cb6b335409088dddc3e9ad1967f4478cac82d11cb3dfa7d7f2712b5d45b26226703b4a
7
+ data.tar.gz: e14939fa42bba8235a33429b730c45e483afd1ad070ad80e88aff338ef87fc4d4c5a243aa418234efac449033f63753dfdc890bd6b61652a10aa4fa4e2c5c8ae
@@ -1,3 +1,3 @@
1
1
  module ProcessRunner
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -11,6 +11,8 @@ module ProcessRunner
11
11
  def self.go(command, options={})
12
12
  dirname = File.dirname(command.first)
13
13
  options.merge!(:chdir => dirname) if options[:chdir].nil? && dirname && !dirname.empty?
14
- Process.detach(Process.spawn(command.join(' '), options)).pid
14
+ pid = Process.spawn(command.join(' '), options)
15
+ Process.detach(pid)
16
+ pid
15
17
  end
16
18
  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.2
4
+ version: 0.0.3
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-09-01 00:00:00.000000000 Z
11
+ date: 2014-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler