tango 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tango (0.1.12)
4
+ tango (0.1.14)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/lib/tango/shell.rb CHANGED
@@ -37,6 +37,12 @@ module Tango
37
37
  def fork_and_exec(command, env_vars, *args)
38
38
  read_end, write_end = IO.pipe
39
39
  pid = Kernel.fork do
40
+ # set the actual user ID to be the effective user ID of the parent
41
+ # we need to do this, because Ruby scripts called via a process with a different uid and euid will barf.
42
+ # This is an issue if we've already set the euid to something different.
43
+ # Do it after we've forked, as we can't change it back if we do it in the main parent process
44
+ Process::Sys.setuid(Process::Sys.geteuid)
45
+
40
46
  read_end.close
41
47
  STDOUT.reopen(write_end)
42
48
  STDERR.reopen(write_end)
data/lib/tango/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Tango
4
- VERSION = "0.1.13"
4
+ VERSION = "0.1.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tango
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-16 00:00:00.000000000 Z
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70306786978620 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70306786978620
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  description: Experiment in deployment tools, taking ideas from babushka and elsewhere.
26
31
  email:
27
32
  - pete@notahat.com
@@ -86,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
91
  version: '0'
87
92
  requirements: []
88
93
  rubyforge_project: tango
89
- rubygems_version: 1.8.11
94
+ rubygems_version: 1.8.24
90
95
  signing_key:
91
96
  specification_version: 3
92
97
  summary: Experiment in deployment tools.