multi_auth 0.0.4 → 0.0.5

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.
Files changed (58) hide show
  1. data/README +15 -1
  2. data/app/controllers/application_controller.rb +1 -0
  3. data/app/controllers/auth/email_controller.rb +1 -1
  4. data/app/controllers/auth/open_id_controller.rb +3 -3
  5. data/app/controllers/credentials/email_controller.rb +10 -9
  6. data/app/controllers/credentials/open_id_controller.rb +7 -1
  7. data/app/controllers/signup/email_controller.rb +5 -5
  8. data/app/controllers/signup/open_id_controller.rb +3 -1
  9. data/app/models/activation_mailer.rb +6 -6
  10. data/app/models/email_credential.rb +5 -0
  11. data/app/models/open_id_credential.rb +5 -0
  12. data/app/models/session.rb +4 -0
  13. data/app/views/activation_mailer/complete_for_credential.erb +1 -1
  14. data/app/views/activation_mailer/complete_for_notice.erb +1 -1
  15. data/app/views/activation_mailer/complete_for_signup.erb +1 -1
  16. data/app/views/activation_mailer/request_for_credential.erb +5 -5
  17. data/app/views/activation_mailer/request_for_notice.erb +5 -5
  18. data/app/views/activation_mailer/request_for_signup.erb +5 -5
  19. data/app/views/auth/email/index.html.erb +3 -3
  20. data/app/views/auth/index.html.erb +5 -5
  21. data/app/views/auth/logged_in.html.erb +5 -3
  22. data/app/views/auth/logged_out.html.erb +5 -3
  23. data/app/views/auth/open_id/index.html.erb +3 -3
  24. data/app/views/credentials/email/activated.html.erb +4 -1
  25. data/app/views/credentials/email/activation.html.erb +3 -3
  26. data/app/views/credentials/email/created.html.erb +4 -4
  27. data/app/views/credentials/email/delete.html.erb +7 -4
  28. data/app/views/credentials/email/edit_password.html.erb +4 -4
  29. data/app/views/credentials/email/new.html.erb +2 -2
  30. data/app/views/credentials/index.html.erb +16 -16
  31. data/app/views/credentials/open_id/delete.html.erb +6 -3
  32. data/app/views/credentials/open_id/new.html.erb +2 -2
  33. data/app/views/signup/email/_progress.html.erb +14 -14
  34. data/app/views/signup/email/activated.html.erb +4 -4
  35. data/app/views/signup/email/activation.html.erb +8 -8
  36. data/app/views/signup/email/created.html.erb +6 -4
  37. data/app/views/signup/email/index.html.erb +3 -3
  38. data/app/views/signup/email/validated.html.erb +5 -5
  39. data/app/views/signup/index.html.erb +22 -9
  40. data/app/views/signup/open_id/authenticated.html.erb +3 -3
  41. data/app/views/signup/open_id/created.html.erb +3 -3
  42. data/app/views/signup/open_id/index.html.erb +3 -3
  43. data/config/cucumber.yml +7 -0
  44. data/config/database.yml +4 -1
  45. data/config/environment.rb +1 -1
  46. data/config/routes.rb +21 -20
  47. data/db/test.sqlite3 +0 -0
  48. data/lib/multi_auth/action_controller.rb +32 -1
  49. data/lib/multi_auth.rb +5 -0
  50. data/lib/open_id_authentication/result.rb +5 -5
  51. data/locale/ja/LC_MESSAGES/multi_auth.mo +0 -0
  52. data/po/ja/multi_auth.po +639 -0
  53. data/po/multi_auth.pot +637 -0
  54. data/test/functional/auth/open_id_controller_test.rb +1 -1
  55. data/test/functional/auth_controller_test.rb +10 -7
  56. data/test/functional/credentials_controller_test.rb +9 -0
  57. data/test/unit/activation_mailer_test.rb +2 -2
  58. metadata +7 -2
data/po/multi_auth.pot ADDED
@@ -0,0 +1,637 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: multi_auth 1.0.0\n"
10
+ "POT-Creation-Date: 2010-01-06 15:47+0900\n"
11
+ "PO-Revision-Date: 2009-11-08 22:38+0900\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
18
+
19
+ #: app/controllers/credentials/email_controller.rb:41
20
+ msgctxt "MultiAuth"
21
+ msgid "Email authentication credential was successfully added."
22
+ msgstr ""
23
+
24
+ #: app/controllers/credentials/email_controller.rb:46
25
+ #: app/controllers/credentials/email_controller.rb:73
26
+ #: app/controllers/credentials/open_id_controller.rb:22
27
+ #: app/controllers/signup/email_controller.rb:27
28
+ #: app/controllers/signup/email_controller.rb:39
29
+ #: app/controllers/signup/email_controller.rb:67
30
+ msgctxt "MultiAuth"
31
+ msgid "Please confirm your input."
32
+ msgstr ""
33
+
34
+ #: app/controllers/credentials/email_controller.rb:68
35
+ msgctxt "MultiAuth"
36
+ msgid "Password was changed."
37
+ msgstr ""
38
+
39
+ #: app/controllers/credentials/email_controller.rb:87
40
+ msgctxt "MultiAuth"
41
+ msgid "Email authentication credential was successfully deleted."
42
+ msgstr ""
43
+
44
+ #: app/controllers/credentials/email_controller.rb:121
45
+ #: app/controllers/credentials/email_controller.rb:131
46
+ msgctxt "MultiAuth"
47
+ msgid "It is invalid email authentication credential."
48
+ msgstr ""
49
+
50
+ #: app/controllers/credentials/email_controller.rb:142
51
+ msgctxt "MultiAuth"
52
+ msgid "It is invalid activation token."
53
+ msgstr ""
54
+
55
+ #: app/controllers/credentials/email_controller.rb:150
56
+ msgctxt "MultiAuth"
57
+ msgid "This email authentication credential has been already activated."
58
+ msgstr ""
59
+
60
+ #: app/controllers/credentials/open_id_controller.rb:37
61
+ msgctxt "MultiAuth"
62
+ msgid "OpenID authentication credential was successfully added."
63
+ msgstr ""
64
+
65
+ #: app/controllers/credentials/open_id_controller.rb:41
66
+ msgctxt "MultiAuth"
67
+ msgid "This OpenID has been already registered."
68
+ msgstr ""
69
+
70
+ #: app/controllers/credentials/open_id_controller.rb:61
71
+ msgctxt "MultiAuth"
72
+ msgid "OpenID authentication credential was successfully deleted."
73
+ msgstr ""
74
+
75
+ #: app/controllers/credentials/open_id_controller.rb:74
76
+ #: app/controllers/credentials/open_id_controller.rb:85
77
+ msgctxt "MultiAuth"
78
+ msgid "It is invalid OpenID authentication credential."
79
+ msgstr ""
80
+
81
+ #: app/controllers/auth/email_controller.rb:30
82
+ msgctxt "MultiAuth"
83
+ msgid "The email address or the password is wrong."
84
+ msgstr ""
85
+
86
+ #: app/controllers/auth/open_id_controller.rb:24
87
+ #: app/views/auth/logged_in.html.erb:2
88
+ msgctxt "MultiAuth"
89
+ msgid "Logged in successfully."
90
+ msgstr ""
91
+
92
+ #: app/controllers/auth/open_id_controller.rb:27
93
+ msgctxt "MultiAuth"
94
+ msgid "This OpenID has not been registered yet."
95
+ msgstr ""
96
+
97
+ #: app/controllers/signup/email_controller.rb:93
98
+ msgctxt "MultiAuth"
99
+ msgid "It is an invalid activation key."
100
+ msgstr ""
101
+
102
+ #: app/controllers/signup/email_controller.rb:99
103
+ msgctxt "MultiAuth"
104
+ msgid "This email address has been already registered."
105
+ msgstr ""
106
+
107
+ #: app/controllers/signup/open_id_controller.rb:25
108
+ msgctxt "MultiAuth"
109
+ msgid ""
110
+ "Because specified OpenID has already been registered, it is not possible to "
111
+ "use it. "
112
+ msgstr ""
113
+
114
+ #: app/models/email_credential_edit_form.rb:21
115
+ msgid "EmailCredentialEditForm|Email"
116
+ msgstr ""
117
+
118
+ #: app/models/email_credential_edit_form.rb:22
119
+ msgid "EmailCredentialEditForm|Password"
120
+ msgstr ""
121
+
122
+ #: app/models/email_credential_edit_form.rb:23
123
+ msgid "EmailCredentialEditForm|Password confirmation"
124
+ msgstr ""
125
+
126
+ #: app/models/open_id_login_form.rb:13
127
+ msgid "OpenIdLoginForm|Openid url"
128
+ msgstr ""
129
+
130
+ #: app/models/activation_mailer.rb:17
131
+ msgctxt "MultiAuth"
132
+ msgid "User registration"
133
+ msgstr ""
134
+
135
+ #: app/models/activation_mailer.rb:30
136
+ msgctxt "MultiAuth"
137
+ msgid "User registration completed"
138
+ msgstr ""
139
+
140
+ #: app/models/activation_mailer.rb:44
141
+ msgctxt "MultiAuth"
142
+ msgid "Email address registration for authentication"
143
+ msgstr ""
144
+
145
+ #: app/models/activation_mailer.rb:57
146
+ msgctxt "MultiAuth"
147
+ msgid "Email address registration for authentication completed"
148
+ msgstr ""
149
+
150
+ #: app/models/activation_mailer.rb:71
151
+ msgctxt "MultiAuth"
152
+ msgid "Email address registration for notification"
153
+ msgstr ""
154
+
155
+ #: app/models/activation_mailer.rb:84
156
+ msgctxt "MultiAuth"
157
+ msgid "Email address registration for notification completed"
158
+ msgstr ""
159
+
160
+ #: app/models/email_credential.rb:-
161
+ msgid "email credential"
162
+ msgstr ""
163
+
164
+ #: app/models/email_credential.rb:-
165
+ msgid "EmailCredential|Activation token"
166
+ msgstr ""
167
+
168
+ #: app/models/email_credential.rb:- app/views/credentials/index.html.erb:50
169
+ #: app/views/credentials/email/delete.html.erb:13
170
+ #: app/views/credentials/email/activation.html.erb:8
171
+ #: app/views/signup/email/validated.html.erb:10
172
+ #: app/views/signup/email/activation.html.erb:16
173
+ msgid "EmailCredential|Email"
174
+ msgstr ""
175
+
176
+ #: app/models/email_credential.rb:-
177
+ msgid "EmailCredential|Activated at"
178
+ msgstr ""
179
+
180
+ #: app/models/email_credential.rb:- app/views/credentials/index.html.erb:49
181
+ msgid "EmailCredential|Loggedin at"
182
+ msgstr ""
183
+
184
+ #: app/models/email_credential.rb:22 app/views/credentials/index.html.erb:48
185
+ msgid "EmailCredential|Activated on"
186
+ msgstr ""
187
+
188
+ #: app/models/open_id_credential.rb:-
189
+ msgid "open id credential"
190
+ msgstr ""
191
+
192
+ #: app/models/open_id_credential.rb:-
193
+ msgid "OpenIdCredential|Identity url"
194
+ msgstr ""
195
+
196
+ #: app/models/open_id_credential.rb:- app/views/credentials/index.html.erb:10
197
+ msgid "OpenIdCredential|Loggedin at"
198
+ msgstr ""
199
+
200
+ #: app/models/open_id_credential.rb:19 app/views/credentials/index.html.erb:9
201
+ msgid "OpenIdCredential|Activated on"
202
+ msgstr ""
203
+
204
+ #: app/models/email_login_form.rb:15
205
+ msgid "EmailLoginForm|Email"
206
+ msgstr ""
207
+
208
+ #: app/models/email_login_form.rb:16
209
+ msgid "EmailLoginForm|Password"
210
+ msgstr ""
211
+
212
+ #: app/models/email_password_edit_form.rb:15
213
+ msgid "EmailPasswordEditForm|Password"
214
+ msgstr ""
215
+
216
+ #: app/models/email_password_edit_form.rb:16
217
+ msgid "EmailPasswordEditForm|Password confirmation"
218
+ msgstr ""
219
+
220
+ #: app/views/credentials/index.html.erb:2
221
+ msgctxt "MultiAuth"
222
+ msgid "Login setting"
223
+ msgstr ""
224
+
225
+ #: app/views/credentials/index.html.erb:4
226
+ msgctxt "MultiAuth"
227
+ msgid "OpenID authentication"
228
+ msgstr ""
229
+
230
+ #: app/views/credentials/index.html.erb:19
231
+ msgctxt "MultiAuth"
232
+ msgid "Add OpenID authentication"
233
+ msgstr ""
234
+
235
+ #: app/views/credentials/index.html.erb:27
236
+ msgctxt "MultiAuth"
237
+ msgid "There are no OpenID authentication."
238
+ msgstr ""
239
+
240
+ #: app/views/credentials/index.html.erb:36
241
+ #: app/views/credentials/index.html.erb:81
242
+ #: app/views/credentials/open_id/delete.html.erb:19
243
+ #: app/views/credentials/email/delete.html.erb:19
244
+ msgctxt "MultiAuth"
245
+ msgid "Delete"
246
+ msgstr ""
247
+
248
+ #: app/views/credentials/index.html.erb:43
249
+ msgctxt "MultiAuth"
250
+ msgid "Email address authentication"
251
+ msgstr ""
252
+
253
+ #: app/views/credentials/index.html.erb:58
254
+ msgctxt "MultiAuth"
255
+ msgid "Add email address authentication"
256
+ msgstr ""
257
+
258
+ #: app/views/credentials/index.html.erb:66
259
+ msgctxt "MultiAuth"
260
+ msgid "There are no email address authentication."
261
+ msgstr ""
262
+
263
+ #: app/views/credentials/index.html.erb:77
264
+ msgctxt "MultiAuth"
265
+ msgid "Waiting for activation"
266
+ msgstr ""
267
+
268
+ #: app/views/credentials/index.html.erb:80
269
+ #: app/views/credentials/email/edit_password.html.erb:2
270
+ msgctxt "MultiAuth"
271
+ msgid "Update password"
272
+ msgstr ""
273
+
274
+ #: app/views/credentials/open_id/delete.html.erb:2
275
+ #: app/views/credentials/open_id/delete.html.erb:7
276
+ msgctxt "MultiAuth"
277
+ msgid "Delete OpenID authentication credential."
278
+ msgstr ""
279
+
280
+ #: app/views/credentials/open_id/delete.html.erb:8
281
+ #: app/views/credentials/email/delete.html.erb:8
282
+ msgctxt "MultiAuth"
283
+ msgid "Are you sure?"
284
+ msgstr ""
285
+
286
+ #: app/views/credentials/open_id/new.html.erb:2
287
+ msgctxt "MultiAuth"
288
+ msgid "Add OpenID authentication credential"
289
+ msgstr ""
290
+
291
+ #: app/views/credentials/open_id/new.html.erb:16
292
+ #: app/views/credentials/email/new.html.erb:25
293
+ msgctxt "MultiAuth"
294
+ msgid "Add"
295
+ msgstr ""
296
+
297
+ #: app/views/credentials/email/edit_password.html.erb:21
298
+ msgctxt "MultiAuth"
299
+ msgid "Update"
300
+ msgstr ""
301
+
302
+ #: app/views/credentials/email/activated.html.erb:2
303
+ #: app/views/signup/open_id/created.html.erb:4
304
+ #: app/views/signup/email/_progress.html.erb:13
305
+ #: app/views/signup/email/activated.html.erb:4
306
+ #: app/views/signup/email/activated.html.erb:8
307
+ msgctxt "MultiAuth"
308
+ msgid "Registration completed"
309
+ msgstr ""
310
+
311
+ #: app/views/credentials/email/activated.html.erb:6
312
+ msgctxt "MultiAuth"
313
+ msgid "Top"
314
+ msgstr ""
315
+
316
+ #: app/views/credentials/email/delete.html.erb:2
317
+ #: app/views/credentials/email/delete.html.erb:7
318
+ msgctxt "MultiAuth"
319
+ msgid "Delete email authentication credential."
320
+ msgstr ""
321
+
322
+ #: app/views/credentials/email/new.html.erb:2
323
+ msgctxt "MultiAuth"
324
+ msgid "Add email authentication credential"
325
+ msgstr ""
326
+
327
+ #: app/views/credentials/email/created.html.erb:2
328
+ msgctxt "MultiAuth"
329
+ msgid "Pre-registeration completed"
330
+ msgstr ""
331
+
332
+ #: app/views/credentials/email/created.html.erb:6
333
+ msgctxt "MultiAuth"
334
+ msgid ""
335
+ "System sent a mail to email address you specified. Please access the URL "
336
+ "described in the mail. And complete registration."
337
+ msgstr ""
338
+
339
+ #: app/views/credentials/email/created.html.erb:7
340
+ msgctxt "MultiAuth"
341
+ msgid "Back"
342
+ msgstr ""
343
+
344
+ #: app/views/credentials/email/activation.html.erb:2
345
+ msgctxt "MultiAuth"
346
+ msgid "Activation"
347
+ msgstr ""
348
+
349
+ #: app/views/credentials/email/activation.html.erb:14
350
+ msgctxt "MultiAuth"
351
+ msgid "Activate"
352
+ msgstr ""
353
+
354
+ #: app/views/auth/logged_out.html.erb:2
355
+ msgctxt "MultiAuth"
356
+ msgid "You have been logged out."
357
+ msgstr ""
358
+
359
+ #: app/views/auth/logged_out.html.erb:21 app/views/auth/logged_in.html.erb:21
360
+ msgctxt "MultiAuth"
361
+ msgid "Please click %{link} when the page doesn't change."
362
+ msgstr ""
363
+
364
+ #: app/views/auth/index.html.erb:1 app/views/auth/index.html.erb:16
365
+ #: app/views/auth/index.html.erb:39 app/views/auth/open_id/index.html.erb:2
366
+ #: app/views/auth/open_id/index.html.erb:17
367
+ #: app/views/auth/email/index.html.erb:2
368
+ #: app/views/auth/email/index.html.erb:64
369
+ #: app/views/auth/email/index.html.erb:82
370
+ #: app/views/signup/open_id/created.html.erb:6
371
+ #: app/views/signup/email/activated.html.erb:9
372
+ msgctxt "MultiAuth"
373
+ msgid "Login"
374
+ msgstr ""
375
+
376
+ #: app/views/auth/index.html.erb:5
377
+ msgctxt "MultiAuth"
378
+ msgid "By OpenID"
379
+ msgstr ""
380
+
381
+ #: app/views/auth/index.html.erb:21
382
+ msgctxt "MultiAuth"
383
+ msgid "By email address"
384
+ msgstr ""
385
+
386
+ #: app/views/activation_mailer/request_for_credential.erb:1
387
+ msgctxt "MultiAuth"
388
+ msgid "Email address for authentication will be registered."
389
+ msgstr ""
390
+
391
+ #: app/views/activation_mailer/request_for_credential.erb:2
392
+ #: app/views/activation_mailer/request_for_signup.erb:2
393
+ #: app/views/activation_mailer/request_for_notice.erb:2
394
+ msgctxt "MultiAuth"
395
+ msgid "Registration is completed by accessing following URL."
396
+ msgstr ""
397
+
398
+ #: app/views/activation_mailer/request_for_credential.erb:8
399
+ #: app/views/activation_mailer/request_for_signup.erb:8
400
+ #: app/views/activation_mailer/request_for_notice.erb:8
401
+ msgctxt "MultiAuth"
402
+ msgid "- For access with cellular phone etc."
403
+ msgstr ""
404
+
405
+ #: app/views/activation_mailer/request_for_credential.erb:9
406
+ #: app/views/activation_mailer/request_for_signup.erb:9
407
+ #: app/views/activation_mailer/request_for_notice.erb:9
408
+ msgctxt "MultiAuth"
409
+ msgid ""
410
+ "It is not possible to register from the cellular phone etc. that do not "
411
+ "correspond to Cookie now."
412
+ msgstr ""
413
+
414
+ #: app/views/activation_mailer/request_for_credential.erb:10
415
+ #: app/views/activation_mailer/request_for_signup.erb:10
416
+ #: app/views/activation_mailer/request_for_notice.erb:10
417
+ msgctxt "MultiAuth"
418
+ msgid ""
419
+ "Please register after forwarding this mail to PC etc. though it is time."
420
+ msgstr ""
421
+
422
+ #: app/views/activation_mailer/request_for_signup.erb:1
423
+ msgctxt "MultiAuth"
424
+ msgid "Thank you for the user registration to %{app}."
425
+ msgstr ""
426
+
427
+ #: app/views/activation_mailer/complete_for_notice.erb:1
428
+ msgctxt "MultiAuth"
429
+ msgid "The email address registration was completed."
430
+ msgstr ""
431
+
432
+ #: app/views/activation_mailer/request_for_notice.erb:1
433
+ msgctxt "MultiAuth"
434
+ msgid "Email address for notification will be registered."
435
+ msgstr ""
436
+
437
+ #: app/views/activation_mailer/complete_for_credential.erb:1
438
+ msgctxt "MultiAuth"
439
+ msgid "The registration of the email address authentication was completed."
440
+ msgstr ""
441
+
442
+ #: app/views/activation_mailer/complete_for_signup.erb:1
443
+ msgctxt "MultiAuth"
444
+ msgid "The user registration was completed."
445
+ msgstr ""
446
+
447
+ #: app/views/signup/index.html.erb:2
448
+ msgctxt "MultiAuth"
449
+ msgid "Register your account"
450
+ msgstr ""
451
+
452
+ #: app/views/signup/index.html.erb:5
453
+ msgctxt "MultiAuth"
454
+ msgid "Let's start %{app}!"
455
+ msgstr ""
456
+
457
+ #: app/views/signup/index.html.erb:7
458
+ msgctxt "MultiAuth"
459
+ msgid "Registration is very easy."
460
+ msgstr ""
461
+
462
+ #: app/views/signup/index.html.erb:11
463
+ msgctxt "MultiAuth"
464
+ msgid "Register by OpenID!"
465
+ msgstr ""
466
+
467
+ #: app/views/signup/index.html.erb:13
468
+ msgctxt "MultiAuth"
469
+ msgid "Input OpenID"
470
+ msgstr ""
471
+
472
+ #: app/views/signup/index.html.erb:14
473
+ msgctxt "MultiAuth"
474
+ msgid "OpenID Authentication"
475
+ msgstr ""
476
+
477
+ #: app/views/signup/index.html.erb:15 app/views/signup/index.html.erb:35
478
+ #: app/views/signup/index.html.erb:37
479
+ msgctxt "MultiAuth"
480
+ msgid "Confirmation"
481
+ msgstr ""
482
+
483
+ #: app/views/signup/index.html.erb:16 app/views/signup/index.html.erb:38
484
+ msgctxt "MultiAuth"
485
+ msgid "Registration completed!"
486
+ msgstr ""
487
+
488
+ #: app/views/signup/index.html.erb:17 app/views/signup/index.html.erb:39
489
+ msgctxt "MultiAuth"
490
+ msgid "Flow"
491
+ msgstr ""
492
+
493
+ #: app/views/signup/index.html.erb:28
494
+ #: app/views/signup/open_id/index.html.erb:15
495
+ msgctxt "MultiAuth"
496
+ msgid "Next"
497
+ msgstr ""
498
+
499
+ #: app/views/signup/index.html.erb:32
500
+ msgctxt "MultiAuth"
501
+ msgid "Register by email address"
502
+ msgstr ""
503
+
504
+ #: app/views/signup/index.html.erb:34
505
+ msgctxt "MultiAuth"
506
+ msgid "Input email address and password"
507
+ msgstr ""
508
+
509
+ #: app/views/signup/index.html.erb:36
510
+ msgctxt "MultiAuth"
511
+ msgid "Recieve confirmation mail"
512
+ msgstr ""
513
+
514
+ #: app/views/signup/index.html.erb:60 app/views/signup/email/index.html.erb:27
515
+ msgctxt "MultiAuth"
516
+ msgid "Confirm"
517
+ msgstr ""
518
+
519
+ #: app/views/signup/open_id/authenticated.html.erb:2
520
+ #: app/views/signup/open_id/index.html.erb:2
521
+ #: app/views/signup/open_id/created.html.erb:2
522
+ #: app/views/signup/email/activated.html.erb:2
523
+ #: app/views/signup/email/index.html.erb:2
524
+ #: app/views/signup/email/created.html.erb:2
525
+ #: app/views/signup/email/validated.html.erb:2
526
+ #: app/views/signup/email/activation.html.erb:2
527
+ msgctxt "MultiAuth"
528
+ msgid "Signup"
529
+ msgstr ""
530
+
531
+ #: app/views/signup/open_id/authenticated.html.erb:4
532
+ msgctxt "MultiAuth"
533
+ msgid "Authentication completed"
534
+ msgstr ""
535
+
536
+ #: app/views/signup/open_id/authenticated.html.erb:14
537
+ #: app/views/signup/email/validated.html.erb:20
538
+ msgctxt "MultiAuth"
539
+ msgid "Register"
540
+ msgstr ""
541
+
542
+ #: app/views/signup/email/_progress.html.erb:9
543
+ msgctxt "MultiAuth"
544
+ msgid "Input login info"
545
+ msgstr ""
546
+
547
+ #: app/views/signup/email/_progress.html.erb:10
548
+ msgctxt "MultiAuth"
549
+ msgid "Confirm login info"
550
+ msgstr ""
551
+
552
+ #: app/views/signup/email/_progress.html.erb:11
553
+ #: app/views/signup/email/created.html.erb:4
554
+ msgctxt "MultiAuth"
555
+ msgid "Pre-registration completed"
556
+ msgstr ""
557
+
558
+ #: app/views/signup/email/_progress.html.erb:12
559
+ #: app/views/signup/email/validated.html.erb:4
560
+ #: app/views/signup/email/activation.html.erb:4
561
+ msgctxt "MultiAuth"
562
+ msgid "Registration confirmation"
563
+ msgstr ""
564
+
565
+ #: app/views/signup/email/index.html.erb:4
566
+ msgctxt "MultiAuth"
567
+ msgid "Signup by email address"
568
+ msgstr ""
569
+
570
+ #: app/views/signup/email/created.html.erb:9
571
+ msgctxt "MultiAuth"
572
+ msgid "Sent a mail to %{email}."
573
+ msgstr ""
574
+
575
+ #: app/views/signup/email/validated.html.erb:14
576
+ msgid "EmailCredential|Password"
577
+ msgstr ""
578
+
579
+ #: app/views/signup/email/activation.html.erb:9
580
+ msgctxt "MultiAuth"
581
+ msgid "Valid activation token"
582
+ msgstr ""
583
+
584
+ #: app/views/signup/email/activation.html.erb:11
585
+ msgctxt "MultiAuth"
586
+ msgid "Activated"
587
+ msgstr ""
588
+
589
+ #: app/views/signup/email/activation.html.erb:13
590
+ msgctxt "MultiAuth"
591
+ msgid "Inactivated"
592
+ msgstr ""
593
+
594
+ #: app/views/signup/email/activation.html.erb:22
595
+ msgctxt "MultiAuth"
596
+ msgid "Regist"
597
+ msgstr ""
598
+
599
+ #: app/views/signup/email/activation.html.erb:26
600
+ msgctxt "MultiAuth"
601
+ msgid "Invalid activation token"
602
+ msgstr ""
603
+
604
+ #: lib/open_id_authentication/result.rb:5
605
+ msgctxt "OpenIdAuthentication"
606
+ msgid "Sorry, the OpenID server couldn't be found"
607
+ msgstr ""
608
+
609
+ #: lib/open_id_authentication/result.rb:6
610
+ msgctxt "OpenIdAuthentication"
611
+ msgid "Sorry, but this does not appear to be a valid OpenID"
612
+ msgstr ""
613
+
614
+ #: lib/open_id_authentication/result.rb:7
615
+ msgctxt "OpenIdAuthentication"
616
+ msgid "OpenID verification was canceled"
617
+ msgstr ""
618
+
619
+ #: lib/open_id_authentication/result.rb:8
620
+ msgctxt "OpenIdAuthentication"
621
+ msgid "OpenID verification failed"
622
+ msgstr ""
623
+
624
+ #: lib/open_id_authentication/result.rb:9
625
+ msgctxt "OpenIdAuthentication"
626
+ msgid "OpenID verification needs setup"
627
+ msgstr ""
628
+
629
+ #: lib/multi_auth/action_controller.rb:34
630
+ msgctxt "MultiAuth"
631
+ msgid "Session has expired. Please login again."
632
+ msgstr ""
633
+
634
+ #: lib/multi_auth/action_controller.rb:43
635
+ msgctxt "MultiAuth"
636
+ msgid "Login required."
637
+ msgstr ""
@@ -44,7 +44,7 @@ class Auth::OpenIdControllerTest < ActionController::TestCase
44
44
  }
