lyp-win 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: f79df93639674a2868ec7d45c0986f57aa2dc590
|
4
|
+
data.tar.gz: 3b4d2116373d8f7c50e84b5dd69591e2bb569d18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eff74c79a1aee3bc2a5afedf147ba7983575c470907ba7371ea02ec0341e5a43f5d579c577f43ca96ba17155f9f3147e7ced992ab8a01b3df84442574da3038
|
7
|
+
data.tar.gz: f562f9a6a7118fdb2448566ea80c6ad141a5aa23ddeeaccabc4a52a88c5431c784778de610acdc547cd62f41110815fde1a8f6b37d207c194b4c3a8bfa6b84a3
|
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