lib/bookshelf.rb in bookshelf-1.0.0 vs lib/bookshelf.rb in bookshelf-1.1.0

- old
+ new

@@ -45,11 +45,11 @@ autoload :Syntax, "bookshelf/syntax" autoload :Stream, "bookshelf/stream" autoload :Dependency, "bookshelf/dependency" autoload :Stats, "bookshelf/stats" - def self.config(book_dir = nil) - path = book_dir.join("config.yml") + def self.config + path = Pathname.new("config/config.yml") content = File.read(path) erb = ERB.new(content).result YAML.load(erb).with_indifferent_access end