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.
- data/bin/autoproj_bootstrap +6 -6
- data/lib/autoproj/osdeps.rb +6 -6
- data/lib/autoproj/version.rb +1 -1
- metadata +1 -1
data/bin/autoproj_bootstrap
CHANGED
@@ -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,
|
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).
|
625
|
+
prerelease, _ = gem_fetcher.find_matching(dep, false, true, true).map(&:first)
|
626
|
+
else prerelease = Array.new
|
626
627
|
end
|
627
|
-
|
628
|
-
|
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 { |
|
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}"
|
data/lib/autoproj/osdeps.rb
CHANGED
@@ -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,
|
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).
|
498
|
+
prerelease, _ = gem_fetcher.find_matching(dep, false, true, true).map(&:first)
|
499
|
+
else prerelease = Array.new
|
499
500
|
end
|
500
|
-
|
501
|
-
|
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 { |
|
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}"
|
data/lib/autoproj/version.rb
CHANGED