Permalink
Browse files

Config is deprectaed in Ruby 1.9.3 and 1.8.8

Use RbConfig to suppress deprecation warnings when generating a parser.
  • Loading branch information...
1 parent ea14370 commit 966b809340375cbfb65656e8f6cca9b0b92d40e7 @inukshuk inukshuk committed Nov 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/racc/parserfilegenerator.rb
@@ -119,7 +119,7 @@ def parser_file
footer
end
- c = ::Config::CONFIG
+ c = ::RbConfig::CONFIG
RUBY_PATH = "#{c['bindir']}/#{c['ruby_install_name']}#{c['EXEEXT']}"
def shebang(path)

0 comments on commit 966b809

Please sign in to comment.