autoproj 2.0.0.rc36 → 2.0.0.rc37

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: e3051262e3145e954b246bb65af46c3f933c559a
4
- data.tar.gz: 95d31f3a23bc51706f5dfb810d27ba36723d254e
3
+ metadata.gz: 38dcaa9a937d33e87b1d4136c4bc0befb3fc255f
4
+ data.tar.gz: 635803a80d25313398842cc66d7a94ab993c613a
5
5
  SHA512:
6
- metadata.gz: 8a82835c379309530d2e8e5009aa3ccc4e6bab65d399b5add8c70522679a31b63772afdf836d0c2af442e73e08747689db4dae2cab555e0ada619d14e162ac81
7
- data.tar.gz: 990a003ef1bbbf852cf1f64daae492c6660bf5d769b95acad70fd2ffb4dc171b110204e6908c3316a145427c469b576f8788e4b28883d695e99fe07a8fb172ea
6
+ metadata.gz: 758be08ef7c75ab3df49d9c89c87563da1c4652b3c872afab3f2524d204a40d3683b21b7027959a62b43ad34b719496faf8d62b63c7eb27bce75e6f8e9a261a3
7
+ data.tar.gz: c72e8c168365e6fba79aa9c36ff832a1c5b27cd9d7e94e76bf2e2913ff110fe815ffc9d8348fdbe3593e502661cf223e49ad3560d9ed078e9f2c35ca9deb6f1c
@@ -293,6 +293,8 @@ def install_autoproj(bundler)
293
293
  self.class.rewrite_shims(shims_path, ruby_executable, autoproj_gemfile_path, gems_gem_home)
294
294
  end
295
295
 
296
+ EXCLUDED_FROM_SHIMS = %w{rake thor}
297
+
296
298
  def self.rewrite_shims(shim_path, ruby_executable, autoproj_gemfile_path, gems_gem_home)
297
299
  FileUtils.mkdir_p shim_path
298
300
  File.open(File.join(shim_path, 'ruby'), 'w') do |io|
@@ -306,6 +308,10 @@ def self.rewrite_shims(shim_path, ruby_executable, autoproj_gemfile_path, gems_g
306
308
  Dir.glob(File.join(shim_path, '*')) do |bin_script|
307
309
  next if !File.file?(bin_script)
308
310
  bin_name = File.basename(bin_script)
311
+ if EXCLUDED_FROM_SHIMS.include?(bin_name)
312
+ FileUtils.rm_f bin_script
313
+ next
314
+ end
309
315
  next if bin_name == 'ruby'
310
316
 
311
317
  bin_shim = File.join(shim_path, bin_name)
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "2.0.0.rc36"
2
+ VERSION = "2.0.0.rc37"
3
3
  end
@@ -244,6 +244,7 @@ def setup_os_package_installer
244
244
  def setup
245
245
  migrate_bundler_and_autoproj_gem_layout
246
246
  load_config
247
+ rewrite_shims
247
248
  autodetect_operating_system
248
249
  config.validate_ruby_executable
249
250
  config.apply_autobuild_configuration
@@ -299,6 +300,12 @@ def install_ruby_shims
299
300
  end
300
301
  end
301
302
 
303
+ def rewrite_shims
304
+ gemfile = File.join(dot_autoproj_dir, 'Gemfile')
305
+ binstubs = File.join(dot_autoproj_dir, 'bin')
306
+ Ops::Install.rewrite_shims(binstubs, config.ruby_executable, gemfile, config.gems_gem_home)
307
+ end
308
+
302
309
  def update_autoproj(restart_on_update: true)
303
310
  config.validate_ruby_executable
304
311
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc36
4
+ version: 2.0.0.rc37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux