You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2009/03/13 00:40:58 UTC
svn commit: r753059 - in /buildr/trunk: CHANGELOG lib/buildr/core/util.rb
Author: assaf
Date: Thu Mar 12 23:40:58 2009
New Revision: 753059
URL: http://svn.apache.org/viewvc?rev=753059&view=rev
Log:
Fixed: BUILDR-247 OpenObject does not work with Hash#only (Rhett Sutphin).
Modified:
buildr/trunk/CHANGELOG
buildr/trunk/lib/buildr/core/util.rb
Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=753059&r1=753058&r2=753059&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Thu Mar 12 23:40:58 2009
@@ -45,6 +45,7 @@
* Fixed: BUILDR-226 Release task should use XML output of "svn info" instead
of human-readable output (Alexis Midon).
* Fixed: BUILDR-235 JRuby download link is broke (Alexis Midon).
+* Fixed: BUILDR-247 OpenObject does not work with Hash#only (Rhett Sutphin).
* Fixed: BUILDR-253 ZipTask now uses Zlib::DEFAULT_COMPRESSION instead of NO_COMPRESSION
* Fixed: BUILDR-261 ScalaSpecs should be run with Scala dependencies
* Fixed: BUILDR-263 package(:war).merge not working correctly with exclude()
Modified: buildr/trunk/lib/buildr/core/util.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/util.rb?rev=753059&r1=753058&r2=753059&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/util.rb (original)
+++ buildr/trunk/lib/buildr/core/util.rb Thu Mar 12 23:40:58 2009
@@ -191,24 +191,8 @@
class OpenObject < Hash
def initialize(source=nil, &block)
- @hash = Hash.new(&block)
- @hash.update(source) if source
- end
-
- def [](key)
- @hash[key]
- end
-
- def []=(key, value)
- @hash[key] = value
- end
-
- def delete(key)
- @hash.delete(key)
- end
-
- def to_hash
- @hash.clone
+ super &block
+ update source if source
end
def method_missing(symbol, *args)
@@ -291,4 +275,4 @@
}.join("\n")
end
-end
\ No newline at end of file
+end