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: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0d82675dbd32
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 21781d0db675
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 9, 2015

  1. Copy the full SHA
    053d489 View commit details
  2. [Truffle] Shim IO#tty?.

    nirvdrum committed Mar 9, 2015
    Copy the full SHA
    21781d0 View commit details
Showing with 18 additions and 5 deletions.
  1. +0 −5 spec/truffle/tags/core/method/to_proc_tags.txt
  2. +18 −0 truffle/src/main/ruby/core/shims.rb
5 changes: 0 additions & 5 deletions spec/truffle/tags/core/method/to_proc_tags.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
fails:Method#to_proc returns a Proc object corresponding to the method
fails:Method#to_proc returns a Proc object with the correct arity
fails:Method#to_proc returns a proc that can be used by define_method
fails:Method#to_proc returns a proc that can be yielded to
fails:Method#to_proc returns a proc that can receive a block
fails:Method#to_proc can be called directly and not unwrap arguments like a block
fails:Method#to_proc should correct handle arguments (unwrap)
fails:Method#to_proc executes method with whole array (one argument)
18 changes: 18 additions & 0 deletions truffle/src/main/ruby/core/shims.rb
Original file line number Diff line number Diff line change
@@ -159,6 +159,24 @@ def instance_exec(*args)

end

class Method

def to_proc
proc { |*args|
self.call(*args)
}
end

end

class IO

def tty?
false
end

end

class MatchData
def full
@cached_full ||= begin