lyp 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lyp/resolver.rb +6 -3
- data/lib/lyp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7257f6c9bdb12458c80be6a023da82ce3289f023
|
4
|
+
data.tar.gz: c621fc505ded6c6205f737e54f255f93cea0108f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 273f0a3aa9d5a8d8e10dcb54c3e712d70168343d118fa335a4ccb002df7750ead930fc49dabe74a50c33f4847b9d33f7147d4d01e7664ef4900e8253f615c2e4
|
7
|
+
data.tar.gz: dcd11cac113eec4bd1c082687b5fd6678c456bbc175f212dded8c314159d46920af381a57956dfc4ddd1d985f2cdaf7057ac71ad773b4ea0f9e031ce791290b7
|
data/lib/lyp/resolver.rb
CHANGED
@@ -410,9 +410,12 @@ module Lyp
|
|
410
410
|
# Return a hash of all packages found in the packages directory, creating a
|
411
411
|
# leaf for each package
|
412
412
|
def get_available_packages(dir)
|
413
|
-
packages = Dir["#{Lyp.packages_dir}
|
414
|
-
|
415
|
-
|
413
|
+
packages = Dir["#{Lyp.packages_dir}/**/*"].inject({}) do |m, p|
|
414
|
+
entry_point_path = File.join(p, MAIN_PACKAGE_FILE)
|
415
|
+
if File.file?(entry_point_path)
|
416
|
+
package_name = p.gsub(/^#{Lyp.packages_dir}\//, '')
|
417
|
+
m[package_name] = DependencyPackage.new(entry_point_path)
|
418
|
+
end
|
416
419
|
m
|
417
420
|
end
|
418
421
|
|
data/lib/lyp/version.rb
CHANGED