lib/breaktime.rb in breaktime-0.1.2 vs lib/breaktime.rb in breaktime-0.1.3
- old
+ new
@@ -3,24 +3,19 @@
# Breaktime gives you regular screen breaks on a schedule that you choose.
#
# This should be run as the command line tool `breaktime`. For more information
# try running `breaktime --help`.
module Breaktime
- lib_dir = File.dirname(__FILE__) + File::SEPARATOR + 'breaktime'
- $:.unshift lib_dir
-
# Exit status codes.
EX_OK = 0 # Everything fine
EX_UNKNOWN = 1 # Unknown exception
EX_OS_UNKNOWN = 2 # Unknown OS
EX_LINUX_WM_UNKNOWN = 3 # Unknown window manager (linux)
EX_SIGNAL = 128 # Process signal caught
EX_INTERRUPT = 130 # Control-C caught
EX_BREAK_CANCELLED = 254 # Cancel from the countdown GUI
EX_CLI = 255 # CLI option errors
- require 'rubygems'
- require 'bundler/setup'
- require 'version'
- require 'command'
- require 'main'
+ require 'breaktime/version'
+ require 'breaktime/command'
+ require 'breaktime/main'
end