Skip to content

Commit

Permalink
[Truffle] Added the 'delegate' standard library.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Apr 15, 2015
1 parent 088b8d4 commit 3baecaa
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby/truffle/mri/delegate.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require_relative '../../stdlib/delegate'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:DelegateClass.private_instance_methods includes private instance methods of the DelegateClass class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Delegator#=== is delegated
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Delegator#<=> is delegated
1 change: 1 addition & 0 deletions spec/truffle/tags/library/delegate/delegator/eql_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Delegator#eql? is delegated
1 change: 1 addition & 0 deletions spec/truffle/tags/library/delegate/delegator/hash_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Delegator#hash is delegated
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/delegate/delegator/marshal_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:SimpleDelegator can be marshalled
fails:SimpleDelegator can be marshalled with its instance variables intact
3 changes: 3 additions & 0 deletions spec/truffle/tags/library/delegate/delegator/method_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:Delegator#method returns a method object for public methods of the delegate object
fails:Delegator#method returns a method that respond_to_missing?
fails:Delegator#method raises a NameError if method is no longer valid because object has changed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Delegator#public_methods includes public instance methods of the Delegator class
1 change: 1 addition & 0 deletions spec/truffle/tags/library/delegate/delegator/send_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:SimpleDelegator.new forwards protected method calls
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Delegator#trust raises an ArgumentError for obsolete $SAFE=4
5 changes: 5 additions & 0 deletions spec/truffle/truffle.mspec
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class MSpecScript
"spec/ruby/library/complex",
"spec/ruby/library/date",
"spec/ruby/library/datetime",
"spec/ruby/library/delegate",
"spec/ruby/library/erb",
"spec/ruby/library/getoptlong",
"spec/ruby/library/observer",
Expand All @@ -100,6 +101,10 @@ class MSpecScript
"spec/ruby/library/thread",
"spec/ruby/library/uri",

# Load issues with 'delegate'.
"^spec/ruby/library/delegate/delegate_class/instance_method_spec.rb",
"^spec/ruby/library/delegate/delegator/protected_methods_spec.rb",

# LoadError for `load "prime.rb"`
"^spec/ruby/library/prime/each_spec.rb"
]
Expand Down

0 comments on commit 3baecaa

Please sign in to comment.