lib/lucid/platform.rb in lucid-0.2.1 vs lib/lucid/platform.rb in lucid-0.3.0
- old
+ new
@@ -1,14 +1,14 @@
require 'rbconfig'
module Lucid
unless defined?(Lucid::VERSION)
- VERSION = '0.2.1'
+ VERSION = '0.3.0'
BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/lucid')
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
JRUBY = defined?(JRUBY_VERSION)
- IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby"
+ IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ironruby'
WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
OS_X = RbConfig::CONFIG['host_os'] =~ /darwin/
WINDOWS_MRI = WINDOWS && !JRUBY && !IRONRUBY
RAILS = defined?(Rails)
RUBY_BINARY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
@@ -16,10 +16,10 @@
RUBY_1_9 = RUBY_VERSION =~ /^1\.9/
class << self
attr_accessor :use_full_backtrace
- def file_mode(m, encoding="UTF-8")
+ def file_mode(m, encoding='UTF-8')
"#{m}:#{encoding}"
end
end
self.use_full_backtrace = false
end