Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubinius/rubinius
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 57cc497daa6c
Choose a base ref
...
head repository: rubinius/rubinius
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d0c35a362c54
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jun 13, 2015

  1. Delegate Proc#source_location to Method#source_location when the proc…

    … was created from a method
    ruipserra committed Jun 13, 2015
    Copy the full SHA
    16b4b24 View commit details
  2. Merge pull request #3440 from ruipserra/fix_proc_source_location

    Delegate Proc#source_location to Method#source_location when the proc was created from a method
    jemc committed Jun 13, 2015
    Copy the full SHA
    d0c35a3 View commit details
Showing with 1 addition and 14 deletions.
  1. +1 −13 kernel/common/proc.rb
  2. +0 −1 spec/tags/ruby/core/proc/source_location_tags.txt
14 changes: 1 addition & 13 deletions kernel/common/proc.rb
Original file line number Diff line number Diff line change
@@ -99,19 +99,7 @@ def curry(curried_arity = nil)

def source_location
if @ruby_method
code = @ruby_method.executable
if code.respond_to? :file
file = code.file
if code.lines
line = code.first_line
else
line = -1
end
else
file = "(unknown)"
line = -1
end
[file.to_s, line]
@ruby_method.source_location
elsif @bound_method
if @bound_method.respond_to?(:source_location)
@bound_method.source_location
1 change: 0 additions & 1 deletion spec/tags/ruby/core/proc/source_location_tags.txt

This file was deleted.