45
45
  assert_response(:redirect)
46
46
  assert_redirected_to(:controller => 'signup/open_id', :action => 'index')
47
- assert_equal('OpenID がまだ登録されていません。', @response.flash[:notice])
47
+ assert_equal('この OpenID はまだ登録されていません。', @response.flash[:notice])
48
48
  end
49
49
 
50
50
  [
@@ -2,13 +2,16 @@
2
2
  require 'test_helper'
3
3
 
4
4
  class AuthControllerTest < ActionController::TestCase
5
- test "routes" do
6
- base = {:controller => "auth"}
7
-
8
- assert_routing("/auth", base.merge(:action => "index"))
9
- assert_routing("/auth/logged_in", base.merge(:action => "logged_in"))
10
- assert_routing("/auth/logout", base.merge(:action => "logout"))
11
- assert_routing("/auth/logged_out", base.merge(:action => "logged_out"))
5
+ [
6
+ [:get, "/auth", "index"],
7
+ [:get, "/auth/logged_in", "logged_in"],
8
+ [:post, "/auth/logout", "logout"],
9
+ [:get, "/auth/logged_out", "logged_out"]
10
+ ].each do |method, path, action|
11
+ test "routes #{method} #{path}" do
12
+ base = {:controller => "auth"}
13
+ assert_routing({ :method => method, :path => path }, base.merge(:action => action))
14
+ end
12
15
  end
13
16
 
14
17
  test "GET index" do
@@ -46,4 +46,13 @@ class CredentialsControllerTest < ActionController::TestCase
46
46
  assert_redirected_to(root_path)
47
47
  assert_flash_error
48
48
  end
49
+
50
+ test "GET index, session expired" do
51
+ session[:expires_at] = Time.now - 1
52
+
53
+ get :index
54
+
55
+ assert_response(:success)
56
+ assert_flash_error
57
+ end
49
58
  end
@@ -59,7 +59,7 @@ class ActivationMailerTest < ActionMailer::TestCase
59
59
  :activation_url => "http://activation/url",
60
60
  }
61
61
  expected = {
62
- :subject => "[#{MultiAuth.application_name}] メールアドレス認証登録",
62
+ :subject => "[#{MultiAuth.application_name}] 認証用メールアドレス登録",
63
63
  :from => @klass::FromAddress,
64
64
  :recipients => "recipients@example.jp",
65
65
  :body => {:activation_url => "http://activation/url"},
@@ -80,7 +80,7 @@ class ActivationMailerTest < ActionMailer::TestCase
80
80
  :recipients => "recipients@example.jp",
81
81
  }
82
82
  expected = {
83
- :subject => "[#{MultiAuth.application_name}] メールアドレス認証登録完了",
83
+ :subject => "[#{MultiAuth.application_name}] 認証用メールアドレス登録完了",
84
84
  :from => @klass::FromAddress,
85
85
  :recipients => "recipients@example.jp",
86
86
  :body => {},