autoproj 1.9.7.rc17 → 1.9.7.rc18

Sign up to get free protection for your applications and to get access to all the features.
@@ -620,13 +620,13 @@ fi
620
620
  dep = Gem::Dependency.new(name, version_requirements)
621
621
  available =
622
622
  if gem_fetcher.respond_to?(:find_matching)
623
- non_prerelease, _ = gem_fetcher.find_matching(dep, false, true).first
623
+ non_prerelease, _ = gem_fetcher.find_matching(dep, true, true).map(&:first)
624
624
  if GemManager.with_prerelease
625
- prerelease, _ = gem_fetcher.find_matching(dep, false, true, true).last
625
+ prerelease, _ = gem_fetcher.find_matching(dep, false, true, true).map(&:first)
626
+ else prerelease = Array.new
626
627
  end
627
- [non_prerelease, prerelease].
628
- compact.
629
- map { |name, version, _| [name, version] }
628
+ (non_prerelease + prerelease).
629
+ map { |(n, v, _), _| [n, v] }
630
630
 
631
631
  else # Post RubyGems-2.0
632
632
  type = if GemManager.with_prerelease then :complete
@@ -638,7 +638,7 @@ fi
638
638
  end.map { |tuple, _| [tuple.name, tuple.version] }
639
639
  end
640
640
  installed_version = installed.map(&:version).max
641
- available_version = available.map { |name, v| v }.max
641
+ available_version = available.map { |_, v| v }.max
642
642
  if !available_version
643
643
  if version
644
644
  raise ConfigError.new, "cannot find any gem with the name '#{name}' and version #{version}"
@@ -493,13 +493,13 @@ fi
493
493
  dep = Gem::Dependency.new(name, version_requirements)
494
494
  available =
495
495
  if gem_fetcher.respond_to?(:find_matching)
496
- non_prerelease, _ = gem_fetcher.find_matching(dep, false, true).first
496
+ non_prerelease, _ = gem_fetcher.find_matching(dep, true, true).map(&:first)
497
497
  if GemManager.with_prerelease
498
- prerelease, _ = gem_fetcher.find_matching(dep, false, true, true).last
498
+ prerelease, _ = gem_fetcher.find_matching(dep, false, true, true).map(&:first)
499
+ else prerelease = Array.new
499
500
  end
500
- [non_prerelease, prerelease].
501
- compact.
502
- map { |name, version, _| [name, version] }
501
+ (non_prerelease + prerelease).
502
+ map { |(n, v, _), _| [n, v] }
503
503
 
504
504
  else # Post RubyGems-2.0
505
505
  type = if GemManager.with_prerelease then :complete
@@ -511,7 +511,7 @@ fi
511
511
  end.map { |tuple, _| [tuple.name, tuple.version] }
512
512
  end
513
513
  installed_version = installed.map(&:version).max
514
- available_version = available.map { |name, v| v }.max
514
+ available_version = available.map { |_, v| v }.max
515
515
  if !available_version
516
516
  if version
517
517
  raise ConfigError.new, "cannot find any gem with the name '#{name}' and version #{version}"
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.9.7.rc17"
2
+ VERSION = "1.9.7.rc18"
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: 1.9.7.rc17
4
+ version: 1.9.7.rc18
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: