`require': uninitialized constant StringIO (NameError)
Closed this issue · 8 comments
Hello,
Just to clarify on the issue that occurs on newer versions of ruby 2.6.x in this case.
stringio is not loaded by default on later versions causing 'agoo' to fail when running example code for 'rack'
this can be solved by simply
replacing
require 'agoo'
with
require 'stringio'
require 'agoo'
make sure the load order is correct as agoo will fail if stringio is not loaded in advance.
Thanks. I'll get that updated tonight.
I've detected this issue on ruby
2.7 only
@Juksefantomet where do you have this issue ?
This occured on ruby 2.6.3
- On my work desktop running Antergos (Arch Distro)
, specifically with bundler 2.0.1
using bundler config set path 'vendor/bundle'
initially but also confirmed running globally installed gems defaulted via home environment. @waghanza
I added the require anyway as it does not cause a problem for older version and is needed for at least Ruby 2.7.0. Prepping for a release now.
Pushed a release.
@Juksefantomet is this solved you issue ? we shall close, if yes
Hello 😄
Yes this resolved the issue. Had to get back to work and on my actual environment experiencing the issue to confirm.
After installing the bumped version i no longer require the manual requirement of stringio.
Thanks!