Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get rid of all warnings when $-w is `true'.

git-svn-id: http://svn.macosforge.org/repository/ruby/DietRB/trunk@4944 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
commit 94957b2ea46f60dabd10b4e898f70cc450a10007 1 parent c14ffff
@alloy alloy authored
Showing with 5 additions and 3 deletions.
  1. +1 −1  Rakefile
  2. +2 −2 lib/irb/driver/tty.rb
  3. +2 −0  lib/irb/source.rb
View
2  Rakefile
@@ -12,7 +12,7 @@ end
desc "Run dietrb"
task :run do
- sh "#{ruby_bin} -I lib ./bin/dietrb -d -r irb/ext/colorize -r pp"
+ sh "env RUBYOPT='-w' #{ruby_bin} -I lib ./bin/dietrb -d -r irb/ext/colorize -r pp"
end
namespace :macruby do
View
4 lib/irb/driver/tty.rb
@@ -39,8 +39,8 @@ def update_last_line(prompt, reformatted_line)
end
def process_input(line)
- context.process_line(line) do |prompt, line|
- update_last_line(prompt, line)
+ context.process_line(line) do |prompt, updated_line|
+ update_last_line(prompt, updated_line)
end
end
View
2  lib/irb/source.rb
@@ -71,6 +71,8 @@ def reflect
class Reflector < Ripper::SexpBuilder
def initialize(source)
super
+ @code_block = @terminate = @syntax_error = @in_string = @in_regexp = @in_array = nil
+
@level = 0
@code_block = !parse.nil? && !@in_string && !@in_regexp && !@in_array
end
Please sign in to comment.
Something went wrong with that request. Please try again.