Result:
/usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday.rb:189:in lookup_middleware: :follow_redirects is not registered on Faraday::Response (Faraday::Error) from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday/rack_builder.rb:203:in use_symbol' from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday/rack_builder.rb:96:in response' from /usr/local/rvm/gems/ruby-2.1.1/gems/oai-0.3.1/lib/oai/client.rb:98:in block (2 levels) in initialize' from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday/connection.rb:91:in initialize' from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday.rb:70:in new' from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday.rb:70:in new' from /usr/local/rvm/gems/ruby-2.1.1/gems/oai-0.3.1/lib/oai/client.rb:92:in block in initialize' from /usr/local/rvm/gems/ruby-2.1.1/gems/oai-0.3.1/lib/oai/client.rb:91:in fetch' from /usr/local/rvm/gems/ruby-2.1.1/gems/oai-0.3.1/lib/oai/client.rb:91:in initialize' from oai-pmh.rb:2:in new' from oai-pmh.rb:2:in <main>'
ruby 2.1.1 faraday (0.9.0, 0.9.0.rc7) oai (0.3.1)
Example:
require 'oai' client = OAI::Client.new 'http://www.pubmedcentral.gov/oai/oai.cgi'
Result:
/usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday.rb:189:in lookup_middleware: :follow_redirects is not registered on Faraday::Response (Faraday::Error) from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday/rack_builder.rb:203:in use_symbol' from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday/rack_builder.rb:96:in response' from /usr/local/rvm/gems/ruby-2.1.1/gems/oai-0.3.1/lib/oai/client.rb:98:in block (2 levels) in initialize' from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday/connection.rb:91:in initialize' from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday.rb:70:in new' from /usr/local/rvm/gems/ruby-2.1.1/gems/faraday-0.9.0.rc7/lib/faraday.rb:70:in new' from /usr/local/rvm/gems/ruby-2.1.1/gems/oai-0.3.1/lib/oai/client.rb:92:in block in initialize' from /usr/local/rvm/gems/ruby-2.1.1/gems/oai-0.3.1/lib/oai/client.rb:91:in fetch' from /usr/local/rvm/gems/ruby-2.1.1/gems/oai-0.3.1/lib/oai/client.rb:91:in initialize' from oai-pmh.rb:2:in new' from oai-pmh.rb:2:in <main>'