contour 0.8.4 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +16 -0
- data/README.rdoc +6 -10
- data/app/assets/images/contour/{linkedin_32.png → linked_in_32.png} +0 -0
- data/app/assets/images/contour/{linkedin_64.png → linked_in_64.png} +0 -0
- data/app/assets/images/contour/{openid_32.png → open_id_32.png} +0 -0
- data/app/assets/images/contour/{openid_64.png → open_id_64.png} +0 -0
- data/app/controllers/contour/authentications_controller.rb +7 -7
- data/app/models/authentication.rb +1 -5
- data/app/views/contour/authentications/_index.html.erb +3 -14
- data/app/views/contour/authentications/_menu.html.erb +4 -15
- data/contour.gemspec +10 -4
- data/lib/contour/fixes/omniauth.rb +65 -89
- data/lib/contour/version.rb +2 -2
- data/test/dummy/app/models/user.rb +4 -4
- data/test/dummy/config/initializers/omniauth.rb +21 -10
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +7112 -0
- data/test/functional/authentications_controller_test.rb +1 -1
- data/test/unit/user_test.rb +1 -1
- metadata +85 -19
@@ -5,7 +5,7 @@ SimpleCov.command_name "test:functionals"
|
|
5
5
|
class Contour::AuthenticationsControllerTest < ActionController::TestCase
|
6
6
|
setup do
|
7
7
|
login(users(:valid))
|
8
|
-
@request.env["omniauth.auth"] = {'provider' => 'google_apps', '
|
8
|
+
@request.env["omniauth.auth"] = {'provider' => 'google_apps', 'info'=> {'email' => 'test@example.com'}}
|
9
9
|
@authentication = authentications(:open_id)
|
10
10
|
end
|
11
11
|
|
data/test/unit/user_test.rb
CHANGED
@@ -8,6 +8,6 @@ class UserTest < ActiveSupport::TestCase
|
|
8
8
|
end
|
9
9
|
|
10
10
|
test "should apply omniauth" do
|
11
|
-
assert_not_nil users(:valid).apply_omniauth({'
|
11
|
+
assert_not_nil users(:valid).apply_omniauth({'info' => {'email' => 'Email', 'first_name' => 'FirstName', 'last_name' => 'LastName'}})
|
12
12
|
end
|
13
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
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: 2012-01-
|
12
|
+
date: 2012-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70153222164240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,40 +21,106 @@ dependencies:
|
|
21
21
|
version: 3.2.0.rc2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70153222164240
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jquery-rails
|
27
|
+
requirement: &70153222163740 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.0.0
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70153222163740
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: devise
|
27
|
-
requirement: &
|
38
|
+
requirement: &70153222163280 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
40
|
requirements:
|
30
41
|
- - ~>
|
31
42
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
43
|
+
version: 1.5.3
|
33
44
|
type: :runtime
|
34
45
|
prerelease: false
|
35
|
-
version_requirements: *
|
46
|
+
version_requirements: *70153222163280
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: omniauth
|
38
|
-
requirement: &
|
49
|
+
requirement: &70153222162820 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
|
-
- -
|
52
|
+
- - ~>
|
42
53
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
54
|
+
version: 1.0.1
|
44
55
|
type: :runtime
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *70153222162820
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
requirement: &
|
59
|
+
name: omniauth-openid
|
60
|
+
requirement: &70153222162360 !ruby/object:Gem::Requirement
|
50
61
|
none: false
|
51
62
|
requirements:
|
52
63
|
- - ~>
|
53
64
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
65
|
+
version: 1.0.1
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70153222162360
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: omniauth-ldap
|
71
|
+
requirement: &70153222161900 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.0.2
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70153222161900
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: omniauth-twitter
|
82
|
+
requirement: &70153222161440 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 0.0.7
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *70153222161440
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: omniauth-facebook
|
93
|
+
requirement: &70153222160980 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 1.2.0
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *70153222160980
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: omniauth-linkedin
|
104
|
+
requirement: &70153222160520 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.0.6
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *70153222160520
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: omniauth-cas
|
115
|
+
requirement: &70153222160060 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ~>
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 0.0.3
|
55
121
|
type: :runtime
|
56
122
|
prerelease: false
|
57
|
-
version_requirements: *
|
123
|
+
version_requirements: *70153222160060
|
58
124
|
description: Basic Rails Framework files and assets for layout and authentication
|
59
125
|
email: remosm@gmail.com
|
60
126
|
executables: []
|
@@ -202,12 +268,12 @@ files:
|
|
202
268
|
- app/assets/images/contour/key.png
|
203
269
|
- app/assets/images/contour/ldap_32.png
|
204
270
|
- app/assets/images/contour/ldap_64.png
|
205
|
-
- app/assets/images/contour/
|
206
|
-
- app/assets/images/contour/
|
271
|
+
- app/assets/images/contour/linked_in_32.png
|
272
|
+
- app/assets/images/contour/linked_in_64.png
|
207
273
|
- app/assets/images/contour/mydocuments.png
|
208
274
|
- app/assets/images/contour/open.png
|
209
|
-
- app/assets/images/contour/
|
210
|
-
- app/assets/images/contour/
|
275
|
+
- app/assets/images/contour/open_id_32.png
|
276
|
+
- app/assets/images/contour/open_id_64.png
|
211
277
|
- app/assets/images/contour/pdf.png
|
212
278
|
- app/assets/images/contour/save.png
|
213
279
|
- app/assets/images/contour/search.png
|