openid_auth 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/openid_auth.rb +1 -0
- data/rails/init.rb +18 -0
- metadata +2 -1
data/lib/openid_auth.rb
CHANGED
data/rails/init.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
if config.respond_to?(:gems)
|
2
|
+
config.gem 'ruby-openid', :lib => 'openid', :version => '>=2.0.4'
|
3
|
+
else
|
4
|
+
begin
|
5
|
+
require 'openid'
|
6
|
+
rescue LoadError
|
7
|
+
begin
|
8
|
+
gem 'ruby-openid', '>=2.0.4'
|
9
|
+
rescue Gem::LoadError
|
10
|
+
puts "Install the ruby-openid gem to enable OpenID support"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
config.to_prepare do
|
16
|
+
OpenID::Util.logger = Rails.logger
|
17
|
+
ActionController::Base.send :include, OpenIdAuthentication
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openid_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Reeder
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- lib/open_id_authentication/request.rb
|
39
39
|
- lib/open_id_authentication/timeout_fixes.rb
|
40
40
|
- lib/openid_auth.rb
|
41
|
+
- rails/init.rb
|
41
42
|
- CHANGELOG
|
42
43
|
- README.markdown
|
43
44
|
has_rdoc: true
|