code4lib / ruby-oai

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

`require enumerator` breaks for ruby 2.7.5 #84

Closed cziaarm closed 2 years ago

cziaarm commented 2 years ago

Hello

https://github.com/code4lib/ruby-oai/blob/master/lib/oai/provider/resumption_token.rb#L2

uses require enumerator which I don't think it needs to unless one is using ruby 1.8.6

moving from ruby 2.7.4 to 2.7.5 will cause this line to error

[snip]
4: from .rvm/gems/ruby-2.7.5/gems/oai-1.1.0/lib/oai/provider/resumption_token.rb:2:in `<top (required)>'
[snip]
.rvm/gems/ruby-2.7.5/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require': cannot load such file -- enumerator (LoadError)