Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

hello, remove deprecated Config message for RbConfig #39

Open
wants to merge 1 commit into from

2 participants

@lg2046

No description provided.

@kevinburke

this is a dupe and has been fixed by other pull requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 17, 2012
  1. @lg2046
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +1 −1  Rakefile
  2. +3 −3 lib/watchr.rb
View
2  Rakefile
@@ -4,7 +4,7 @@ end
def ruby
require 'rbconfig'
- File.join([Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']]) << Config::CONFIG['EXEEXT']
+ File.join([RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']]) << RbConfig::CONFIG['EXEEXT']
end
# --------------------------------------------------
View
6 lib/watchr.rb
@@ -91,10 +91,10 @@ def debug(msg)
#
# @example
#
- # Config::CONFIG['host_os'] #=> 'linux-gnu'
+ # RbConfig::CONFIG['host_os'] #=> 'linux-gnu'
# Watchr.handler #=> Watchr::EventHandler::Unix
#
- # Config::CONFIG['host_os'] #=> 'cygwin'
+ # RbConfig::CONFIG['host_os'] #=> 'cygwin'
# Watchr.handler #=> Watchr::EventHandler::Portable
#
# ENV['HANDLER'] #=> 'unix'
@@ -108,7 +108,7 @@ def debug(msg)
#
def handler
@handler ||=
- case ENV['HANDLER'] || Config::CONFIG['host_os']
+ case ENV['HANDLER'] || RbConfig::CONFIG['host_os']
when /darwin|mach|osx|fsevents?/i
if Watchr::HAVE_FSE
Watchr::EventHandler::Darwin
Something went wrong with that request. Please try again.