sso_clyent 0.0.7.7 → 0.0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/sso_clyent/engine.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative './helpers/current_user_helpers'
|
2
|
+
|
1
3
|
module SsoClyent
|
2
4
|
class Engine < ::Rails::Engine
|
3
5
|
isolate_namespace SsoClyent
|
@@ -9,9 +11,6 @@ module SsoClyent
|
|
9
11
|
config.sso_clyent = ActiveSupport::OrderedOptions.new
|
10
12
|
|
11
13
|
initializer "sso_client.configure" do |app|
|
12
|
-
puts app.config.sso_clyent
|
13
|
-
puts app.config.sso_clyent.try(:keys)
|
14
|
-
puts app.config.sso_clyent.try(:keys).try(:include?, :setup_omniauth)
|
15
14
|
should_load_sso_clyent = app.config.sso_clyent.try(:keys).try(:include?, :setup_omniauth) ? app.config.sso_clyent[:setup_omniauth] : true
|
16
15
|
if should_load_sso_clyent
|
17
16
|
SsoClyent.configure(app.config.sso_clyent)
|
@@ -26,5 +25,11 @@ module SsoClyent
|
|
26
25
|
end
|
27
26
|
end
|
28
27
|
end
|
28
|
+
|
29
|
+
initializer 'sso_clyent.extend_view_helpers' do |app|
|
30
|
+
ActiveSupport.on_load :action_controller do
|
31
|
+
helper SsoClyent::CurrentUserHelper
|
32
|
+
end
|
33
|
+
end
|
29
34
|
end
|
30
35
|
end
|
data/lib/sso_clyent/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sso_clyent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.7.
|
4
|
+
version: 0.0.7.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70220933595140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.8
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70220933595140
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: omniauth-oauth2
|
27
|
-
requirement: &
|
27
|
+
requirement: &70220933593840 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - =
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.1.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70220933593840
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: mysql2
|
38
|
-
requirement: &
|
38
|
+
requirement: &70220933593260 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70220933593260
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &70220933592420 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70220933592420
|
58
58
|
description: See sso_provyder for the provider part. Based on Devise, Authentifyd
|
59
59
|
and joshsoftware/sso-devise-omniauth-client. Parts directly taken from https://github.com/joshsoftware/sso-devise-omniauth-client
|
60
60
|
email:
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/sso_clyent/base.rb
|
74
74
|
- lib/sso_clyent/controllers/current_user_helpers.rb
|
75
75
|
- lib/sso_clyent/engine.rb
|
76
|
+
- lib/sso_clyent/helpers/current_user_helpers.rb
|
76
77
|
- lib/sso_clyent/omniauth/strategies/sso.rb
|
77
78
|
- lib/sso_clyent/version.rb
|
78
79
|
- lib/sso_clyent.rb
|