Z
Zhi-Qiang Lei
Hi,
I'm trying to package a library into a gem. I write the main file with =
autoload, just like Rack's.
module RenrenAPI
autoload :Authentication, "renren_api/authentication"
autoload :SignatureCalculator, "renren_api/signature_calculator"
autoload :HTTPAdapter, "renren_api/http_adapter"
end
But when I use the gem, I get a LoadError.
The file does exist. Does anyone can tell me what the problem is with my =
library, which does not happen to Rack.
Best regards,
Zhi-Qiang Lei
(e-mail address removed)
I'm trying to package a library into a gem. I write the main file with =
autoload, just like Rack's.
module RenrenAPI
autoload :Authentication, "renren_api/authentication"
autoload :SignatureCalculator, "renren_api/signature_calculator"
autoload :HTTPAdapter, "renren_api/http_adapter"
end
But when I use the gem, I get a LoadError.
LoadError: no such file to load -- renren_api/authenticationRenrenAPI::Authentication
The file does exist. Does anyone can tell me what the problem is with my =
library, which does not happen to Rack.
Best regards,
Zhi-Qiang Lei
(e-mail address removed)