Skip to content

Commit

Permalink
Fixed deprecated class name
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/heckle/dev/": change = 4365]
  • Loading branch information
zenspider committed Oct 14, 2008
1 parent e27871e commit 5aeab55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/heckle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ def record_passing_mutation
def heckle(exp)
exp_copy = exp.deep_clone
src = begin
RubyToRuby.new.process(exp)
Ruby2Ruby.new.process(exp)
rescue => e
puts "Error: #{e.message} with: #{klass_name}##{method_name}: #{exp_copy.inspect}"
raise e
end

original = RubyToRuby.new.process(@original_tree.deep_clone)
original = Ruby2Ruby.new.process(@original_tree.deep_clone)
@reporter.replacing(klass_name, method_name, original, src) if @@debug

clean_name = method_name.to_s.gsub(/self\./, '')
Expand Down Expand Up @@ -260,7 +260,7 @@ def process_defs(exp)
recv = process exp.shift
meth = exp.shift

self.method = "#{RubyToRuby.new.process(recv.deep_clone)}.#{meth}".intern
self.method = "#{Ruby2Ruby.new.process(recv.deep_clone)}.#{meth}".intern

result = s(:defs, recv, meth)
result << process(exp.shift) until exp.empty?
Expand Down

0 comments on commit 5aeab55

Please sign in to comment.