Froze rails gems
[depot.git] / vendor / rails / activesupport / lib / active_support / core_ext / kernel / agnostics.rb
1 class Object
2 # Makes backticks behave (somewhat more) similarly on all platforms.
3 # On win32 `nonexistent_command` raises Errno::ENOENT; on Unix, the
4 # spawned shell prints a message to stderr and sets $?. We emulate
5 # Unix on the former but not the latter.
6 def `(command) #:nodoc:
7 super
8 rescue Errno::ENOENT => e
9 STDERR.puts "#$0: #{e}"
10 end
11 end