Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use RbConfig instead of Config in 1.9.3.

  • Loading branch information...
commit 6728f93bc1cd77d8277be4090ed4829957e811e6 1 parent 15ab224
@oggy authored
View
4 lib/looksee/adapter.rb
@@ -1,9 +1,7 @@
-require 'rbconfig'
-
module Looksee
module Adapter
autoload :Base, 'looksee/adapter/base'
- autoload :MRI, "looksee/mri.#{Config::CONFIG['DLEXT']}"
+ autoload :MRI, "looksee/mri.#{Looksee::Config::CONFIG['DLEXT']}"
autoload :JRuby, 'looksee/JRuby.jar'
autoload :Rubinius, "looksee/adapter/rubinius"
end
View
3  lib/looksee/clean.rb
@@ -1,8 +1,9 @@
require "rbconfig"
-
require 'set'
module Looksee
+ Config = Object.const_defined?(:RbConfig) ? ::RbConfig : ::Config
+
autoload :VERSION, 'looksee/version'
autoload :Adapter, 'looksee/adapter'
autoload :Columnizer, 'looksee/columnizer'
View
2  spec/wirble_compatibility_spec.rb
@@ -12,7 +12,7 @@ def init_irb_with(code)
|c.ls
EOS
code = code.chomp.gsub(/\n/, ';') # only print value of last line
- irb = File.join Config::CONFIG['bindir'], 'irb'
+ irb = File.join Looksee::Config::CONFIG['bindir'], 'irb'
lib_dir = File.expand_path('lib')
# irb hangs when using readline without a tty
output = IO.popen("bundle exec #{irb} -f --noreadline --noprompt --noverbose -I#{lib_dir} 2>&1", 'r+') do |io|
Please sign in to comment.
Something went wrong with that request. Please try again.