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

Commits on Feb 19, 2015

  1. Copy the full SHA
    34a5f7e View commit details
  2. Copy the full SHA
    c4402be View commit details
Showing with 5 additions and 13 deletions.
  1. +0 −13 spec/truffle/tags/core/kernel/autoload_tags.txt
  2. +5 −0 truffle/src/main/ruby/core/rubinius/common/kernel.rb
13 changes: 0 additions & 13 deletions spec/truffle/tags/core/kernel/autoload_tags.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
fails:Kernel#autoload is a private method
fails:Kernel#autoload registers a file to load the first time the named constant is accessed
fails:Kernel#autoload sets the autoload constant in Object's constant table
fails:Kernel#autoload loads the file when the constant is accessed
fails:Kernel#autoload does not call Kernel.require or Kernel.load to load the file
fails:Kernel#autoload can autoload in instance_eval
fails:Kernel#autoload when Object is frozen raises a RuntimeError before defining the constant
fails:Kernel#autoload? is a private method
fails:Kernel#autoload? returns the name of the file that will be autoloaded
fails:Kernel#autoload? returns nil if no file has been registered for a constant
fails:Kernel.autoload registers a file to load the first time the toplevel constant is accessed
fails:Kernel.autoload sets the autoload constant in Object's metaclass's constant table
fails:Kernel.autoload calls #to_path on non-String filenames
fails:Kernel.autoload? returns the name of the file that will be autoloaded
fails:Kernel.autoload? returns nil if no file has been registered for a constant
5 changes: 5 additions & 0 deletions truffle/src/main/ruby/core/rubinius/common/kernel.rb
Original file line number Diff line number Diff line change
@@ -97,6 +97,11 @@ def autoload(name, file)
end
private :autoload

def autoload?(name)
Object.autoload?(name)
end
private :autoload?

def define_singleton_method(*args, &block)
singleton_class.send(:define_method, *args, &block)
end