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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d17c4c76b6e7d80fb92d00eb7308853034f2482c
4
- data.tar.gz: 46a6db73bcad7379c7222584f45d896aceb28b14
3
+ metadata.gz: 7257f6c9bdb12458c80be6a023da82ce3289f023
4
+ data.tar.gz: c621fc505ded6c6205f737e54f255f93cea0108f
5
5
  SHA512:
6
- metadata.gz: e08ff84cd4fd32602a583e84ce4a501b3f201f1b346eeacc670f0055ef29b97efacc5c22cfc66d9092174c39127c906614ba954ebb69ea2c83b50368e498d98d
7
- data.tar.gz: 83f4d533894a531c13ce561d1ea68dd1f91144e1b5adc190b44e0e36df2570f581fad3bb409d2b333df038606bbce7c35086a9a61ee8ef2722a33b4f235b1348
6
+ metadata.gz: 273f0a3aa9d5a8d8e10dcb54c3e712d70168343d118fa335a4ccb002df7750ead930fc49dabe74a50c33f4847b9d33f7147d4d01e7664ef4900e8253f615c2e4
7
+ data.tar.gz: dcd11cac113eec4bd1c082687b5fd6678c456bbc175f212dded8c314159d46920af381a57956dfc4ddd1d985f2cdaf7057ac71ad773b4ea0f9e031ce791290b7
@@ -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
 
@@ -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
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