lib/braid.rb in realityforge-braid-0.9.4 vs lib/braid.rb in realityforge-braid-0.9.5
- old
+ new
@@ -1,32 +1,32 @@
require 'braid/version'
module Braid
- CONFIG_FILE = ".braids"
- REQUIRED_GIT_VERSION = "1.6"
+ CONFIG_FILE = '.braids'
+ REQUIRED_GIT_VERSION = '1.6'
def self.verbose
- @verbose || false
+ !!@verbose
end
def self.verbose=(new_value)
@verbose = !!new_value
end
def self.force
- @force || false
+ !!@force
end
def self.force=(new_value)
@force = !!new_value
end
def self.use_local_cache
- [nil, "true", "1"].include?(ENV["BRAID_USE_LOCAL_CACHE"])
+ [nil, 'true', '1'].include?(ENV['BRAID_USE_LOCAL_CACHE'])
end
def self.local_cache_dir
- File.expand_path(ENV["BRAID_LOCAL_CACHE_DIR"] || "#{ENV["HOME"]}/.braid/cache")
+ File.expand_path(ENV['BRAID_LOCAL_CACHE_DIR'] || "#{ENV['HOME']}/.braid/cache")
end
class BraidError < StandardError
def message
value = super