Applying patches to gems

E

Ed Howland

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
 
J

James Britt

Ed said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,197
Messages
2,571,041
Members
47,643
Latest member
ashutoshjha_1101

Latest Threads

Top