autoproj 2.8.4 → 2.8.5.b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autoproj/package_managers/bundler_manager.rb +8 -6
- data/lib/autoproj/version.rb +1 -1
- data/lib/autoproj/workspace.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c07bd3ea7d39baa65fee835e47fcefa3b0d1eb2e54b386734b736b529b7fca67
|
4
|
+
data.tar.gz: 1beb2540b5f04deca745b843a7ac9e88b984ae80e28a81ae581a579eaa5805b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24175df94d84ec5ea34576466fdaadfa166d8e0b277eb2364efbee971c79cad62f2a20449243a9fddbdc10375f524681d96fb8ed7a4c67e56f251c941bb87cc4
|
7
|
+
data.tar.gz: cb1935cdfb1c399fba76160f7c6e6b8a13cc118c3e347597acbac295ec8986662fb05836d89d7a3cc109334ae1c98b85900497074308449cfecd75717be1a07e
|
@@ -170,7 +170,9 @@ def backup_clean(mapping)
|
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
173
|
-
def self.run_bundler_install(ws, gemfile, *options, update: true, binstubs: nil,
|
173
|
+
def self.run_bundler_install(ws, gemfile, *options, update: true, binstubs: nil,
|
174
|
+
gem_home: ws.config.gems_gem_home,
|
175
|
+
gem_path: ws.config.gems_install_path)
|
174
176
|
if update && File.file?("#{gemfile}.lock")
|
175
177
|
FileUtils.rm "#{gemfile}.lock"
|
176
178
|
end
|
@@ -182,7 +184,7 @@ def self.run_bundler_install(ws, gemfile, *options, update: true, binstubs: nil,
|
|
182
184
|
end
|
183
185
|
|
184
186
|
connections = Set.new
|
185
|
-
run_bundler(ws, 'install', *options, gemfile: gemfile) do |line|
|
187
|
+
run_bundler(ws, 'install', *options, gem_home: gem_home, gemfile: gemfile) do |line|
|
186
188
|
case line
|
187
189
|
when /Installing (.*)/
|
188
190
|
Autobuild.message " bundler: installing #{$1}"
|
@@ -196,18 +198,18 @@ def self.run_bundler_install(ws, gemfile, *options, update: true, binstubs: nil,
|
|
196
198
|
end
|
197
199
|
end
|
198
200
|
|
199
|
-
def self.bundle_gem_path(ws, gem_name, gemfile: nil)
|
201
|
+
def self.bundle_gem_path(ws, gem_name, gem_home: nil, gemfile: nil)
|
200
202
|
path = String.new
|
201
|
-
PackageManagers::BundlerManager.run_bundler(ws, 'show', gem_name, gemfile: gemfile) do |line|
|
203
|
+
PackageManagers::BundlerManager.run_bundler(ws, 'show', gem_name, gem_home: gem_home, gemfile: gemfile) do |line|
|
202
204
|
path << line
|
203
205
|
end
|
204
206
|
path.chomp
|
205
207
|
end
|
206
208
|
|
207
|
-
def self.run_bundler(ws, *commandline, gemfile: nil)
|
209
|
+
def self.run_bundler(ws, *commandline, gem_home: nil, gemfile: nil)
|
208
210
|
Bundler.with_clean_env do
|
209
211
|
target_env = Hash[
|
210
|
-
'GEM_HOME' =>
|
212
|
+
'GEM_HOME' => gem_home,
|
211
213
|
'GEM_PATH' => nil,
|
212
214
|
'BUNDLE_GEMFILE' => gemfile,
|
213
215
|
'RUBYOPT' => nil,
|
data/lib/autoproj/version.rb
CHANGED
data/lib/autoproj/workspace.rb
CHANGED
@@ -385,7 +385,7 @@ def update_autoproj(restart_on_update: true)
|
|
385
385
|
binstubs = File.join(dot_autoproj_dir, 'bin')
|
386
386
|
if restart_on_update
|
387
387
|
old_autoproj_path = PackageManagers::BundlerManager.bundle_gem_path(
|
388
|
-
self, 'autoproj', gemfile: gemfile)
|
388
|
+
self, 'autoproj', gem_home: config.gems_gem_home, gemfile: gemfile)
|
389
389
|
end
|
390
390
|
begin
|
391
391
|
Autoproj.message " updating autoproj"
|
@@ -396,7 +396,7 @@ def update_autoproj(restart_on_update: true)
|
|
396
396
|
end
|
397
397
|
if restart_on_update
|
398
398
|
new_autoproj_path = PackageManagers::BundlerManager.bundle_gem_path(
|
399
|
-
self, 'autoproj', gemfile: gemfile)
|
399
|
+
self, 'autoproj', gem_home: config.gems_gem_home, gemfile: gemfile)
|
400
400
|
end
|
401
401
|
|
402
402
|
# First things first, see if we need to update ourselves
|
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.8.
|
4
|
+
version: 2.8.5.b1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Joyeux
|
@@ -437,9 +437,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
437
437
|
version: 2.1.0
|
438
438
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
439
439
|
requirements:
|
440
|
-
- - "
|
440
|
+
- - ">"
|
441
441
|
- !ruby/object:Gem::Version
|
442
|
-
version:
|
442
|
+
version: 1.3.1
|
443
443
|
requirements: []
|
444
444
|
rubyforge_project:
|
445
445
|
rubygems_version: 2.7.6
|