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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8ddfa93aaf441e4688e44b31900162f0252b23c
4
- data.tar.gz: 07ecb2fea3e896584d4e442eccc2c99ab5f0ef3d
3
+ metadata.gz: f79df93639674a2868ec7d45c0986f57aa2dc590
4
+ data.tar.gz: 3b4d2116373d8f7c50e84b5dd69591e2bb569d18
5
5
  SHA512:
6
- metadata.gz: 53cbdad5f31bc13daab2eecb5ce28173f0171c2a6db665b2370a5db51c704a603c04a6735b9a15454ea23630d79ab9854f4a027bec629f1a793b23ae344f4c16
7
- data.tar.gz: 21e90a809e8b729903bd6445bc70a40ce1e95130e1bb04de35d7e77996142d20c0a1113d31be462c954d71130c5d18b6b6a2f54d2c880e83d201611399666a23
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}/*"].inject({}) do |m, p|
414
- name = File.basename(p)
415
- m[name] = DependencyPackage.new(File.join(p, MAIN_PACKAGE_FILE))
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
@@ -1,3 +1,3 @@
1
1
  module Lyp
2
- VERSION = "1.3.6"
2
+ VERSION = "1.3.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lyp-win
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner