lib/braid.rb in norbert-braid-0.4.13 vs lib/braid.rb in norbert-braid-0.5.1
- old
+ new
@@ -1,9 +1,9 @@
-$:.unshift File.dirname(__FILE__)
+$:.unshift dirname = File.dirname(__FILE__)
module Braid
- VERSION = "0.4.13"
+ VERSION = "0.5.1"
CONFIG_FILE = ".braids"
REQUIRED_GIT_VERSION = "1.6"
def self.verbose; @verbose || false; end
@@ -18,12 +18,13 @@
value if value != self.class.name
end
end
end
+require dirname + '/core_ext'
require 'braid/operations'
require 'braid/mirror'
require 'braid/config'
require 'braid/command'
-Dir[File.dirname(__FILE__) + '/braid/commands/*'].each do |file|
+Dir[dirname + '/braid/commands/*'].each do |file|
require file
end