code4lib / ruby-oai

a Ruby library for building OAI-PMH clients and servers
MIT License
62 stars 43 forks source link

Error installing from rubygems - RDoc not buidling. #51

Closed bibliotechy closed 2 years ago

bibliotechy commented 8 years ago

Looks like it is only an issue with building the docs. If I run gem install --no-ri it builds cleanly.

Error output below:

Fetching: builder-3.2.2.gem (100%) Successfully installed builder-3.2.2 Fetching: oai-0.4.0.gem (100%) Successfully installed oai-0.4.0 Parsing documentation for builder-3.2.2 Installing ri documentation for builder-3.2.2 Parsing documentation for oai-0.4.0

RDoc::Parser::Ruby failure around line 28 of lib/oai/harvester/logging.rb

Before reporting this, could you check that the file you're documenting has proper syntax:

/Users/chad/.rvm/rubies/ruby-2.2.2/bin/ruby -c lib/oai/harvester/logging.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

(NoMethodError) undefined method `name' for {TkNL 852, 27:28 "\n"}:RDoc::RubyToken::TkNL

ERROR: While executing gem ... (NoMethodError) undefined method `name' for {TkNL 852, 27:28 "\n"}:RDoc::RubyToken::TkNL

techgique commented 7 years ago

Confirming: gem install --no-ri oai succeeds

barmintor commented 2 years ago

This was probably fixed in https://github.com/code4lib/ruby-oai/commit/4acd9d40590a8932df73462edfc63a567b2a8afa and will go into the next release.

barmintor commented 2 years ago

Fix is released! https://github.com/code4lib/ruby-oai/releases/tag/v1.2.0