aikotoba 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +334 -0
  4. data/Rakefile +18 -0
  5. data/app/controllers/aikotoba/accounts_controller.rb +61 -0
  6. data/app/controllers/aikotoba/application_controller.rb +13 -0
  7. data/app/controllers/aikotoba/confirms_controller.rb +103 -0
  8. data/app/controllers/aikotoba/recoveries_controller.rb +120 -0
  9. data/app/controllers/aikotoba/sessions_controller.rb +78 -0
  10. data/app/controllers/aikotoba/unlocks_controller.rb +103 -0
  11. data/app/controllers/concerns/aikotoba/authenticatable.rb +40 -0
  12. data/app/controllers/concerns/aikotoba/protection/session_fixation_attack.rb +21 -0
  13. data/app/controllers/concerns/aikotoba/protection/timing_atack.rb +23 -0
  14. data/app/mailers/aikotoba/account_mailer.rb +24 -0
  15. data/app/mailers/aikotoba/application_mailer.rb +5 -0
  16. data/app/models/aikotoba/account/confirmation_token.rb +22 -0
  17. data/app/models/aikotoba/account/recovery_token.rb +22 -0
  18. data/app/models/aikotoba/account/service/authentication.rb +65 -0
  19. data/app/models/aikotoba/account/service/confirmation.rb +31 -0
  20. data/app/models/aikotoba/account/service/lock.rb +42 -0
  21. data/app/models/aikotoba/account/service/recovery.rb +31 -0
  22. data/app/models/aikotoba/account/service/registration.rb +30 -0
  23. data/app/models/aikotoba/account/unlock_token.rb +22 -0
  24. data/app/models/aikotoba/account/value/password.rb +48 -0
  25. data/app/models/aikotoba/account/value/token.rb +18 -0
  26. data/app/models/aikotoba/account.rb +120 -0
  27. data/app/models/concerns/aikotoba/enabled_feature_checkable.rb +41 -0
  28. data/app/models/concerns/aikotoba/token_encryptable.rb +27 -0
  29. data/app/views/aikotoba/account_mailer/confirm.html.erb +3 -0
  30. data/app/views/aikotoba/account_mailer/recover.html.erb +3 -0
  31. data/app/views/aikotoba/account_mailer/unlock.html.erb +3 -0
  32. data/app/views/aikotoba/accounts/new.html.erb +19 -0
  33. data/app/views/aikotoba/common/_errors.html.erb +9 -0
  34. data/app/views/aikotoba/common/_message.html.erb +8 -0
  35. data/app/views/aikotoba/confirms/new.html.erb +14 -0
  36. data/app/views/aikotoba/recoveries/edit.html.erb +15 -0
  37. data/app/views/aikotoba/recoveries/new.html.erb +14 -0
  38. data/app/views/aikotoba/sessions/_links.html.erb +20 -0
  39. data/app/views/aikotoba/sessions/new.html.erb +16 -0
  40. data/app/views/aikotoba/unlocks/new.html.erb +21 -0
  41. data/app/views/layouts/aikotoba/application.html.erb +11 -0
  42. data/app/views/layouts/aikotoba/mailer.html.erb +13 -0
  43. data/app/views/layouts/aikotoba/mailer.text.erb +1 -0
  44. data/config/locales/en.yml +49 -0
  45. data/config/routes.rb +32 -0
  46. data/db/migrate/20211204121532_create_aikotoba_accounts.rb +50 -0
  47. data/lib/aikotoba/constraints/confirmable_constraint.rb +7 -0
  48. data/lib/aikotoba/constraints/lockable_constraint.rb +7 -0
  49. data/lib/aikotoba/constraints/recoverable_constraint.rb +7 -0
  50. data/lib/aikotoba/constraints/registerable_constraint.rb +7 -0
  51. data/lib/aikotoba/engine.rb +7 -0
  52. data/lib/aikotoba/errors.rb +7 -0
  53. data/lib/aikotoba/test/authentication_helper.rb +48 -0
  54. data/lib/aikotoba/version.rb +5 -0
  55. data/lib/aikotoba.rb +45 -0
  56. data/lib/tasks/aikotoba_tasks.rake +4 -0
  57. metadata +128 -0
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :aikotoba do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aikotoba
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Madogiwa
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-03-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 6.1.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 6.1.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: argon2
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.1'
41
+ description:
42
+ email:
43
+ - madogiwa0124@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - MIT-LICENSE
49
+ - README.md
50
+ - Rakefile
51
+ - app/controllers/aikotoba/accounts_controller.rb
52
+ - app/controllers/aikotoba/application_controller.rb
53
+ - app/controllers/aikotoba/confirms_controller.rb
54
+ - app/controllers/aikotoba/recoveries_controller.rb
55
+ - app/controllers/aikotoba/sessions_controller.rb
56
+ - app/controllers/aikotoba/unlocks_controller.rb
57
+ - app/controllers/concerns/aikotoba/authenticatable.rb
58
+ - app/controllers/concerns/aikotoba/protection/session_fixation_attack.rb
59
+ - app/controllers/concerns/aikotoba/protection/timing_atack.rb
60
+ - app/mailers/aikotoba/account_mailer.rb
61
+ - app/mailers/aikotoba/application_mailer.rb
62
+ - app/models/aikotoba/account.rb
63
+ - app/models/aikotoba/account/confirmation_token.rb
64
+ - app/models/aikotoba/account/recovery_token.rb
65
+ - app/models/aikotoba/account/service/authentication.rb
66
+ - app/models/aikotoba/account/service/confirmation.rb
67
+ - app/models/aikotoba/account/service/lock.rb
68
+ - app/models/aikotoba/account/service/recovery.rb
69
+ - app/models/aikotoba/account/service/registration.rb
70
+ - app/models/aikotoba/account/unlock_token.rb
71
+ - app/models/aikotoba/account/value/password.rb
72
+ - app/models/aikotoba/account/value/token.rb
73
+ - app/models/concerns/aikotoba/enabled_feature_checkable.rb
74
+ - app/models/concerns/aikotoba/token_encryptable.rb
75
+ - app/views/aikotoba/account_mailer/confirm.html.erb
76
+ - app/views/aikotoba/account_mailer/recover.html.erb
77
+ - app/views/aikotoba/account_mailer/unlock.html.erb
78
+ - app/views/aikotoba/accounts/new.html.erb
79
+ - app/views/aikotoba/common/_errors.html.erb
80
+ - app/views/aikotoba/common/_message.html.erb
81
+ - app/views/aikotoba/confirms/new.html.erb
82
+ - app/views/aikotoba/recoveries/edit.html.erb
83
+ - app/views/aikotoba/recoveries/new.html.erb
84
+ - app/views/aikotoba/sessions/_links.html.erb
85
+ - app/views/aikotoba/sessions/new.html.erb
86
+ - app/views/aikotoba/unlocks/new.html.erb
87
+ - app/views/layouts/aikotoba/application.html.erb
88
+ - app/views/layouts/aikotoba/mailer.html.erb
89
+ - app/views/layouts/aikotoba/mailer.text.erb
90
+ - config/locales/en.yml
91
+ - config/routes.rb
92
+ - db/migrate/20211204121532_create_aikotoba_accounts.rb
93
+ - lib/aikotoba.rb
94
+ - lib/aikotoba/constraints/confirmable_constraint.rb
95
+ - lib/aikotoba/constraints/lockable_constraint.rb
96
+ - lib/aikotoba/constraints/recoverable_constraint.rb
97
+ - lib/aikotoba/constraints/registerable_constraint.rb
98
+ - lib/aikotoba/engine.rb
99
+ - lib/aikotoba/errors.rb
100
+ - lib/aikotoba/test/authentication_helper.rb
101
+ - lib/aikotoba/version.rb
102
+ - lib/tasks/aikotoba_tasks.rake
103
+ homepage: https://github.com/madogiwa0124/aikotoba
104
+ licenses:
105
+ - MIT
106
+ metadata:
107
+ source_code_uri: https://github.com/madogiwa0124/aikotoba
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubygems_version: 3.3.3
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: Aikotoba is a Rails engine that makes it easy to implement simple email and
127
+ password authentication.
128
+ test_files: []