[macruby-changes] [2246] MacRuby/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 6 13:27:47 PDT 2009
Revision: 2246
http://trac.macosforge.org/projects/ruby/changeset/2246
Author: pthomson at apple.com
Date: 2009-08-06 13:27:46 -0700 (Thu, 06 Aug 2009)
Log Message:
-----------
Fixed a bug in Object#yaml_as, and added the lib/abbrev, lib/ftools, and lib/shellwords to the library tests (they all pass).
Modified Paths:
--------------
MacRuby/trunk/lib/yaml/rubytypes.rb
MacRuby/trunk/spec/macruby.mspec
Modified: MacRuby/trunk/lib/yaml/rubytypes.rb
===================================================================
--- MacRuby/trunk/lib/yaml/rubytypes.rb 2009-08-06 20:27:45 UTC (rev 2245)
+++ MacRuby/trunk/lib/yaml/rubytypes.rb 2009-08-06 20:27:46 UTC (rev 2246)
@@ -11,7 +11,7 @@
class Object
def yaml_as(tag)
attr_writer :taguri
- klass = (self.is_a? Class) ? self : (class << self; end)
+ klass = (self.is_a? Class) ? self : (class << self; self; end)
klass.define_method(:taguri) do
@taguri || tag
end
Modified: MacRuby/trunk/spec/macruby.mspec
===================================================================
--- MacRuby/trunk/spec/macruby.mspec 2009-08-06 20:27:45 UTC (rev 2245)
+++ MacRuby/trunk/spec/macruby.mspec 2009-08-06 20:27:46 UTC (rev 2246)
@@ -22,8 +22,10 @@
# Library specs
set :library, [
+ 'library/abbrev',
'library/date',
'library/digest',
+ 'library/ftools',
'library/getoptlong',
'library/mutex',
'library/queue',
@@ -31,6 +33,7 @@
'library/pathname',
'library/readline',
'library/scanf',
+ 'library/shellwords',
'library/stringscanner',
'library/time',
'library/tmpdir',
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090806/32e7b8e1/attachment.html>
More information about the macruby-changes
mailing list