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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63652eebce5fbaaaa9a7fa5e3f7aa877c58612c7
4
- data.tar.gz: d26015fa9320a1d08ecde7e5f78dea239575ee11
3
+ metadata.gz: b6c6430b8fe0e054eefca2b8e25052af3fe0af81
4
+ data.tar.gz: d6ed1f952cd26e3bfefa3f81f6c916a1cd163cdc
5
5
  SHA512:
6
- metadata.gz: dd3ea286b3057c97a180dea63fb3c360496a5c257ffd188e01292f73fe49f5548847bc74c1c4fee1c3113d8d257f56ab0bc303df4cc71b37d5eddc0d273ba6fd
7
- data.tar.gz: cbbc5fa40f76da2822464d3c2f4a1487ebd30faf2cc12a5f2f5f1aa56afef9e2e756828ffd41253a6726f3610ac2243bd8b5c192489663e87a8027828077cb84
6
+ metadata.gz: 82b3ba25002d1a12336c904a97584e89b4fd83c0b038f7286dc1b100a4b257e49666edd1260bd5e7bd6abf0a72af311110339d4906bac9d5ad76e0f993a4d12c
7
+ data.tar.gz: 1c2fba771ac446200789d31e7775ea91563a7b6e5c1888530010089ae7d4f0d9465a414de5c95f08874563546a85dcf8cb6cabc46979c5b8109b44fc1d4783f9
@@ -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
- guide_book.merge(config)
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
 
@@ -1,3 +1,3 @@
1
1
  module Compath
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - meganemura