ahoward / systemu

univeral capture of stdout and stderr and handling of child process pid for windows, *nix, etc.
Other
126 stars 33 forks source link

Use RbConfig instead of obsolete and deprecated Config. #18

Closed memoht closed 12 years ago

memoht commented 12 years ago

Using Rails 3.2.5 and whenever I run a rake task, I am seeing this line in the terminal. .../gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.

ahoward commented 12 years ago

you are running an old version:

cfp:~/git/systemu $ gem install systemu Fetching: systemu-2.5.1.gem (100%) Successfully installed systemu-2.5.1 1 gem installed cfp:~/git/systemu $ ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0] cfp:~/git/systemu $ ruby -r systemu -e'puts systemu("echo 42")' pid 23933 exit 0 42

cfp:~/git/systemu $ grep Config lib/systemu.rb c = begin; ::RbConfig::CONFIG; rescue NameError; ::Config::CONFIG; end