autoproj 2.0.0.rc8 → 2.0.0.rc9

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: bddd3ede1fe4f58fe3cc3c9b7e37b05a06c3c3cb
4
- data.tar.gz: 300374bfb1cb43ed90200d5d19c049cf1b001a3f
3
+ metadata.gz: c1df5021c43b37d6c5518d493f79fbbaea9f2521
4
+ data.tar.gz: 0d9eed9c7fa03564259281202ecaba4bf984ef75
5
5
  SHA512:
6
- metadata.gz: 6ec06a35be38735bf8b45ea5eb29a0e48a3dba7ea52be07b0ff32d76e3267aa2a423ad4b978f1c9aabfc1a68011a3d881cbf235342b210a69068dfec9a68bbd6
7
- data.tar.gz: 327f067eac8418c5829c1ebb054eb9e06d7518f23d7626263009eff45f62d3cd1bac7353753f26e800b6467d42ea53d2236212c21b47655f7ecaa99c2b146c07
6
+ metadata.gz: 6acb320695ee6c3991275a4aec2c89a8a5e445888a74d2f0bea7b520f62894f3f7721b6a32fcb1112cf7cf301393f47db0a39b1adda41597ba3026b3ba948e38
7
+ data.tar.gz: 3fffc2abaa6b8b5eff4bd4e14f9b6c0884f1e6f3a1c27bd272062319cd1c4446cc1f673c656703c985e4a51286fb3fe30b5a065cc8937c0a5da59c51445c5763
@@ -240,7 +240,7 @@ module Autoproj
240
240
  def install_autoproj(bundler)
241
241
  # Force bundler to update. If the user does not want this, let him specify a
242
242
  # Gemfile with tighter version constraints
243
- lockfile = File.join(File.dirname(autoproj_install_dir), 'Gemfile.lock')
243
+ lockfile = File.join(autoproj_install_dir, 'Gemfile.lock')
244
244
  if File.exist?(lockfile)
245
245
  FileUtils.rm lockfile
246
246
  end
@@ -437,7 +437,7 @@ end
437
437
  ENV.delete('BUNDLE_GEMFILE')
438
438
  ENV.delete('RUBYLIB')
439
439
  ops = Autoproj::Ops::Install.new(Dir.pwd)
440
- ops.parse_options(ARGV)
440
+ bootstrap_options = ops.parse_options(ARGV)
441
441
  ops.stage1
442
442
 
443
443
  # we assume that Install#run loads bundler and autobuild. Load autoproj and run
@@ -10,7 +10,7 @@ AUTOPROJ_OPS_INSTALL
10
10
  ENV.delete('BUNDLE_GEMFILE')
11
11
  ENV.delete('RUBYLIB')
12
12
  ops = Autoproj::Ops::Install.new(Dir.pwd)
13
- ops.parse_options(ARGV)
13
+ bootstrap_options = ops.parse_options(ARGV)
14
14
  ops.stage1
15
15
 
16
16
  # we assume that Install#run loads bundler and autobuild. Load autoproj and run
data/bin/autoproj_install CHANGED
@@ -240,7 +240,7 @@ module Autoproj
240
240
  def install_autoproj(bundler)
241
241
  # Force bundler to update. If the user does not want this, let him specify a
242
242
  # Gemfile with tighter version constraints
243
- lockfile = File.join(File.dirname(autoproj_install_dir), 'Gemfile.lock')
243
+ lockfile = File.join(autoproj_install_dir, 'Gemfile.lock')
244
244
  if File.exist?(lockfile)
245
245
  FileUtils.rm lockfile
246
246
  end
@@ -233,7 +233,7 @@ def find_bundler
233
233
  def install_autoproj(bundler)
234
234
  # Force bundler to update. If the user does not want this, let him specify a
235
235
  # Gemfile with tighter version constraints
236
- lockfile = File.join(File.dirname(autoproj_install_dir), 'Gemfile.lock')
236
+ lockfile = File.join(autoproj_install_dir, 'Gemfile.lock')
237
237
  if File.exist?(lockfile)
238
238
  FileUtils.rm lockfile
239
239
  end
@@ -1,3 +1,4 @@
1
+ require 'bundler'
1
2
  module Autoproj
2
3
  module PackageManagers
3
4
  # Package manager interface for the RubyGems system
@@ -32,7 +33,7 @@ def initialize_environment
32
33
  env.init_from_env 'GEM_PATH'
33
34
  env.system_env['GEM_PATH'] = Gem.default_path
34
35
 
35
- if env.original_env['GEM_HOME'].empty?
36
+ if (env.original_env['GEM_HOME'] || '').empty?
36
37
  env.unset('GEM_HOME')
37
38
  end
38
39
 
@@ -200,6 +201,7 @@ def install(gems)
200
201
  end
201
202
 
202
203
  def discover_rubylib
204
+ require 'bundler'
203
205
  Tempfile.open 'autoproj-rubylib' do |io|
204
206
  result = Bundler.clean_system(
205
207
  Hash['RUBYLIB' => nil],
@@ -213,6 +215,7 @@ def discover_rubylib
213
215
  end
214
216
 
215
217
  def discover_bundle_rubylib
218
+ require 'bundler'
216
219
  gemfile = File.join(ws.prefix_dir, 'gems', 'Gemfile')
217
220
  Tempfile.open 'autoproj-rubylib' do |io|
218
221
  result = Bundler.clean_system(
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "2.0.0.rc8"
2
+ VERSION = "2.0.0.rc9"
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.rc8
4
+ version: 2.0.0.rc9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux