compath 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/compath/cli.rb +4 -3
- data/lib/compath/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: b6c6430b8fe0e054eefca2b8e25052af3fe0af81
|
4
|
+
data.tar.gz: d6ed1f952cd26e3bfefa3f81f6c916a1cd163cdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82b3ba25002d1a12336c904a97584e89b4fd83c0b038f7286dc1b100a4b257e49666edd1260bd5e7bd6abf0a72af311110339d4906bac9d5ad76e0f993a4d12c
|
7
|
+
data.tar.gz: 1c2fba771ac446200789d31e7775ea91563a7b6e5c1888530010089ae7d4f0d9465a414de5c95f08874563546a85dcf8cb6cabc46979c5b8109b44fc1d4783f9
|
data/lib/compath/cli.rb
CHANGED
@@ -4,11 +4,12 @@ module Compath
|
|
4
4
|
finder = Compath::Finder.new
|
5
5
|
paths = Compath::PathSorter.sort(finder.paths.keys)
|
6
6
|
|
7
|
-
config = Compath::ConfigLoader.load(File.read('.compath.yml'))
|
8
|
-
|
9
7
|
guides = paths.map {|path| Compath::Guide.new(path) }
|
10
8
|
guide_book = Compath::GuideBook.new(guides)
|
11
|
-
|
9
|
+
if FileTest.exist?('.compath.yml')
|
10
|
+
config = Compath::ConfigLoader.load(File.read('.compath.yml'))
|
11
|
+
guide_book.merge(config)
|
12
|
+
end
|
12
13
|
|
13
14
|
yaml = guide_book.publish_yaml
|
14
15
|
|
data/lib/compath/version.rb
CHANGED