Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby config detection no longer works in ruby version 2.2 #453

Closed
thoughtcroft opened this issue Dec 26, 2014 · 1 comment
Closed

ruby config detection no longer works in ruby version 2.2 #453

thoughtcroft opened this issue Dec 26, 2014 · 1 comment

Comments

@thoughtcroft
Copy link

Using ::Config for detecting the various config settings which are populated into node[:languages][:ruby] has been deprecated since 1.9.3. In ruby 2.2.0, this has been removed. The recommended way is to use RbConfig, which works.

ruby -e "require 'rbconfig'; puts %Q(bindir=#{::Config::CONFIG['bindir']})"
-e:1:in `<main>': uninitialized constant Config (NameError)

ruby -e "require 'rbconfig'; puts %Q(bindir=#{::RbConfig::CONFIG['bindir']})"
bindir=/Users/warrenbain/.rbenv/versions/2.2.0/bin
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants