Trying to make modifications to a gem...

A

Aldric Giacomoni

I'm toying around with a gem. How can I easily make changes and test
them? What I've done is copy the directory with the gem files inside to
another folder within the 'gems' subdirectory and made my changes in
there (renamed it from gemname-0.3 to gemname-0.4). I was hoping it
would be enough but it isn't.
Do I have to re-package it as a gem and reinstall the gem every time I
make a change ? Is there an easy solution?
Just in case it matters, the gem is written in ruby, it's a bunch of
'Ruby files that are all 'required' by the main gem file.
Maybe what I need is 'Ruby gems for dummies' ?

Thanks,

--Aldric
 
R

Ryan Davis

I'm toying around with a gem. How can I easily make changes and test
them? What I've done is copy the directory with the gem files inside
to
another folder within the 'gems' subdirectory and made my changes in
there (renamed it from gemname-0.3 to gemname-0.4). I was hoping it
would be enough but it isn't.
Do I have to re-package it as a gem and reinstall the gem every time I
make a change ? Is there an easy solution?
Just in case it matters, the gem is written in ruby, it's a bunch of
'Ruby files that are all 'required' by the main gem file.
Maybe what I need is 'Ruby gems for dummies' ?

it'd be a lot nicer for everyone (assuming your changes are for good,
not for evil) if you submitted your changes back to the author.
 
A

Aldric Giacomoni

Ryan said:
it'd be a lot nicer for everyone (assuming your changes are for good,
not for evil) if you submitted your changes back to the author.
I will - I am talking with the author via e-mail - but this is also my
first attempt at making a big class and changing a gem.. So I want to
know how to test it. I'm only been using Ruby for 2 months or so and
don't know much about gem-making and gem-modifying.. I'd probably die of
shame if I told the author "Hey, I made changes to your gems, here's
what I did" and then it's all broken because the code is retarded. I'd
like to submit something that works ;-)
This being said, I'm going back to my original question.. :)

--Aldric
 

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,181
Messages
2,570,970
Members
47,537
Latest member
BellCorone

Latest Threads

Top