buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Lucas" <>
Subject Buildr:Package doc error
Date Tue, 17 Nov 2009 17:00:21 GMT
I believe the doc on implementing a custom packaging type is incorrect:

def package_as_sources_spec(spec) #:nodoc:
     { :type=>:zip, :classifier=>'sources' }.merge(spec)

The result of the above hash merge will still have the type/classifier  
 from the spec that was passed in. Shouldn't it be the other way around:

def package_as_sources_spec(spec) #:nodoc:
     spec.merge({ :type=>:zip, :classifier=>'sources' })


Greg Lucas

View raw message