Forum: Ruby Applying patches to gems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
ed.howland (Guest)
on 2005-11-30 17:13
(Received via mailing list)
Hi, I sent this query over to the Rails list, but no joy there.

In general, how do you apply a patch to an installed gem? Do you have
to get the gem src and rebuild the gem, then reinstall? Or, since it
is just ruby code, can you apply it in place in the gem's library
folder.

I am specifically talking about the patch Ticket #2245:
as_clean_logger_rb-fixed.patch.
which fixes the Rails 0.13/Ruby 1.8.3 Logger problem.

Thanks
Ed
james_b (Guest)
on 2005-11-30 17:38
(Received via mailing list)
Ed Howland wrote:
> Hi, I sent this query over to the Rails list, but no joy there.
>
> In general, how do you apply a patch to an installed gem? Do you have
> to get the gem src and rebuild the gem, then reinstall? Or, since it
> is just ruby code, can you apply it in place in the gem's library
> folder.


Why not just fix what's broken and release a new version?

If this is just for you, then just change the code in the gem's lib
folder.



James
--

http://www.ruby-doc.org       - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com     - Playing with Better Toys
http://www.30secondrule.com   - Building Better Tools
davelee.com (Guest)
on 2005-11-30 19:11
(Received via mailing list)
On 11/30/05, Ed Howland <removed_email_address@domain.invalid> wrote:
> Or, since it
> is just ruby code, can you apply it in place in the gem's library
> folder.

that's it.

Dave
This topic is locked and can not be replied to.