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 +4 -4
- data/lib/autoproj/ops/install.rb +6 -0
- data/lib/autoproj/version.rb +1 -1
- data/lib/autoproj/workspace.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38dcaa9a937d33e87b1d4136c4bc0befb3fc255f
|
4
|
+
data.tar.gz: 635803a80d25313398842cc66d7a94ab993c613a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 758be08ef7c75ab3df49d9c89c87563da1c4652b3c872afab3f2524d204a40d3683b21b7027959a62b43ad34b719496faf8d62b63c7eb27bce75e6f8e9a261a3
|
7
|
+
data.tar.gz: c72e8c168365e6fba79aa9c36ff832a1c5b27cd9d7e94e76bf2e2913ff110fe815ffc9d8348fdbe3593e502661cf223e49ad3560d9ed078e9f2c35ca9deb6f1c
|
data/lib/autoproj/ops/install.rb
CHANGED
@@ -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)
|
data/lib/autoproj/version.rb
CHANGED
data/lib/autoproj/workspace.rb
CHANGED
@@ -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
|
|