multi_auth 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +14 -1
- data/app/views/auth/open_id/index.html.erb +21 -12
- data/config/{smtp.yml.example → smtp.yml.sample} +0 -0
- data/db/test.sqlite3 +0 -0
- data/generators/multi_auth_migration/USAGE +1 -1
- data/generators/multi_auth_public_assets/USAGE +5 -0
- data/generators/multi_auth_public_assets/multi_auth_public_assets_generator.rb +27 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/favicons/livedoor.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/favicons/mixi.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/favicons/yahoo.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/add.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/bin.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/bomb.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/cog.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/delete.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/email-with-desc.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/email.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/feed.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/help.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/key-with-desc.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/key.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/lightning.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/plugin.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/stop.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/table_save.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/tick.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/user.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/vcard.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/openid-with-desc.png +0 -0
- data/{public → generators/multi_auth_public_assets/templates}/images/icons/openid.png +0 -0
- data/generators/{multi_auth_style_sheet → multi_auth_public_assets}/templates/style.css +0 -97
- data/rails/init.rb +6 -0
- data/test/unit/multi_auth_public_assets_generator_test.rb +55 -0
- metadata +30 -52
- data/generators/multi_auth_style_sheet/multi_auth_style_sheet_generator.rb +0 -13
- data/public/404.html +0 -92
- data/public/422.html +0 -91
- data/public/500.html +0 -92
- data/public/503.html +0 -92
- data/public/favicon.ico +0 -0
- data/public/images/battery/cell.png +0 -0
- data/public/images/battery/level-green.png +0 -0
- data/public/images/battery/level-orange.png +0 -0
- data/public/images/battery/level-red.png +0 -0
- data/public/images/battery/level-yellow.png +0 -0
- data/public/images/battery/style.html +0 -82
- data/public/images/h1-back.png +0 -0
- data/public/images/logo-back.png +0 -0
- data/public/images/logo.png +0 -0
- data/public/images/side-column-back.png +0 -0
- data/public/javascripts/application.js +0 -2
- data/public/javascripts/controls.js +0 -963
- data/public/javascripts/dragdrop.js +0 -973
- data/public/javascripts/effects.js +0 -1128
- data/public/javascripts/prototype.js +0 -4320
- data/public/robots.txt +0 -5
- data/public/stylesheets/application.css +0 -365
- data/public/stylesheets/auth.css +0 -22
- data/public/stylesheets/home.css +0 -114
data/README
CHANGED
@@ -15,6 +15,15 @@ or
|
|
15
15
|
Setup
|
16
16
|
=====
|
17
17
|
|
18
|
+
RAILS_ROOT/config/environment.rb:
|
19
|
+
|
20
|
+
config.gem "multi_auth"
|
21
|
+
|
22
|
+
or
|
23
|
+
|
24
|
+
config.gem "okkez-multi_auth", :lib => "multi_auth"
|
25
|
+
|
26
|
+
|
18
27
|
$ ruby script/generate open_id_authentication_tables create_open_id_authentication_tables
|
19
28
|
|
20
29
|
Create migrations for open_id_authentication.
|
@@ -41,11 +50,15 @@ Ex.
|
|
41
50
|
include MultiAuthHelper
|
42
51
|
end
|
43
52
|
|
53
|
+
You can use default style sheet and icons.
|
54
|
+
|
55
|
+
$ ruby script/generate multi_auth_public_assets
|
56
|
+
|
44
57
|
|
45
58
|
Customize
|
46
59
|
=========
|
47
60
|
|
48
|
-
If you want to custom views, you create RAILS_ROOT/app/view/{activation_mailer,auth,credentials,signup}/*.
|
61
|
+
If you want to use custom views, you can create RAILS_ROOT/app/view/{activation_mailer,auth,credentials,signup}/*.
|
49
62
|
|
50
63
|
|
51
64
|
TODO
|
@@ -1,16 +1,25 @@
|
|
1
1
|
|
2
2
|
<%- @title = "ログイン" -%>
|
3
|
+
<%- @enable_side_column = false -%>
|
3
4
|
|
4
|
-
<
|
5
|
+
<div id="dialog">
|
6
|
+
<h1>OpenID によるログイン</h1>
|
5
7
|
|
6
|
-
<%- form_tag(:action => "login")
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<%-
|
8
|
+
<%- form_tag(:action => "login") do -%>
|
9
|
+
<table border="1">
|
10
|
+
<tr>
|
11
|
+
<th><%= label_tag(:openid_url, "OpenID") %></th>
|
12
|
+
<td>
|
13
|
+
<%= text_field_tag(:openid_url, "", :size => 30) %>
|
14
|
+
</td>
|
15
|
+
</tr>
|
16
|
+
</table>
|
17
|
+
<div><%= submit_tag("ログイン") %></div>
|
18
|
+
<%- end -%>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<%- unless production? -%>
|
22
|
+
<div class="debug">
|
23
|
+
<%= error_messages_for(:login_form) %>
|
24
|
+
</div>
|
25
|
+
<%- end -%>
|
File without changes
|
data/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
class MultiAuthPublicAssetsGenerator < Rails::Generator::Base
|
3
|
+
def initialize(runtime_args, runtime_options = { })
|
4
|
+
super
|
5
|
+
end
|
6
|
+
|
7
|
+
def manifest
|
8
|
+
record do |m|
|
9
|
+
m.directory('public/stylesheets')
|
10
|
+
m.file('style.css', 'public/stylesheets/multi_auth.css')
|
11
|
+
m.directory('public/images/icons/fam')
|
12
|
+
['openid.png', 'openid-with-desc.png'].each do |file|
|
13
|
+
m.file("images/icons/#{file}", "public/images/icons/#{file}")
|
14
|
+
end
|
15
|
+
['add.png', 'bomb.png', 'delete.png', 'email.png', 'help.png', 'key.png', 'plugin.png',
|
16
|
+
'table_save.png', 'user.png', 'bin.png', 'cog.png', 'email-with-desc.png', 'feed.png',
|
17
|
+
'key-with-desc.png', 'lightning.png', 'stop.png', 'tick.png', 'vcard.png'
|
18
|
+
].each do |file|
|
19
|
+
m.file("images/icons/fam/#{file}", "public/images/icons/fam/#{file}")
|
20
|
+
end
|
21
|
+
m.directory('public/images/favicons')
|
22
|
+
['livedoor.png', 'mixi.png', 'yahoo.png'].each do |file|
|
23
|
+
m.file("images/favicons/#{file}", "public/images/favicons/#{file}")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/email-with-desc.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/key-with-desc.png
RENAMED
File without changes
|
File without changes
|
data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/lightning.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/{public → generators/multi_auth_public_assets/templates}/images/icons/fam/table_save.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/{public → generators/multi_auth_public_assets/templates}/images/icons/openid-with-desc.png
RENAMED
File without changes
|
File without changes
|
@@ -242,103 +242,6 @@ table.list tbody tr.odd td
|
|
242
242
|
background-color: #D0D0D0;
|
243
243
|
}
|
244
244
|
|
245
|
-
/* table.energies */
|
246
|
-
|
247
|
-
table.energies img
|
248
|
-
{
|
249
|
-
vertical-align: text-top;
|
250
|
-
}
|
251
|
-
|
252
|
-
table.energies thead tr th
|
253
|
-
{
|
254
|
-
font-size: 70%;
|
255
|
-
}
|
256
|
-
|
257
|
-
table.energies tbody tr td
|
258
|
-
{
|
259
|
-
font-size: 80%;
|
260
|
-
}
|
261
|
-
|
262
|
-
table.energies tfoot td
|
263
|
-
{
|
264
|
-
color: #999999;
|
265
|
-
text-align: right;
|
266
|
-
}
|
267
|
-
|
268
|
-
/* table.events */
|
269
|
-
|
270
|
-
table.events img
|
271
|
-
{
|
272
|
-
vertical-align: text-top;
|
273
|
-
}
|
274
|
-
|
275
|
-
table.events thead tr th
|
276
|
-
{
|
277
|
-
font-size: 70%;
|
278
|
-
}
|
279
|
-
|
280
|
-
table.events tbody tr td
|
281
|
-
{
|
282
|
-
font-size: 80%;
|
283
|
-
}
|
284
|
-
|
285
|
-
table.events tfoot td
|
286
|
-
{
|
287
|
-
color: #999999;
|
288
|
-
text-align: right;
|
289
|
-
}
|
290
|
-
|
291
|
-
/* battery */
|
292
|
-
|
293
|
-
div.battery-cell
|
294
|
-
{
|
295
|
-
margin: 0;
|
296
|
-
padding: 4px 7px 4px 5px;
|
297
|
-
width: 100px;
|
298
|
-
height: 13px;
|
299
|
-
background-image: url(/images/battery/cell.png);
|
300
|
-
background-repeat: no-repeat;
|
301
|
-
}
|
302
|
-
|
303
|
-
div.battery-level
|
304
|
-
{
|
305
|
-
margin: 0;
|
306
|
-
padding: 0;
|
307
|
-
width: 100px;
|
308
|
-
height: 13px;
|
309
|
-
}
|
310
|
-
|
311
|
-
div.battery-high,
|
312
|
-
div.battery-middle,
|
313
|
-
div.battery-low,
|
314
|
-
div.battery-empty
|
315
|
-
{
|
316
|
-
margin: 0;
|
317
|
-
padding: 0;
|
318
|
-
height: 13px;
|
319
|
-
background-repeat: repeat-x;
|
320
|
-
}
|
321
|
-
|
322
|
-
div.battery-high
|
323
|
-
{
|
324
|
-
background-image: url(/images/battery/level-green.png);
|
325
|
-
}
|
326
|
-
|
327
|
-
div.battery-middle
|
328
|
-
{
|
329
|
-
background-image: url(/images/battery/level-orange.png);
|
330
|
-
}
|
331
|
-
|
332
|
-
div.battery-low
|
333
|
-
{
|
334
|
-
background-image: url(/images/battery/level-yellow.png);
|
335
|
-
}
|
336
|
-
|
337
|
-
div.battery-empty
|
338
|
-
{
|
339
|
-
background-image: url(/images/battery/level-red.png);
|
340
|
-
}
|
341
|
-
|
342
245
|
/* signup-progress */
|
343
246
|
/* FIXME: 別ファイルに分離 */
|
344
247
|
|
data/rails/init.rb
CHANGED
@@ -17,6 +17,12 @@ config.gem "gettext_activerecord", :version => ">= 2.0.4"
|
|
17
17
|
config.gem "gettext_rails", :version => ">= 2.0.4"
|
18
18
|
config.gem "nayutaya-active-form", :lib => "active_form"
|
19
19
|
|
20
|
+
unless File.exist?(Rails.root + "config/smtp.yml")
|
21
|
+
FileUtils.cp(File.join(plugin_root, 'config/smtp.yml.sample'),
|
22
|
+
Rails.root + "config/smtp.yml",
|
23
|
+
:verbose => true)
|
24
|
+
end
|
25
|
+
|
20
26
|
# FIXME: これで正しいのかもう少し考える
|
21
27
|
config.action_mailer.raise_delivery_errors = true
|
22
28
|
config.action_mailer.delivery_method = :smtp
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper.rb'
|
2
|
+
require 'rails_generator'
|
3
|
+
require 'rails_generator/scripts/generate'
|
4
|
+
|
5
|
+
class MultiAuthPublicAssetsGeneratorTest < Test::Unit::TestCase
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@src = File.expand_path(File.join(File.dirname(__FILE__), '../..', 'generators'))
|
9
|
+
@dest = File.expand_path(File.join(File.dirname(__FILE__), '../..', 'lib', 'generators'))
|
10
|
+
FileUtils.ln_s(@src, @dest)
|
11
|
+
FileUtils.mkdir_p(fake_rails_root)
|
12
|
+
@original_files = file_list
|
13
|
+
end
|
14
|
+
|
15
|
+
def teardown
|
16
|
+
FileUtils.safe_unlink(@dest)
|
17
|
+
FileUtils.rm_r(fake_rails_root)
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_generates_correct_file_name
|
21
|
+
Rails::Generator::Scripts::Generate.new.run(["multi_auth_public_assets"],
|
22
|
+
:destination => fake_rails_root)
|
23
|
+
new_icons = Dir.glob(File.join(fake_rails_root, 'public/images/icons/*.png')).sort
|
24
|
+
assert_equal 2, new_icons.size
|
25
|
+
['openid-with-desc.png', 'openid.png'].sort.map{|f|
|
26
|
+
"#{fake_rails_root}/public/images/icons/#{f}"
|
27
|
+
}.zip(new_icons) do |expected, actual|
|
28
|
+
assert_equal expected, actual
|
29
|
+
end
|
30
|
+
new_fam_icons = Dir.glob(File.join(fake_rails_root, 'public/images/icons/fam/*.png')).sort
|
31
|
+
assert_equal 18, new_fam_icons.size
|
32
|
+
['add.png', 'bomb.png', 'delete.png', 'email.png', 'help.png', 'key.png', 'plugin.png',
|
33
|
+
'table_save.png', 'user.png', 'bin.png', 'cog.png', 'email-with-desc.png', 'feed.png',
|
34
|
+
'key-with-desc.png', 'lightning.png', 'stop.png', 'tick.png', 'vcard.png'
|
35
|
+
].sort.map{|f|
|
36
|
+
"#{fake_rails_root}/public/images/icons/fam/#{f}"
|
37
|
+
}.zip(new_fam_icons) do |expected, actual|
|
38
|
+
assert_equal expected, actual
|
39
|
+
end
|
40
|
+
new_favicons = Dir.glob(File.join(fake_rails_root, 'public/images/favicons/*.png')).sort
|
41
|
+
assert_equal 3, new_favicons.size
|
42
|
+
['livedoor.png', 'mixi.png', 'yahoo.png'].sort.map{|f|
|
43
|
+
"#{fake_rails_root}/public/images/favicons/#{f}"
|
44
|
+
}.zip(new_favicons) do |expected, actual|
|
45
|
+
assert_equal expected, actual
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
private
|
50
|
+
|
51
|
+
def fake_rails_root
|
52
|
+
File.join(File.dirname(__FILE__), 'rails_root')
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- okkez
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-13 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -91,11 +91,11 @@ files:
|
|
91
91
|
- app/views/signup/email/validated.html.erb
|
92
92
|
- app/views/signup/email/activation.html.erb
|
93
93
|
- config/routes.rb
|
94
|
-
- config/smtp.yml.example
|
95
94
|
- config/database.yml.sqlite3
|
96
95
|
- config/environment.rb
|
97
96
|
- config/boot.rb
|
98
97
|
- config/database.yml
|
98
|
+
- config/smtp.yml.sample
|
99
99
|
- db/schema.rb
|
100
100
|
- db/development.sqlite3
|
101
101
|
- db/test.sqlite3
|
@@ -107,59 +107,36 @@ files:
|
|
107
107
|
- lib/open_id_authentication/result.rb
|
108
108
|
- lib/multi_auth/active_record.rb
|
109
109
|
- lib/multi_auth/action_controller.rb
|
110
|
-
- public/favicon.ico
|
111
|
-
- public/422.html
|
112
|
-
- public/503.html
|
113
|
-
- public/stylesheets/home.css
|
114
|
-
- public/stylesheets/application.css
|
115
|
-
- public/stylesheets/auth.css
|
116
|
-
- public/500.html
|
117
|
-
- public/404.html
|
118
|
-
- public/javascripts/dragdrop.js
|
119
|
-
- public/javascripts/prototype.js
|
120
|
-
- public/javascripts/effects.js
|
121
|
-
- public/javascripts/controls.js
|
122
|
-
- public/javascripts/application.js
|
123
|
-
- public/images/battery/level-red.png
|
124
|
-
- public/images/battery/level-orange.png
|
125
|
-
- public/images/battery/cell.png
|
126
|
-
- public/images/battery/level-green.png
|
127
|
-
- public/images/battery/level-yellow.png
|
128
|
-
- public/images/battery/style.html
|
129
|
-
- public/images/favicons/yahoo.png
|
130
|
-
- public/images/favicons/livedoor.png
|
131
|
-
- public/images/favicons/mixi.png
|
132
|
-
- public/images/icons/openid.png
|
133
|
-
- public/images/icons/openid-with-desc.png
|
134
|
-
- public/images/icons/fam/email-with-desc.png
|
135
|
-
- public/images/icons/fam/plugin.png
|
136
|
-
- public/images/icons/fam/key.png
|
137
|
-
- public/images/icons/fam/feed.png
|
138
|
-
- public/images/icons/fam/key-with-desc.png
|
139
|
-
- public/images/icons/fam/help.png
|
140
|
-
- public/images/icons/fam/cog.png
|
141
|
-
- public/images/icons/fam/add.png
|
142
|
-
- public/images/icons/fam/stop.png
|
143
|
-
- public/images/icons/fam/tick.png
|
144
|
-
- public/images/icons/fam/delete.png
|
145
|
-
- public/images/icons/fam/vcard.png
|
146
|
-
- public/images/icons/fam/table_save.png
|
147
|
-
- public/images/icons/fam/lightning.png
|
148
|
-
- public/images/icons/fam/email.png
|
149
|
-
- public/images/icons/fam/bin.png
|
150
|
-
- public/images/icons/fam/user.png
|
151
|
-
- public/images/icons/fam/bomb.png
|
152
|
-
- public/images/logo-back.png
|
153
|
-
- public/images/side-column-back.png
|
154
|
-
- public/images/logo.png
|
155
|
-
- public/images/h1-back.png
|
156
|
-
- public/robots.txt
|
157
110
|
- rails/init.rb
|
158
|
-
- generators/multi_auth_style_sheet/multi_auth_style_sheet_generator.rb
|
159
|
-
- generators/multi_auth_style_sheet/templates/style.css
|
160
111
|
- generators/multi_auth_migration/multi_auth_migration_generator.rb
|
161
112
|
- generators/multi_auth_migration/USAGE
|
162
113
|
- generators/multi_auth_migration/templates/migration.rb
|
114
|
+
- generators/multi_auth_public_assets/multi_auth_public_assets_generator.rb
|
115
|
+
- generators/multi_auth_public_assets/USAGE
|
116
|
+
- generators/multi_auth_public_assets/templates/style.css
|
117
|
+
- generators/multi_auth_public_assets/templates/images/favicons/yahoo.png
|
118
|
+
- generators/multi_auth_public_assets/templates/images/favicons/livedoor.png
|
119
|
+
- generators/multi_auth_public_assets/templates/images/favicons/mixi.png
|
120
|
+
- generators/multi_auth_public_assets/templates/images/icons/openid.png
|
121
|
+
- generators/multi_auth_public_assets/templates/images/icons/openid-with-desc.png
|
122
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/email-with-desc.png
|
123
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/plugin.png
|
124
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/key.png
|
125
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/feed.png
|
126
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/key-with-desc.png
|
127
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/help.png
|
128
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/cog.png
|
129
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/add.png
|
130
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/stop.png
|
131
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/tick.png
|
132
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/delete.png
|
133
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/vcard.png
|
134
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/table_save.png
|
135
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/lightning.png
|
136
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/email.png
|
137
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/bin.png
|
138
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/user.png
|
139
|
+
- generators/multi_auth_public_assets/templates/images/icons/fam/bomb.png
|
163
140
|
- test/unit/token_util_test.rb
|
164
141
|
- test/unit/open_id_login_form_test.rb
|
165
142
|
- test/unit/notice_formatter_test.rb
|
@@ -175,6 +152,7 @@ files:
|
|
175
152
|
- test/unit/helpers/email_signup_helper_test.rb
|
176
153
|
- test/unit/helpers/credentials_helper_test.rb
|
177
154
|
- test/unit/helpers/auth_helper_test.rb
|
155
|
+
- test/unit/multi_auth_public_assets_generator_test.rb
|
178
156
|
- test/unit/action_mailer_util_test.rb
|
179
157
|
- test/unit/open_id_credential_test.rb
|
180
158
|
- test/unit/dummy_user_test.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
|
2
|
-
class MultiAuthStyleSheetGenerator < Rails::Generator::Base
|
3
|
-
def initialize(runtime_args, runtime_options = { })
|
4
|
-
super
|
5
|
-
end
|
6
|
-
|
7
|
-
def manifest
|
8
|
-
record do |m|
|
9
|
-
m.directory('public/stylesheets')
|
10
|
-
m.file('style.css', 'public/stylesheets/multi_auth.css')
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
data/public/404.html
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
-
<title>404: Not Found</title>
|
6
|
-
<style type="text/css">
|
7
|
-
*
|
8
|
-
{
|
9
|
-
margin: 0;
|
10
|
-
padding: 0;
|
11
|
-
}
|
12
|
-
#dialog
|
13
|
-
{
|
14
|
-
position: absolute;
|
15
|
-
top: 50%;
|
16
|
-
left: 50%;
|
17
|
-
width: 650px;
|
18
|
-
height: 200px;
|
19
|
-
margin: -100px 0px 0px -325px;
|
20
|
-
}
|
21
|
-
#code-outer
|
22
|
-
{
|
23
|
-
position: absolute;
|
24
|
-
top: 0px;
|
25
|
-
left: 0px;
|
26
|
-
width: 249px;
|
27
|
-
height: 200px;
|
28
|
-
border-style: solid;
|
29
|
-
border-color: #CCCCCC;
|
30
|
-
border-width: 0px 1px 0px 0px;
|
31
|
-
}
|
32
|
-
#code-inner
|
33
|
-
{
|
34
|
-
font-size: 150px;
|
35
|
-
line-height: 200px;
|
36
|
-
text-align: center;
|
37
|
-
color: #999999;
|
38
|
-
}
|
39
|
-
#message
|
40
|
-
{
|
41
|
-
position: absolute;
|
42
|
-
top: 0px;
|
43
|
-
left: 250px;
|
44
|
-
width: 400px;
|
45
|
-
height: 200px;
|
46
|
-
}
|
47
|
-
#status-outer
|
48
|
-
{
|
49
|
-
height: 75px;
|
50
|
-
}
|
51
|
-
#status-inner
|
52
|
-
{
|
53
|
-
padding: 40px 0px 0px 10px;
|
54
|
-
font-size: 24px;
|
55
|
-
font-weight: bold;
|
56
|
-
color: #999999;
|
57
|
-
}
|
58
|
-
#description-outer
|
59
|
-
{
|
60
|
-
height: 124px;
|
61
|
-
border-style: solid;
|
62
|
-
border-color: #CCCCCC;
|
63
|
-
border-width: 1px 0px 0px 0px;
|
64
|
-
}
|
65
|
-
#description-inner
|
66
|
-
{
|
67
|
-
padding: 10px;
|
68
|
-
font-size: 14px;
|
69
|
-
line-height: 24px;
|
70
|
-
color: #999999;
|
71
|
-
}
|
72
|
-
</style>
|
73
|
-
</head>
|
74
|
-
<body>
|
75
|
-
<div id="dialog">
|
76
|
-
<div id="code-outer">
|
77
|
-
<div id="code-inner">404</div>
|
78
|
-
</div>
|
79
|
-
<div id="message">
|
80
|
-
<div id="status-outer">
|
81
|
-
<div id="status-inner">Not Found</div>
|
82
|
-
</div>
|
83
|
-
<div id="description-outer">
|
84
|
-
<div id="description-inner">
|
85
|
-
<div>要求されたURLは見つかりませんでした。URLが間違っている可能性があります。</div>
|
86
|
-
<div>The requested URL was not found on this server.</div>
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
</body>
|
92
|
-
</html>
|
data/public/422.html
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
-
<title>422: Unprocessable Entity</title>
|
6
|
-
<style type="text/css">
|
7
|
-
*
|
8
|
-
{
|
9
|
-
margin: 0;
|
10
|
-
padding: 0;
|
11
|
-
}
|
12
|
-
#dialog
|
13
|
-
{
|
14
|
-
position: absolute;
|
15
|
-
top: 50%;
|
16
|
-
left: 50%;
|
17
|
-
width: 650px;
|
18
|
-
height: 200px;
|
19
|
-
margin: -100px 0px 0px -325px;
|
20
|
-
}
|
21
|
-
#code-outer
|
22
|
-
{
|
23
|
-
position: absolute;
|
24
|
-
top: 0px;
|
25
|
-
left: 0px;
|
26
|
-
width: 249px;
|
27
|
-
height: 200px;
|
28
|
-
border-style: solid;
|
29
|
-
border-color: #CCCCCC;
|
30
|
-
border-width: 0px 1px 0px 0px;
|
31
|
-
}
|
32
|
-
#code-inner
|
33
|
-
{
|
34
|
-
font-size: 150px;
|
35
|
-
line-height: 200px;
|
36
|
-
text-align: center;
|
37
|
-
color: #999999;
|
38
|
-
}
|
39
|
-
#message
|
40
|
-
{
|
41
|
-
position: absolute;
|
42
|
-
top: 0px;
|
43
|
-
left: 250px;
|
44
|
-
width: 400px;
|
45
|
-
height: 200px;
|
46
|
-
}
|
47
|
-
#status-outer
|
48
|
-
{
|
49
|
-
height: 75px;
|
50
|
-
}
|
51
|
-
#status-inner
|
52
|
-
{
|
53
|
-
padding: 40px 0px 0px 10px;
|
54
|
-
font-size: 24px;
|
55
|
-
font-weight: bold;
|
56
|
-
color: #999999;
|
57
|
-
}
|
58
|
-
#description-outer
|
59
|
-
{
|
60
|
-
height: 124px;
|
61
|
-
border-style: solid;
|
62
|
-
border-color: #CCCCCC;
|
63
|
-
border-width: 1px 0px 0px 0px;
|
64
|
-
}
|
65
|
-
#description-inner
|
66
|
-
{
|
67
|
-
padding: 10px;
|
68
|
-
font-size: 14px;
|
69
|
-
line-height: 24px;
|
70
|
-
color: #999999;
|
71
|
-
}
|
72
|
-
</style>
|
73
|
-
</head>
|
74
|
-
<body>
|
75
|
-
<div id="dialog">
|
76
|
-
<div id="code-outer">
|
77
|
-
<div id="code-inner">422</div>
|
78
|
-
</div>
|
79
|
-
<div id="message">
|
80
|
-
<div id="status-outer">
|
81
|
-
<div id="status-inner">Unprocessable Entity</div>
|
82
|
-
</div>
|
83
|
-
<div id="description-outer">
|
84
|
-
<div id="description-inner">
|
85
|
-
<div>要求されたURLは処理できませんでした。</div>
|
86
|
-
</div>
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
</body>
|
91
|
-
</html>
|