What am I doing that prevents Sinatra from loading OmniAuth when running Ruby 1.8.7 -
omniauth supposed 1.8.7 compatible , rack based. i've created custom strategy omniauth somehow making sinatra when run ruby 1.8.7 / ree unhappy. works fine rails 3 in 1.8.7 or 1.9.2 , works sinatra running on 1.9.2.
the source code custom strategy (still in development) here:
https://github.com/stevenhaddox/oa-casport
the code sample sinatra application here:
https://github.com/stevenhaddox/oa-casport-sinatra
any suggestions why omniauth::builder unhappy under ruby 1.8.7 appreciated i'd love ensure support same ruby platforms omniauth does.
sinatra add lot of dependencies, since omniauth gem supposed work sinatra , rails in many versions of ruby excluded sinatra dependency being culprit, rather in oa-casport gem code likely.
in ruby experience (which arguably short), don't count on kind of stuff. gem may specify >= x.y
rather ~> x.y
or whatever pickier syntax, , may end 1.9 dependency. , may surprises. check every gem involved, always.
Comments
Post a Comment