autoproj 2.0.0.rc28 → 2.0.0.rc29

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: 9ff2813bce521361e3a276e51e0216c18d8b1c00
4
- data.tar.gz: 78a98d21be75cc93a22aac09620237764eb72601
3
+ metadata.gz: df72ee5143eac811dae59abcd51d096c68a871c7
4
+ data.tar.gz: f4280d34083809d89ebe8a2bb57bf910d19c8dd0
5
5
  SHA512:
6
- metadata.gz: 413db816723732af3a77178b5cfdad3af88b68fc2444378f1202f4ce914b8370bb887067b0d7d12b0cb89d61508cfddc1a7122354441ff6562fedc033a263ab4
7
- data.tar.gz: a3666e0265f2c94ef9616610bcbd78d474384360ff73c8fe56e86b3427927840b97365d3be33406d000f90ab3bc90396b35b734c9bb86935dd64b61af5bc722c
6
+ metadata.gz: 370d5a707092dd140e537a0dfc1401c57048344284aa5dd96a9fa01bc9afb20b4a3f547d540b0d33f438552bae7558032e3ca59068e1f801d2a8129c41bb6391
7
+ data.tar.gz: 30c5948277dca1c98622b368974227312b42e5fcc5511f7d775152706fa3bf5515b178383f0f79c5f276333bc3befd0e88be54ad7da4f27f1a6445acea43217c
@@ -255,9 +255,6 @@ module Autoproj
255
255
  bundler_path = File.join(bundler_gem_home, 'bin', 'bundler')
256
256
  if File.exist?(bundler_path)
257
257
  bundler_path
258
- else
259
- STDERR.puts "gem install bundler returned successfully, but still cannot find bundler in #{bundler_path}"
260
- nil
261
258
  end
262
259
  end
263
260
 
@@ -255,9 +255,6 @@ module Autoproj
255
255
  bundler_path = File.join(bundler_gem_home, 'bin', 'bundler')
256
256
  if File.exist?(bundler_path)
257
257
  bundler_path
258
- else
259
- STDERR.puts "gem install bundler returned successfully, but still cannot find bundler in #{bundler_path}"
260
- nil
261
258
  end
262
259
  end
263
260
 
@@ -227,7 +227,7 @@ def private_gems?
227
227
  end
228
228
 
229
229
  # The path provided to bundler to install the gems
230
- def gems_bundler_path
230
+ def gems_bundler_path(ws)
231
231
  value = get('private_gems', false)
232
232
  if value.respond_to?(:to_str)
233
233
  value
@@ -243,8 +243,8 @@ def gems_bundler_path
243
243
  # RubyGems and Bundler install gems in a subdirectory specific to the
244
244
  # Ruby platform and version. This adds the relevant suffix to
245
245
  # {#gems_bundler_path}
246
- def gems_gem_home
247
- base_path = gems_bundler_path || File.join(Gem.user_dir, '.gem')
246
+ def gems_gem_home(ws)
247
+ base_path = gems_bundler_path(ws) || File.join(Gem.user_dir, '.gem')
248
248
  path_suffix = Pathname.new(Gem.user_dir).
249
249
  relative_path_from(Pathname.new(File.join(Gem.user_home, '.gem'))).
250
250
  to_s
@@ -245,9 +245,6 @@ def find_bundler(gem_program)
245
245
  bundler_path = File.join(bundler_gem_home, 'bin', 'bundler')
246
246
  if File.exist?(bundler_path)
247
247
  bundler_path
248
- else
249
- STDERR.puts "gem install bundler returned successfully, but still cannot find bundler in #{bundler_path}"
250
- nil
251
248
  end
252
249
  end
253
250
 
@@ -33,9 +33,9 @@ def initialize_environment
33
33
 
34
34
  env.add_path 'PATH', File.join(ws.prefix_dir, 'gems', 'bin')
35
35
  env.add_path 'PATH', File.join(config.bundler_gem_home, 'bin')
36
- env.add_path 'PATH', File.join(config.gems_gem_home, 'bin')
36
+ env.add_path 'PATH', File.join(config.gems_gem_home(ws), 'bin')
37
37
  env.add_path 'PATH', File.join(ws.dot_autoproj_dir, 'autoproj', 'bin')
38
- env.set 'GEM_HOME', config.gems_gem_home
38
+ env.set 'GEM_HOME', config.gems_gem_home(ws)
39
39
  env.set 'GEM_PATH', config.bundler_gem_home
40
40
 
41
41
  root_dir = File.join(ws.prefix_dir, 'gems')
@@ -277,7 +277,7 @@ def install(gems, filter_uptodate_packages: false, install_only: false)
277
277
 
278
278
  options = Array.new
279
279
  if ws.config.private_gems?
280
- options << "--path" << ws.config.gems_bundler_path
280
+ options << "--path" << ws.config.gems_bundler_path(ws)
281
281
  end
282
282
 
283
283
  binstubs_path = File.join(root_dir, 'bin')
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "2.0.0.rc28"
2
+ VERSION = "2.0.0.rc29"
3
3
  end
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.rc28
4
+ version: 2.0.0.rc29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
@@ -298,3 +298,4 @@ signing_key:
298
298
  specification_version: 4
299
299
  summary: Easy installation and management of sets of software packages
300
300
  test_files: []
301
+ has_rdoc: