lib/braid/config.rb in realityforge-braid-0.7.2 vs lib/braid/config.rb in realityforge-braid-0.8.0
- old
+ new
@@ -1,11 +1,6 @@
require 'yaml'
-
-# psych throws such wonderful errors as:
-# `@vendor/rails' is not allowed as an instance variable name (NameError)
-YAML::ENGINE.yamler = 'syck' if RUBY_VERSION >= '1.9.1'
-
require 'yaml/store'
module Braid
class Config
class PathAlreadyInUse < BraidError
@@ -71,12 +66,10 @@
end
end
def valid?
@db.transaction(true) do
- !@db.roots.any? do |path|
- @db[path]["url"].nil?
- end
+ !@db.roots.any? {|path| @db[path]["url"].nil?}
end
end
def migrate!
@db.transaction do