lib/oct.rb in oct-0.1.0 vs lib/oct.rb in oct-0.2.0

- old
+ new

@@ -1,7 +1,7 @@ # require all files here -require 'rubygems' +require 'rbconfig' require 'oct/app' require 'oct/oct' # Master namespace module Oct @@ -12,10 +12,16 @@ # # @return [String] the contents of the version file in #.#.# format def self.version version_info_file = File.join(File.dirname(__FILE__), *%w[.. VERSION]) File.open(version_info_file, "r") do |f| - f.read + f.read.strip end end - + + # Platform constants + unless defined?(BasicGem::WINDOWS) + WINDOWS = Config::CONFIG['host_os'] =~ /mswin|mingw/i + CYGWIN = Config::CONFIG['host_os'] =~ /cygwin/i + end + end