rexec 1.1.11 → 1.1.12

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.
@@ -0,0 +1,14 @@
1
+
2
+ module RExec
3
+ # Updates the global ENV for the duration of block. Not multi-thread safe.
4
+ def self.env (new_env = nil, &block)
5
+ old_env = ENV.to_hash
6
+
7
+ ENV.update(new_env) if new_env
8
+
9
+ yield
10
+
11
+ ENV.clear
12
+ ENV.update(old_env)
13
+ end
14
+ end
data/lib/rexec/version.rb CHANGED
@@ -17,7 +17,7 @@ module RExec
17
17
  module VERSION #:nodoc:
18
18
  MAJOR = 1
19
19
  MINOR = 1
20
- TINY = 11
20
+ TINY = 12
21
21
 
22
22
  STRING = [MAJOR, MINOR, TINY].join('.')
23
23
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 11
9
- version: 1.1.11
8
+ - 12
9
+ version: 1.1.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Samuel Williams
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-14 00:00:00 +13:00
17
+ date: 2010-04-08 00:00:00 +12:00
18
18
  default_executable: daemon-exec
19
19
  dependencies: []
20
20
 
@@ -34,6 +34,7 @@ files:
34
34
  - lib/rexec/daemon/controller.rb
35
35
  - lib/rexec/daemon/pidfile.rb
36
36
  - lib/rexec/daemon.rb
37
+ - lib/rexec/environment.rb
37
38
  - lib/rexec/priviledges.rb
38
39
  - lib/rexec/reverse_io.rb
39
40
  - lib/rexec/server.rb