rbCAS / CASino

CASino is a Ruby-based Single Sign-On solution supporting the CAS standard
MIT License
331 stars 189 forks source link

NameError: uninitialized constant #145

Closed henry40408 closed 8 years ago

henry40408 commented 8 years ago

I type rake casino:service_rule:add['SSO-CLIENT','http://sso-client.dev/'] in the command line and get the following error:

rake aborted!
NameError: uninitialized constant CASino::ServiceTicketProcessor::Addressable
/usr/local/lib/ruby/gems/2.2.0/gems/casino-4.0.2/app/processors/casino/service_ticket_processor.rb:30:in `clean_service_url'
/usr/local/lib/ruby/gems/2.2.0/gems/casino-4.0.2/lib/casino/tasks/service_rule.rake:12:in `block (3 levels) in <top (required)>'
-e:1:in `<main>'
Tasks: TOP => casino:service_rule:add
(See full trace by running task with --trace)

I use Ruby on Rails 4.2.5, Casino 4.0.2, and casino-activerecord_authenticator 4.0.1.

pencil commented 8 years ago

Thanks for the report. Looks like a bug… Probably a missing require somewhere. feelsbadman

henry40408 commented 8 years ago

Should I require anything in any files in my project? I have seen nothing mentioned about requiring anything in documentation.

pencil commented 8 years ago

Nope, it's a bug in CASino.

nozpheratu commented 8 years ago

I also just ran into this. :+1: