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.
822a498b26a2cb7d1f0f2e7e37ce61b2?d=identicon&s=25 ed.howland (Guest)
on 2005-11-30 16: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
Bc6d88907ce09158581fbb9b469a35a3?d=identicon&s=25 james_b (Guest)
on 2005-11-30 16: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
1004b266da7d0e375ed7cb88b6a79e7c?d=identicon&s=25 davelee.com (Guest)
on 2005-11-30 18:11
(Received via mailing list)
On 11/30/05, Ed Howland <ed.howland@gmail.com> 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.