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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb8f0ed7becf41eafcb3e3e90ee2cb6bf826dbc1
4
- data.tar.gz: decefce843722998174879c51beee4322de792f8
3
+ metadata.gz: d4cda99f4c357a71598d965b30337338df8c93f9
4
+ data.tar.gz: 14eacdb699cb9d6f7dbfc598e219b453edece04d
5
5
  SHA512:
6
- metadata.gz: dcb576b084efc72248272c13113e5c2197fc6b8daf59b087c35027a4cdf5996a7c2fa69031e1df7cfa2bbea29c1d6965029e5adf1e60879bea105b0dacac49ab
7
- data.tar.gz: a994dda498e187da96c38e2d920e669ad62a64e9c026d43ef5c9865ae8f80583c9d94c265bf0bbdd8378384fa43f0f4d7a386368c34f6b4ed83c4d08684278a3
6
+ metadata.gz: 87596950cff264917bb81f981f08929e8fec6cb7cb08ab14e1ac8d542000c489469daf9affe3a251c769f47d83d1a7624227cde29c0760d7a3a4c4f29bf5804c
7
+ data.tar.gz: a97618b653985055365a45adf8e553229b3cb9c51d95b1337c8cd32ee76cb850ad7721bd0ae1902a9d825ac95a5aeab8fe0e7b541fa16b692873c56fcf4dd0fb
@@ -1,3 +1,3 @@
1
1
  module ProcessRunner
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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.1
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-05-10 00:00:00.000000000 Z
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.0.rc.2
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: