mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 16:26:03 +01:00
Removes the fat ruby-openid gem. Simply use 'gem install ruby-openid' to enable openid support.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2458 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
34
vendor/plugins/open_id_authentication/init.rb
vendored
34
vendor/plugins/open_id_authentication/init.rb
vendored
@@ -1,18 +1,16 @@
|
||||
if config.respond_to?(:gems)
|
||||
config.gem 'ruby-openid', :lib => 'openid', :version => '>=2.1.4'
|
||||
else
|
||||
begin
|
||||
require 'openid'
|
||||
rescue LoadError
|
||||
begin
|
||||
gem 'ruby-openid', '>=2.1.4'
|
||||
rescue Gem::LoadError
|
||||
puts "Install the ruby-openid gem to enable OpenID support"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
config.to_prepare do
|
||||
OpenID::Util.logger = Rails.logger
|
||||
ActionController::Base.send :include, OpenIdAuthentication
|
||||
end
|
||||
begin
|
||||
require 'openid'
|
||||
rescue LoadError
|
||||
begin
|
||||
gem 'ruby-openid', '>=2.1.4'
|
||||
rescue Gem::LoadError
|
||||
# no openid support
|
||||
end
|
||||
end
|
||||
|
||||
if Object.const_defined?(:OpenID)
|
||||
config.to_prepare do
|
||||
OpenID::Util.logger = Rails.logger
|
||||
ActionController::Base.send :include, OpenIdAuthentication
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user