subcontractor 0.6.0 → 0.6.1

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.
data/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### Notice
2
+
3
+ ####I'm looking for a new maintainer for this project. I have not been a good steward and it seems to be useful to people. Any takers?
4
+
5
+
1
6
  ### Overview
2
7
 
3
8
  [Foreman](https://github.com/ddollar/foreman) is a gem released by Heroku that allows you to easily manage multiple processes with a Procfile. It ensures all processes launch successfully, colorizes output, and allows you to kill all processes with a simple CTL+C. It's simple and elegant.
@@ -57,3 +62,4 @@ new_rvm_app: push: subcontract --rvm --with-rubies default-with-rvmrc do --chdir
57
62
  * Tony Pitluga [github](http://github.com/pitluga) [blog](http://tony.pitluga.com/) [twitter](http://twitter.com/pitluga)
58
63
  * Drew Olson [github](http://github.com/drewolson) [blog](http://fingernailsinoatmeal.com/) [twitter](http://twitter.com/drewolson)
59
64
  * Paul Gross [github](http://github.com/pgr0ss) [blog](http://www.pgrs.net) [twitter](http://twitter.com/pgr0ss)
65
+ * Rune Skjoldborg Madsen [github](https://github.com/runemadsen)
@@ -5,7 +5,16 @@ $stdout.sync = true
5
5
 
6
6
  module SafePty
7
7
  def self.spawn command, &block
8
+ if Object.const_defined?('Bundler')
9
+ Bundler.with_clean_env do
10
+ self.spawn_internal command, &block
11
+ end
12
+ else
13
+ self.spawn_internal command, &block
14
+ end
15
+ end
8
16
 
17
+ def self.spawn_internal command, &block
9
18
  PTY.spawn(command) do |r,w,p|
10
19
  begin
11
20
  yield r,w,p
@@ -1,3 +1,3 @@
1
1
  module Subcontractor
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subcontractor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tony Pitluga
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-25 00:00:00 Z
18
+ date: 2013-02-27 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: rvm aware process launcher for foreman