lib/scide.rb in scide-0.0.4 vs lib/scide.rb in scide-0.0.5

- old
+ new

@@ -1,14 +1,10 @@ require 'paint' require 'upoj-rb' -dirname = File.dirname __FILE__ -deps_dir = File.join dirname, 'scide' -VERSION_FILE = File.join dirname, '..', 'VERSION' - module Scide - VERSION = File.open(VERSION_FILE, 'r').read + VERSION = File.open(File.join(File.dirname(__FILE__), '..', 'VERSION'), 'r').read EXIT = { :unexpected => 1, :invalid_argument => 2, :not_initialized => 3, :screen_not_found => 4, @@ -25,6 +21,6 @@ puts EXIT.key?(condition) ? exit(EXIT[condition]) : exit(1) end end -%w( command config global opts overmind project screen window ).each{ |dep| require File.join(deps_dir, dep) } +%w( command config global opts overmind project screen window ).each{ |dep| require File.join(File.dirname(__FILE__), 'scide', dep) }