On Wed, Apr 27, 2011 at 5:56 PM, Zhi-Qiang Lei <zhiqiang.lei / gmail.com> wrote: > Hi, > > I'm trying to package a library into a gem. I write the main file with autoload, just like Rack's. > > module RenrenAPI > > ¨ΒυτομοαΊΑυτθεξτιγατιοξ¬ Άςεξςεξίαπι―αυτθεξτιγατιοξ> ¨ΒυτομοαΊΣιηξατυςεΓαμγυματοςΆςεξςεξίαπι―σιηξατυςείγαμγυματος> ¨ΒυτομοαΊΘΤΤΠΑδαπτεςΆςεξςεξίαπι―θττπίαδαπτες> > end > > But when I use the gem, I get a LoadError. > >> RenrenAPI::Authentication > LoadError: no such file to load -- renren_api/authentication > > The file does exist. Does anyone can tell me what the problem is with my library, which does not happen to Rack. You can check the load path: p $: before your code to check where Ruby is looking for requires. BTW, Ruby 1.9 removed "." from the load path. Jesus.