Ruby-openid 2

hi, i updated, ruby-openid, since then open_id_authentication plugin
does not work anymore. did it happened to someone else?

Jean-sébastien Jney wrote:

hi, i updated, ruby-openid, since then open_id_authentication plugin
does not work anymore. did it happened to someone else?

I’m getting the same problem. I have to upgrade rubygems to get rails 2
up and running on my existing app. I started getting “undefined method
`require_gem’” errors from ruby-openid 1.1.4, so I updated the gem to
version 2.0.2.

Now the ruby-openid gem appears to have changed its interface a bit. I
get

uninitialized constant OpenID::Store
/vendor/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb:2

Looking in the plugin I can see that db_store.rb is defining a class
that inherits from OpenID::Store, like so:

module OpenIdAuthentication
class DbStore < OpenID::Store

But in the gem, its defined differently.

module OpenID
module Store
class Interface < Object

First of all the plugin is not requiring the openid store classes, and
second you can’t inherit from a Module.

This seems like this is a version issue, the plugin is not meant to work
with ruby-openid 2 just yet. Although I cant revert to the old 1.1.4
because it gives me:

undefined method `require_gem’

when the app loads on my newly updated rubygems 1.0.1.

Any help here? Do I have to revert my version rubygems back to pre 1.0
so that these “require_gem” errors go away? Is there some global
alias_method mnkey patch I can do to make require_gem not broken?

Jean-sébastien Jney wrote:

hi, i updated, ruby-openid, since then open_id_authentication plugin
does not work anymore. did it happened to someone else?

On further investigation of the rails trac,
http://dev.rubyonrails.org/ticket/10604

Looks theres a patch, lt me see if I can figure out how to install it.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs