# Rdoc hoe dependency

**URL:** <https://www.ruby-forum.com/t/rdoc-hoe-dependency/145429>\
**Category:** Ruby\
**Created:** [August 9, 2008, 6:59am UTC](https://www.ruby-forum.com/t/rdoc-hoe-dependency/145429 "2008-08-09T06:59:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [August 9, 2008, 6:59am UTC](https://www.ruby-forum.com/t/rdoc-hoe-dependency/145429/1 "2008-08-09T06:59:25Z")

</div>

For the benefit of us nubies, maybe rdoc should also update hoe if it  
finds it at lower version (cause otherwise it should not install since  
it would not run anyway). just a suggestion.

eg

botp@bgmisits:/usr/local/src/ruby-1.8.7-p71$ rdoc --all --ri  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:578:in  
`report_activate_error': RubyGem version error: hoe(1.6.0 not >= 1.7.0) (Gem::LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:134:in`activate’  
from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:158:in  
`activate' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:157:in`each’  
from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:157:in  
`activate' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:49:in`gem’  
from /usr/local/bin/rdoc:18

botp@bgmisits:/usr/local/src/ruby-1.8.7-p71$ sudo gem install hoe  
[sudo] password for botp:  
Successfully installed hoe-1.7.0  
1 gem installed  
Installing ri documentation for hoe-1.7.0…  
Installing RDoc documentation for hoe-1.7.0…

botp@bgmisits:/usr/local/src/ruby-1.8.7-p71$ rdoc --all --ri  
… works fine now…

kind regards -botp

---

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [August 9, 2008, 11:59am UTC](https://www.ruby-forum.com/t/rdoc-hoe-dependency/145429/2 "2008-08-09T11:59:52Z")

</div>

On Aug 8, 2008, at 21:57 , Peña, Botp wrote:

> For the benefit of us nubies, maybe rdoc should also update hoe if  
> it finds it at lower version (cause otherwise it should not install  
> since it would not run anyway). just a suggestion.

huh?

rdoc shouldn’t update hoe or any other gem. Rubygems should…

What I don’t understand is how you installed a newer rdoc that  
requires a newer hoe, but somehow didn’t update hoe. Either something  
messed up with your install and dependencies weren’t updated (usually  
they’re first tho) or… I have no idea.

Actually… this is odd:

dependencies:

- !ruby/object:Gem::Dependency  
name: hoe  
type: :development  
version\_requirement:  
version\_requirements: !ruby/object:Gem::Requirement  
requirements:
  - 
    - “\>=”
    - !ruby/object:Gem::Version  
version: 1.7.0  
version:

hoe is a developer dependency, so it shouldn’t be activated when you  
use the rdoc cmdline tool. I think you might have a mix of rdoc  
versions?

---

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [August 9, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/rdoc-hoe-dependency/145429/3 "2008-08-09T13:08:56Z")

</div>

On Sat, Aug 9, 2008 at 3:27 PM, Ryan D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> type: :development  
> version\_requirement:  
> version\_requirements: !ruby/object:Gem::Requirement  
> requirements:
> 
> - 
> - “\>=”
> - !ruby/object:Gem::Version  
> version: 1.7.0  
> version:
> 
> hoe is a developer dependency, so it shouldn’t be activated when you use the  
> rdoc cmdline tool. I think you might have a mix of rdoc versions?

Well well, thats not my experience at all, very strangely, gems that  
have hoe as build dependency end up requiring hoe, when I try to  
require the gem. In many cases, i had to edit the gemspec, to remove  
hoe as dependency.

---

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [August 14, 2008, 2:31am UTC](https://www.ruby-forum.com/t/rdoc-hoe-dependency/145429/4 "2008-08-14T02:31:12Z")

</div>

On Aug 8, 2008, at 21:57 PM, Peña, Botp wrote:

> For the benefit of us nubies, maybe rdoc should also update hoe if  
> it finds it at lower version (cause otherwise it should not install  
> since it would not run anyway). just a suggestion.

I think it is RubyGems’ bug that has since been fixed.
