Sha256: 5664288f18405ff8be801e866ce8ee5f31f1b56593d21156b9216f46f0e5a287
Contents?: true
Size: 1001 Bytes
Versions: 1
Compression:
Stored size: 1001 Bytes
Contents
require 'rbconfig' module Lucid unless defined?(Lucid::VERSION) VERSION = '0.5.1' 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' 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']) RUBY_2_1 = RUBY_VERSION =~ /^2\.1/ RUBY_2_0 = RUBY_VERSION =~ /^2\.0/ RUBY_1_9 = RUBY_VERSION =~ /^1\.9/ class << self attr_accessor :use_full_backtrace def file_mode(m, encoding='UTF-8') "#{m}:#{encoding}" end end self.use_full_backtrace = false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lucid-0.5.1 | lib/lucid/platform.rb |