From: James Coglan Date: 2008-07-14T19:50:39+09:00 Subject: Re: Hoe dependencies ------=_Part_73085_12905081.1216032910108 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/7/13 John Barnette : > On Sun, Jul 13, 2008 at 8:47 AM, James Coglan > wrote: > > Is it possible to remove the dependency on Hoe from a gem that I've used > Hoe > > to create? Far as I can tell, I only need Hoe to build the gem -- the gem > > itself does not need Hoe to run so it shouldn't include it as a > dependency > > to install on other boxes. Could someone let me know whether I've got > this > > all wrong or whether in fact I *can* remove the hoe dependency when > building > > my gem? > > As of the most recent release of Hoe, it's no longer a runtime > dependency. This behavior requires RubyGems 1.2. > > I'm still getting errors trying to run my gem's command line executable without hoe installed. I have rubgems 1.2.0 and hoe 1.7.0. If you check out this project: http://github.com/jcoglan/jake Run: rake gem sudo gem uninstall hoe sudo gem install pkg/jake-0.9.0.gem It does not attempt to install hoe. However the executable won't run: $ jake -h /usr/local/lib/site_ruby/1.8/rubygems.rb:578:in `report_activate_error': Could not find RubyGem hoe (>= 1.7.0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:134:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:158:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `each' from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:158:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `each' from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:49:in `gem' from /usr/bin/jake:18 (If you want run this prog, you'll need oyster. It's not released yet, but you can get it as follows:) git clone http://github.com/jcoglan/oyster oyster cd oyster rake install_gem Best, James ------=_Part_73085_12905081.1216032910108--