Dan Harper
2006-Mar-26 00:21 UTC
[Rails] Using a Gem in your App without installing to the system
Does anyone know how to use a gem without installing it to the rails installation? For example, I can download the Money gem package from http://dist.leetsoft.com/ but if I don''t have the ability to install a gem at my hosting provider, how can I use the gem in my app? Cheers, Dan
Roberto Saccon
2006-Mar-26 00:29 UTC
[Rails] Using a Gem in your App without installing to the system
Just put the ruby files ofthe Money gem into the lib folder of your rails app. there exists even a thirdparty rake task for that (but which did not work propoperly for me on windows) , just google for the topfunky blog On 3/25/06, Dan Harper <dan@danharper.org> wrote:> > Does anyone know how to use a gem without installing it to the rails > installation? For example, I can download the Money gem package from > http://dist.leetsoft.com/ but if I don''t have the ability to install a > gem at my hosting provider, how can I use the gem in my app? > > Cheers, > Dan > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060326/952c4237/attachment.html
Ryan Raaum
2006-Mar-26 02:12 UTC
[Rails] Using a Gem in your App without installing to the system
On Saturday, March 25, 2006, at 9:29 PM, Roberto Saccon wrote:>Just put the ruby files ofthe Money gem into the lib folder of your rails >app. > >there exists even a thirdparty rake task for that (but which did not work >propoperly for me on windows) , just google for the topfunky blog >I''ve also written a rake task for this (which should work on win32 as well). http://locomotive.raaum.org/home/show/Freeze (I wrote it for people using my Mac Locomotive application - but it''s not specific to Locomotive or Mac in any way). -r>On 3/25/06, Dan Harper <dan@danharper.org> wrote: >> >> Does anyone know how to use a gem without installing it to the rails >> installation? For example, I can download the Money gem package from >> http://dist.leetsoft.com/ but if I don''t have the ability to install a >> gem at my hosting provider, how can I use the gem in my app? >> >> Cheers, >> Dan >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > >-- >Roberto Saccon > > >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails >-- Posted with http://DevLists.com. Sign up and save your time!
Justin Forder
2006-Mar-29 16:41 UTC
[Rails] Using a Gem in your App without installing to the system
Ryan Raaum wrote:> On Saturday, March 25, 2006, at 9:29 PM, Roberto Saccon wrote: >> Just put the ruby files ofthe Money gem into the lib folder of your rails >> app. >> >> there exists even a thirdparty rake task for that (but which did not work >> propoperly for me on windows) , just google for the topfunky blog >> > > I''ve also written a rake task for this (which should work on win32 as well). > > http://locomotive.raaum.org/home/show/Freeze > > (I wrote it for people using my Mac Locomotive application - but it''s > not specific to Locomotive or Mac in any way).Thank you! On DreamHost I found that Dir::tmpdir didn''t exist (checked in irb, and it really didn''t), so I made a tmp directory and hard-coded the tmp_dir to refer to it. Then it worked fine. Justin> > -r > >> On 3/25/06, Dan Harper <dan@danharper.org> wrote: >>> Does anyone know how to use a gem without installing it to the rails >>> installation? For example, I can download the Money gem package from >>> http://dist.leetsoft.com/ but if I don''t have the ability to install a >>> gem at my hosting provider, how can I use the gem in my app? >>> >>> Cheers, >>> Dan >>> >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> >> >> -- >> Roberto Saccon >> >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > > >