autobuild 1.10.0.rc1 → 1.10.0.rc2

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: 8e471e6766c9f499c7afbc82edda72bf1abfc8fa
4
- data.tar.gz: 25268f055e8dd9d2018b9630b2b48fe3183b8972
3
+ metadata.gz: 4fbea1f806b426c73db9cf5ba96501f2ff9ba012
4
+ data.tar.gz: 17fb913a59ca4e22543318d4d911c5aa05886196
5
5
  SHA512:
6
- metadata.gz: ad1ec6b44e38d3761dab2a223b4d0ec9a8ed1f64d26441d3049a96e5c5ed0e92be1047d002e76605770d3452e9f3b7eef150ab05cf0789c9a61806fc807e9ce3
7
- data.tar.gz: 2aeb1d2b702ceb8d1e3d1ed71342ef937411c12a78c3b0a1b10fda27e0a9c598c1bfa25fe69eabc6e143609c14a095b44f6734b74a65ccd11163c832ed088161
6
+ metadata.gz: dd9377381c2eeadda6dae28588e15c7461e339fe97fe17790216469b679da9df3527f493c789c1f5ed7e0d88daa4150f09606806ea98de7d1d1c6278d421fdfa
7
+ data.tar.gz: 8611007e8b1021cecbdc8b0516725568729e8a43c12cebb29c5cd99549604c1741520f1936edfc2283a1e0d5d1a3e838d95c7e9849212650988bc76d9352727c
@@ -22,6 +22,11 @@ def self.bsd?
22
22
  @freebsd || @macos #can be extended to some other OSes liek NetBSD
23
23
  end
24
24
 
25
+ @msys = RbConfig::CONFIG["host_os"] =~%r!(msys)!
26
+ def self.msys?
27
+ @msys
28
+ end
29
+
25
30
  SHELL_VAR_EXPANSION =
26
31
  if windows? then "%%%s%%"
27
32
  else "$%s"
@@ -243,9 +248,13 @@ def inherit(*names)
243
248
  @inherit
244
249
  end
245
250
 
251
+ def filter_original_env(name, parent_env)
252
+ parent_env.dup
253
+ end
254
+
246
255
  def init_from_env(name)
247
256
  if inherit?(name) && (parent_env = original_env[name])
248
- inherited_environment[name] = parent_env.split(File::PATH_SEPARATOR)
257
+ inherited_environment[name] = filter_original_env(name, parent_env.split(File::PATH_SEPARATOR))
249
258
  else
250
259
  inherited_environment[name] = Array.new
251
260
  end
@@ -503,7 +503,7 @@ def run(*args, &block)
503
503
  else
504
504
  options = Hash.new
505
505
  end
506
- options = options.merge(env: resolved_env)
506
+ options[:env] = (options[:env] || Hash.new).merge(resolved_env)
507
507
  Autobuild::Subprocess.run(self, *args, options, &block)
508
508
  end
509
509
 
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.10.0.rc1" unless defined? Autobuild::VERSION
2
+ VERSION = "1.10.0.rc2" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0.rc1
4
+ version: 1.10.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-08 00:00:00.000000000 Z
11
+ date: 2015-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake