buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <alex.boisv...@gmail.com>
Subject Re: Buildr:Package doc error
Date Tue, 17 Nov 2009 17:21:40 GMT
Yes, it's wrong.  I'll fix it.

thanks,
alex


On Tue, Nov 17, 2009 at 9:00 AM, Greg Lucas <greg.lucas@gmail.com> wrote:

> 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)
> end
>
>
> 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' })
> end
>
>
> Thanks,
>
> --
> Greg Lucas
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message