[Blacklight-development] mislav-hanna

Bess Sadler eos8d at virginia.edu
Mon Jun 15 17:23:20 EDT 2009


Hey, Jonathan.

Did you add github as one of your gem sources? Hanna is here:

http://github.com/mislav/hanna/tree/master

And I gave you the wrong command earlier, sorry. The right one is:

sudo gem install mislav-hanna

Maybe we bundle this gem?

Bess

On Jun 15, 2009, at 5:15 PM, Jonathan Rochkind wrote:

> Where does hanna come from? It doesn't appear to be in the gem repos
> I've configured per install instructions.
>
> [rochkind at xs001 rails]$ gem sources
> *** CURRENT SOURCES ***
>
> http://gems.rubyforge.org/
> http://gems.rubyonrails.org
>
> [rochkind at xs001 rails]$ sudo gem install hanna
> ERROR:  could not find gem hanna locally or in a repository
>
>
> Bess Sadler wrote:
>> Hi, Jonathan.
>>
>> Dang, thanks for finding that. Just do "gem install hanna" and it
>> should fix it. Hanna is the rdoc generator I'm using for the rdoc  
>> rake
>> task. It gives you nicer rdoc options, and is how I'm creating the
>> files at http://blacklight.rubyforge.org
>>
>> I didn't think it would require it in order to run the migrations,
>> though. Guess I need to add it to the list of required gems.
>>
>> Bess
>>
>> On Jun 15, 2009, at 3:58 PM, Jonathan Rochkind wrote:
>>
>>
>>> Ah, it's becuase the demo Rakefile includes the line:
>>>
>>> require 'hanna/rdoctask'
>>>
>>> Should this be removed?
>>>
>>> Grepping for this mysterious 'hanna' thing (is that someone's
>>> username?)
>>> everywhere, it's in several more places in the 'demo' app. Including
>>> hard-coded paths that definitely aren't on my system, and seem like
>>> they
>>> shouldn't be in the demo app.
>>>
>>> Should this be here? I can fix this, if I am sure I know I'm  
>>> fixing it
>>> right and it needs fixing. But I have no idea what this hanna is.
>>>
>>>
>>> [rochkind at xs001 rails]$ grep -r hanna *
>>> Rakefile:      require 'hanna/rdoctask'
>>> vendor/plugins/blacklight/vendor/gems/authlogic-2.0.13/
>>> Rakefile:ENV['RDOCOPT']
>>> = "-S -f html -T hanna"
>>> vendor/plugins/blacklight/vendor/gems/mislav-will_paginate-2.3.8/
>>> Rakefile:
>>> hanna_dir = '/Users/mislav/Projects/Hanna/lib'
>>> vendor/plugins/blacklight/vendor/gems/mislav-will_paginate-2.3.8/
>>> Rakefile:
>>> $:.unshift hanna_dir if File.exists? hanna_dir
>>> vendor/plugins/blacklight/vendor/gems/mislav-will_paginate-2.3.8/
>>> Rakefile:
>>> require 'hanna/rdoctask'
>>>
>>>
>>>
>>> Jonathan Rochkind wrote:
>>>
>>>> I get this error when I try to run a 'rake db:migrate' on a freshly
>>>> checked out copy of the demo app. Any advice?  I'm kind of at a  
>>>> loss,
>>>> I'm not sure why it's looking for hanna/rdoctask in order to run a
>>>> db:migrate, and the stack trace isn't helping me.
>>>>
>>>> [rochkind at xs001 rails]$ rake db:migrate --trace
>>>> (in /opt/blacklight/bl-demo/rails)
>>>> rake aborted!
>>>> no such file to load -- hanna/rdoctask
>>>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>>>> `gem_original_require'
>>>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>>>> `require'
>>>> /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
>>>> dependencies.rb:156:in
>>>> `require'
>>>> /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
>>>> dependencies.rb:521:in
>>>> `new_constants_in'
>>>> /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
>>>> dependencies.rb:156:in
>>>> `require'
>>>> /opt/blacklight/bl-demo/rails/Rakefile:46
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
>>>> `raw_load_rakefile'
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in
>>>> `load_rakefile'
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
>>>> `standard_exception_handling'
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in
>>>> `load_rakefile'
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
>>>> `standard_exception_handling'
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
>>>> /usr/bin/rake:19:in `load'
>>>> /usr/bin/rake:19
>>>> [rochkind at xs001 rails]$
>>>>
>>>> _______________________________________________
>>>> Blacklight-development mailing list
>>>> Blacklight-development at rubyforge.org
>>>> http://rubyforge.org/mailman/listinfo/blacklight-development
>>>> Blacklightopac Blog http://blacklightopac.org/
>>>>
>>>>
>>> _______________________________________________
>>> Blacklight-development mailing list
>>> Blacklight-development at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/blacklight-development
>>> Blacklightopac Blog http://blacklightopac.org/
>>>
>>
>> _______________________________________________
>> Blacklight-development mailing list
>> Blacklight-development at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/blacklight-development
>> Blacklightopac Blog http://blacklightopac.org/
>>
> _______________________________________________
> Blacklight-development mailing list
> Blacklight-development at rubyforge.org
> http://rubyforge.org/mailman/listinfo/blacklight-development
> Blacklightopac Blog http://blacklightopac.org/



More information about the Blacklight-development mailing list