authlogic 4.4.2 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +5 -5
  2. data/lib/authlogic.rb +4 -28
  3. data/lib/authlogic/acts_as_authentic/base.rb +3 -18
  4. data/lib/authlogic/acts_as_authentic/email.rb +3 -170
  5. data/lib/authlogic/acts_as_authentic/logged_in_status.rb +3 -1
  6. data/lib/authlogic/acts_as_authentic/login.rb +7 -174
  7. data/lib/authlogic/acts_as_authentic/magic_columns.rb +7 -4
  8. data/lib/authlogic/acts_as_authentic/password.rb +54 -253
  9. data/lib/authlogic/acts_as_authentic/perishable_token.rb +8 -5
  10. data/lib/authlogic/acts_as_authentic/persistence_token.rb +10 -4
  11. data/lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb +53 -0
  12. data/lib/authlogic/acts_as_authentic/queries/find_with_case.rb +36 -20
  13. data/lib/authlogic/acts_as_authentic/session_maintenance.rb +8 -6
  14. data/lib/authlogic/acts_as_authentic/single_access_token.rb +10 -8
  15. data/lib/authlogic/config.rb +9 -1
  16. data/lib/authlogic/controller_adapters/abstract_adapter.rb +7 -4
  17. data/lib/authlogic/controller_adapters/rack_adapter.rb +2 -0
  18. data/lib/authlogic/controller_adapters/rails_adapter.rb +19 -19
  19. data/lib/authlogic/controller_adapters/sinatra_adapter.rb +6 -0
  20. data/lib/authlogic/cookie_credentials.rb +63 -0
  21. data/lib/authlogic/crypto_providers.rb +5 -20
  22. data/lib/authlogic/crypto_providers/bcrypt.rb +3 -3
  23. data/lib/authlogic/crypto_providers/md5.rb +3 -6
  24. data/lib/authlogic/crypto_providers/scrypt.rb +2 -0
  25. data/lib/authlogic/crypto_providers/sha1.rb +4 -6
  26. data/lib/authlogic/crypto_providers/sha256.rb +2 -0
  27. data/lib/authlogic/crypto_providers/sha512.rb +6 -5
  28. data/lib/authlogic/i18n.rb +3 -1
  29. data/lib/authlogic/i18n/translator.rb +3 -0
  30. data/lib/authlogic/random.rb +2 -0
  31. data/lib/authlogic/session/base.rb +2087 -39
  32. data/lib/authlogic/session/magic_column/assigns_last_request_at.rb +46 -0
  33. data/lib/authlogic/test_case.rb +4 -0
  34. data/lib/authlogic/test_case/mock_controller.rb +2 -0
  35. data/lib/authlogic/test_case/mock_cookie_jar.rb +7 -0
  36. data/lib/authlogic/test_case/mock_logger.rb +2 -0
  37. data/lib/authlogic/test_case/mock_request.rb +2 -0
  38. data/lib/authlogic/test_case/rails_request_adapter.rb +2 -0
  39. data/lib/authlogic/version.rb +2 -1
  40. metadata +136 -182
  41. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -28
  42. data/.github/ISSUE_TEMPLATE/feature_proposal.md +0 -32
  43. data/.github/triage.md +0 -86
  44. data/.gitignore +0 -15
  45. data/.rubocop.yml +0 -133
  46. data/.rubocop_todo.yml +0 -74
  47. data/.travis.yml +0 -24
  48. data/CHANGELOG.md +0 -326
  49. data/CONTRIBUTING.md +0 -91
  50. data/Gemfile +0 -6
  51. data/LICENSE +0 -20
  52. data/README.md +0 -439
  53. data/Rakefile +0 -21
  54. data/UPGRADING.md +0 -22
  55. data/authlogic.gemspec +0 -40
  56. data/doc/use_normal_rails_validation.md +0 -82
  57. data/gemfiles/Gemfile.rails-4.2.x +0 -6
  58. data/gemfiles/Gemfile.rails-5.1.x +0 -6
  59. data/gemfiles/Gemfile.rails-5.2.x +0 -6
  60. data/lib/authlogic/acts_as_authentic/restful_authentication.rb +0 -106
  61. data/lib/authlogic/acts_as_authentic/validations_scope.rb +0 -35
  62. data/lib/authlogic/authenticates_many/association.rb +0 -50
  63. data/lib/authlogic/authenticates_many/base.rb +0 -81
  64. data/lib/authlogic/crypto_providers/aes256.rb +0 -71
  65. data/lib/authlogic/crypto_providers/wordpress.rb +0 -72
  66. data/lib/authlogic/regex.rb +0 -79
  67. data/lib/authlogic/session/activation.rb +0 -73
  68. data/lib/authlogic/session/active_record_trickery.rb +0 -65
  69. data/lib/authlogic/session/brute_force_protection.rb +0 -127
  70. data/lib/authlogic/session/callbacks.rb +0 -153
  71. data/lib/authlogic/session/cookies.rb +0 -296
  72. data/lib/authlogic/session/existence.rb +0 -103
  73. data/lib/authlogic/session/foundation.rb +0 -105
  74. data/lib/authlogic/session/http_auth.rb +0 -107
  75. data/lib/authlogic/session/id.rb +0 -53
  76. data/lib/authlogic/session/klass.rb +0 -73
  77. data/lib/authlogic/session/magic_columns.rb +0 -119
  78. data/lib/authlogic/session/magic_states.rb +0 -82
  79. data/lib/authlogic/session/params.rb +0 -130
  80. data/lib/authlogic/session/password.rb +0 -318
  81. data/lib/authlogic/session/perishable_token.rb +0 -24
  82. data/lib/authlogic/session/persistence.rb +0 -77
  83. data/lib/authlogic/session/priority_record.rb +0 -38
  84. data/lib/authlogic/session/scopes.rb +0 -138
  85. data/lib/authlogic/session/session.rb +0 -77
  86. data/lib/authlogic/session/timeout.rb +0 -103
  87. data/lib/authlogic/session/unauthorized_record.rb +0 -56
  88. data/lib/authlogic/session/validation.rb +0 -93
  89. data/test/acts_as_authentic_test/base_test.rb +0 -27
  90. data/test/acts_as_authentic_test/email_test.rb +0 -241
  91. data/test/acts_as_authentic_test/logged_in_status_test.rb +0 -64
  92. data/test/acts_as_authentic_test/login_test.rb +0 -153
  93. data/test/acts_as_authentic_test/magic_columns_test.rb +0 -29
  94. data/test/acts_as_authentic_test/password_test.rb +0 -263
  95. data/test/acts_as_authentic_test/perishable_token_test.rb +0 -98
  96. data/test/acts_as_authentic_test/persistence_token_test.rb +0 -62
  97. data/test/acts_as_authentic_test/restful_authentication_test.rb +0 -48
  98. data/test/acts_as_authentic_test/session_maintenance_test.rb +0 -150
  99. data/test/acts_as_authentic_test/single_access_test.rb +0 -46
  100. data/test/adapter_test.rb +0 -23
  101. data/test/authenticates_many_test.rb +0 -33
  102. data/test/config_test.rb +0 -38
  103. data/test/crypto_provider_test/aes256_test.rb +0 -16
  104. data/test/crypto_provider_test/bcrypt_test.rb +0 -16
  105. data/test/crypto_provider_test/scrypt_test.rb +0 -16
  106. data/test/crypto_provider_test/sha1_test.rb +0 -25
  107. data/test/crypto_provider_test/sha256_test.rb +0 -16
  108. data/test/crypto_provider_test/sha512_test.rb +0 -16
  109. data/test/crypto_provider_test/wordpress_test.rb +0 -26
  110. data/test/fixtures/companies.yml +0 -5
  111. data/test/fixtures/employees.yml +0 -17
  112. data/test/fixtures/projects.yml +0 -3
  113. data/test/fixtures/users.yml +0 -41
  114. data/test/i18n/lol.yml +0 -4
  115. data/test/i18n_test.rb +0 -35
  116. data/test/libs/affiliate.rb +0 -9
  117. data/test/libs/company.rb +0 -8
  118. data/test/libs/employee.rb +0 -9
  119. data/test/libs/employee_session.rb +0 -4
  120. data/test/libs/ldaper.rb +0 -5
  121. data/test/libs/project.rb +0 -5
  122. data/test/libs/user.rb +0 -9
  123. data/test/libs/user_session.rb +0 -27
  124. data/test/random_test.rb +0 -15
  125. data/test/session_test/activation_test.rb +0 -45
  126. data/test/session_test/active_record_trickery_test.rb +0 -78
  127. data/test/session_test/brute_force_protection_test.rb +0 -110
  128. data/test/session_test/callbacks_test.rb +0 -42
  129. data/test/session_test/cookies_test.rb +0 -226
  130. data/test/session_test/credentials_test.rb +0 -0
  131. data/test/session_test/existence_test.rb +0 -88
  132. data/test/session_test/foundation_test.rb +0 -24
  133. data/test/session_test/http_auth_test.rb +0 -60
  134. data/test/session_test/id_test.rb +0 -19
  135. data/test/session_test/klass_test.rb +0 -42
  136. data/test/session_test/magic_columns_test.rb +0 -62
  137. data/test/session_test/magic_states_test.rb +0 -60
  138. data/test/session_test/params_test.rb +0 -61
  139. data/test/session_test/password_test.rb +0 -107
  140. data/test/session_test/perishability_test.rb +0 -17
  141. data/test/session_test/persistence_test.rb +0 -35
  142. data/test/session_test/scopes_test.rb +0 -68
  143. data/test/session_test/session_test.rb +0 -80
  144. data/test/session_test/timeout_test.rb +0 -84
  145. data/test/session_test/unauthorized_record_test.rb +0 -15
  146. data/test/session_test/validation_test.rb +0 -25
  147. data/test/test_helper.rb +0 -272
@@ -1,28 +0,0 @@
1
- ---
2
- name: I want to fix a bug, but need some help
3
- about: >
4
- If the bug is easy to reproduce, we will help. However, you must fix the bug,
5
- in a reasonable amount of time, or your issue will be closed. See
6
- CONTRIBUTING.md
7
-
8
- ---
9
-
10
- - [ ] This is not a usage question.
11
- - Our volunteers' time is limited, so please ask usage questions on
12
- [StackOverflow](http://stackoverflow.com/questions/tagged/authlogic).
13
- - [ ] This is not a security issue.
14
- - Do not disclose security issues in public. See our [contributing
15
- guide](https://github.com/binarylogic/authlogic/blob/master/CONTRIBUTING.md)
16
- for instructions.
17
- - [ ] This is a reproducible bug, and I am committed to fixing it in
18
- a reasonable amount of time.
19
- - [ ] If I cannot fix this bug in a reasonable amount of time, I understand
20
- this issue will be closed.
21
-
22
- # Expected Behavior
23
-
24
- Describe.
25
-
26
- # Actual Behavior
27
-
28
- Describe.
@@ -1,32 +0,0 @@
1
- ---
2
- name: Feature Proposal
3
- about: >
4
- Propose something that you would like to build. We'll help, but you must build
5
- it yourself, in a reasonable amount of time, or your issue will be closed. See
6
- CONTRIBUTING.md
7
-
8
- ---
9
-
10
- - [ ] This is not a usage question.
11
- - Our volunteers' time is limited, so please ask usage questions on
12
- [StackOverflow](http://stackoverflow.com/questions/tagged/authlogic).
13
- - [ ] This is not a security issue.
14
- - Do not disclose security issues in public. See our [contributing
15
- guide](https://github.com/binarylogic/authlogic/blob/master/CONTRIBUTING.md)
16
- for instructions.
17
- - [ ] I am committed to implementing this feature in a reasonable amount of time.
18
- - [ ] If I cannot implement this feature in a reasonable amount of time, I
19
- understand this issue will be closed.
20
-
21
- # Current Behavior
22
-
23
- Describe.
24
-
25
- # Proposed Behavior
26
-
27
- Describe.
28
-
29
- # Proposed Solution
30
-
31
- It's OK if you don't have a solution, we can help with that. But, whatever
32
- solution we decide on, you must build yourself, in a reasonable amount of time.
data/.github/triage.md DELETED
@@ -1,86 +0,0 @@
1
- # Triage
2
-
3
- Common responses to issues.
4
-
5
- ## Usage question we were able to answer
6
-
7
- ```
8
- If that doesn't answer your question, please ask a new question
9
- on [stackoverflow][1]. Unfortunatley, we just don't have enough volunteers to
10
- handle usage questions on github.
11
-
12
- Also, please check the [reference documentation][2]. You might find something
13
- there that's not in the readme.
14
-
15
- Thanks!
16
-
17
- [1]: http://stackoverflow.com/questions/tagged/authlogic
18
- [2]: https://github.com/binarylogic/authlogic#1c-reference-documentation
19
- ```
20
-
21
- ## Old issue, generic
22
-
23
- ```
24
- Hello, I'm going through old authlogic issues and seeing what to do with them.
25
- Skimming through this, it's unclear if it's a usage question, a feature
26
- suggestion, or a bug report.
27
-
28
- If this is a bug report, and you can still reproduce this issue with a clean
29
- install of the latest version of authlogic and rails (currently 3.6.0 and 5.1.4
30
- respectively), please create a git repo with a sample app that reproduces the
31
- problem, and open a new issue.
32
-
33
- If this is a feature suggestion, it's still relevant, and you are committed to
34
- implementing it, please open a new issue and we can discuss your implementation
35
- plan.
36
-
37
- If this is a usage question, please ask it on [stackoverflow][1]. Unfortunatley,
38
- we just don't have enough volunteers to handle usage questions on github. Also,
39
- please check the [reference documentation][2]. You might find something there
40
- that's not in the readme.
41
-
42
- Thanks!
43
-
44
- [1]: http://stackoverflow.com/questions/tagged/authlogic
45
- [2]: https://github.com/binarylogic/authlogic#1c-reference-documentation
46
- ```
47
-
48
- ## Old issue, usage question / feature suggestion
49
-
50
- ```
51
- Hello, I'm going through old authlogic issues and seeing what to do with them.
52
- This one looks a bit like a usage question and a bit like a feature suggestion.
53
-
54
- If this is a feature suggestion, it's still relevant, and you are committed to
55
- implementing it, please open a new issue and we can discuss your implementation
56
- plan.
57
-
58
- If this is a usage question, please ask it on [stackoverflow][1]. Unfortunatley,
59
- we just don't have enough volunteers to handle usage questions on github. Also,
60
- please check the [reference documentation][2]. You might find something there
61
- that's not in the readme.
62
-
63
- Thanks!
64
-
65
- [1]: http://stackoverflow.com/questions/tagged/authlogic
66
- [2]: https://github.com/binarylogic/authlogic#1c-reference-documentation
67
- ```
68
-
69
- ## Old issue, bug report
70
-
71
- ```
72
- Hello, I'm going through old authlogic issues and seeing what to do with them.
73
- This one looks like a bug report.
74
-
75
- If you can still reproduce this issue with a clean install of the latest version
76
- of authlogic and rails, please create a git repo with a sample app that
77
- reproduces the problem, and open a new issue.
78
-
79
- If this was more of a usage question than a bug report, please ask your question
80
- on [stackoverflow][1]. Unfortunatley, we just don't have enough volunteers to
81
- handle usage questions on github.
82
-
83
- Thanks!
84
-
85
- [1]: http://stackoverflow.com/questions/tagged/authlogic
86
- ```
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- .DS_Store
2
- .swp
3
- *.gem
4
- *.log
5
- *.sqlite3
6
- pkg/*
7
- coverage/*
8
- benchmarks/*
9
- .rvmrc
10
- gemfiles/Gemfile*.lock
11
- .bundle
12
- Gemfile.lock
13
- .ruby-gemset
14
- .ruby-version
15
- .byebug_history
data/.rubocop.yml DELETED
@@ -1,133 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- Exclude:
5
- # TravisCI runs `bundle install --path=${BUNDLE_PATH:-vendor/bundle}`
6
- # causing our bundle to be installed in `gemfiles/vendor/bundle`.
7
- # Regardless, we have no interest in linting files in our bundle :D
8
- - gemfiles/vendor/bundle/**/*
9
- # Specify lowest supported ruby version. If we committed our .ruby-version
10
- # file, we wouldn't have to specify this (https://bit.ly/2vNTsue), but we
11
- # don't commit that file because that would interfere with testing multiple
12
- # rubies on CI.
13
- TargetRubyVersion: 2.3
14
-
15
- # Please use normal indentation when aligning parameters.
16
- #
17
- # Good:
18
- #
19
- # method_call(
20
- # a,
21
- # b
22
- # )
23
- #
24
- # method_call(a,
25
- # b
26
- # )
27
- #
28
- # Bad:
29
- #
30
- # method_call(a,
31
- # b)
32
- #
33
- # The latter is harder to maintain and uses too much horizontal space.
34
- Layout/AlignParameters:
35
- EnforcedStyle: with_fixed_indentation
36
-
37
- Layout/MultilineMethodCallIndentation:
38
- EnforcedStyle: indented
39
-
40
- Layout/MultilineOperationIndentation:
41
- EnforcedStyle: indented
42
-
43
- Metrics/AbcSize:
44
- Exclude:
45
- # crypto_providers/wordpress is deprecated so we will not attempt to
46
- # improve its quality.
47
- - lib/authlogic/crypto_providers/wordpress.rb
48
- # In an ideal world tests would be held to the same ABC metric as production
49
- # code. In practice, time spent doing so is not nearly as valuable as
50
- # spending the same time improving production code.
51
- - test/**/*
52
-
53
- # Questionable value compared to metrics like AbcSize or CyclomaticComplexity.
54
- Metrics/BlockLength:
55
- Enabled: false
56
-
57
- # Questionable value compared to metrics like AbcSize or CyclomaticComplexity.
58
- Metrics/ClassLength:
59
- Enabled: false
60
-
61
- Metrics/CyclomaticComplexity:
62
- Exclude:
63
- # crypto_providers/wordpress is deprecated so we will not attempt to
64
- # improve its quality.
65
- - lib/authlogic/crypto_providers/wordpress.rb
66
-
67
- # Aim for 80, but 100 is OK.
68
- Metrics/LineLength:
69
- Max: 100
70
-
71
- # Questionable value compared to metrics like AbcSize or CyclomaticComplexity.
72
- Metrics/MethodLength:
73
- Enabled: false
74
-
75
- # Questionable value compared to metrics like AbcSize or CyclomaticComplexity.
76
- Metrics/ModuleLength:
77
- Enabled: false
78
-
79
- # Sometimes prefixing a method name with get_ or set_ is a reasonable choice.
80
- Naming/AccessorMethodName:
81
- Enabled: false
82
-
83
- # Having a consistent delimiter, like EOS, improves reading speed. The delimiter
84
- # is syntactic noise, just like a quotation mark, and inconsistent naming would
85
- # hurt reading speed, just as inconsistent quoting would.
86
- Naming/HeredocDelimiterNaming:
87
- Enabled: false
88
-
89
- # Avoid single-line method definitions.
90
- Style/EmptyMethod:
91
- EnforcedStyle: expanded
92
-
93
- # Avoid annotated tokens except in desperately complicated format strings.
94
- # In 99% of format strings they actually make it less readable.
95
- Style/FormatStringToken:
96
- Enabled: false
97
-
98
- # Too subtle to lint. Guard clauses are great, use them if they help.
99
- Style/GuardClause:
100
- Enabled: false
101
-
102
- # Too subtle to lint. A multi-line conditional may improve readability, even if
103
- # a postfix conditional would satisfy `Metrics/LineLength`.
104
- Style/IfUnlessModifier:
105
- Enabled: false
106
-
107
- # Too subtle to lint. Use semantic style, but prefer `}.x` over `end.x`.
108
- Style/BlockDelimiters:
109
- Enabled: false
110
-
111
- # Use the nested style because it is safer. It is easier to make mistakes with
112
- # the compact style.
113
- Style/ClassAndModuleChildren:
114
- EnforcedStyle: nested
115
-
116
- # Both `module_function` and `extend_self` are legitimate. Most importantly,
117
- # they are different (http://bit.ly/2hSQAGm)
118
- Style/ModuleFunction:
119
- Enabled: false
120
-
121
- # The decision of when to use slashes `/foo/` or percent-r `%r{foo}` is too
122
- # subtle to lint. Use whichever requires fewer backslash escapes.
123
- Style/RegexpLiteral:
124
- AllowInnerSlashes: true
125
-
126
- # We use words, like `$LOAD_PATH`, because they are much less confusing that
127
- # arcane symbols like `$:`. Unfortunately, we must then `require "English"` in
128
- # a few places, but it's worth it so that we can read our code.
129
- Style/SpecialGlobalVars:
130
- EnforcedStyle: use_english_names
131
-
132
- Style/StringLiterals:
133
- EnforcedStyle: double_quotes
data/.rubocop_todo.yml DELETED
@@ -1,74 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2018-05-22 23:50:03 -0400 using RuboCop version 0.56.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 10
10
- Metrics/AbcSize:
11
- Max: 18.5
12
-
13
- # Offense count: 59
14
- # Cop supports --auto-correct.
15
- # Configuration parameters: EnforcedStyle.
16
- # SupportedStyles: prefer_alias, prefer_alias_method
17
- Style/Alias:
18
- Enabled: false
19
-
20
- # Offense count: 5
21
- Style/ClassVars:
22
- Exclude:
23
- - 'lib/authlogic/i18n.rb'
24
-
25
- # Offense count: 22
26
- Style/Documentation:
27
- Exclude:
28
- # Permanent
29
- - 'test/**/*'
30
-
31
- # TODO
32
- - 'lib/authlogic/config.rb'
33
- - 'lib/authlogic/controller_adapters/sinatra_adapter.rb'
34
- - 'lib/authlogic/crypto_providers.rb'
35
- - 'lib/authlogic/i18n/translator.rb'
36
- - 'lib/authlogic/session/activation.rb'
37
- - 'lib/authlogic/session/active_record_trickery.rb'
38
- - 'lib/authlogic/session/existence.rb'
39
- - 'lib/authlogic/session/foundation.rb'
40
- - 'lib/authlogic/session/klass.rb'
41
- - 'lib/authlogic/session/persistence.rb'
42
- - 'lib/authlogic/session/scopes.rb'
43
- - 'lib/authlogic/test_case.rb'
44
- - 'lib/authlogic/test_case/mock_cookie_jar.rb'
45
- - 'lib/authlogic/version.rb'
46
-
47
- Style/FrozenStringLiteralComment:
48
- Exclude:
49
- # Freezing strings in lib would be a breaking change. We'll have to wait
50
- # for the next major version.
51
- - lib/**/*
52
-
53
- # Offense count: 4
54
- Style/MethodMissingSuper:
55
- Exclude:
56
- - 'lib/authlogic/controller_adapters/abstract_adapter.rb'
57
- - 'lib/authlogic/controller_adapters/sinatra_adapter.rb'
58
- - 'lib/authlogic/test_case/mock_request.rb'
59
-
60
- # Offense count: 3
61
- Style/MissingRespondToMissing:
62
- Exclude:
63
- - 'lib/authlogic/controller_adapters/sinatra_adapter.rb'
64
- - 'lib/authlogic/test_case/mock_request.rb'
65
-
66
- Style/NumericPredicate:
67
- Enabled: false
68
-
69
- # Offense count: 10
70
- # Cop supports --auto-correct.
71
- # Configuration parameters: .
72
- # SupportedStyles: compact, exploded
73
- Style/RaiseArgs:
74
- EnforcedStyle: compact
data/.travis.yml DELETED
@@ -1,24 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
-
4
- before_install:
5
- - gem update --system
6
- - gem update bundler
7
-
8
- # We only test the oldest and the newest ruby versions that we support. We
9
- # do not test intermediate versions.
10
- rvm:
11
- - 2.3.7
12
- - 2.5.1
13
-
14
- # We only test living versions of rails, per the [rails maintenance
15
- # policy](http://guides.rubyonrails.org/maintenance_policy.html)
16
- gemfile:
17
- - gemfiles/Gemfile.rails-4.2.x
18
- - gemfiles/Gemfile.rails-5.1.x
19
- - gemfiles/Gemfile.rails-5.2.x
20
-
21
- matrix:
22
- fast_finish: true
23
-
24
- sudo: false
data/CHANGELOG.md DELETED
@@ -1,326 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
-
8
- ## 5.0.0 (Unreleased)
9
-
10
- * Breaking Changes
11
- * Drop AES256 crypto provider, deprecated in 4.2.0
12
- * Drop support for transitioning from restful_authentication, deprecated in 4.1.0
13
- * Uses `frozen_string_literal`, so assume all strings returned are frozen
14
- * Added
15
- * None
16
- * Fixed
17
- * None
18
-
19
- ## 4.4.2 (2018-09-23)
20
-
21
- * Breaking Changes
22
- * None
23
- * Added
24
- * None
25
- * Fixed
26
- * Improved instructions in deprecation warning for validations
27
-
28
- ## 4.4.1 (2018-09-21)
29
-
30
- * Breaking Changes
31
- * None
32
- * Added
33
- * None
34
- * Fixed
35
- * The methods for disabling Authlogic's "special" validations,
36
- eg. `validate_email_field = false` are actually deprecated, but should
37
- not produce a deprecation warning.
38
- * Only produce deprecation warning when configuring a validation, not when
39
- performing actual validation.
40
-
41
- ## 4.4.0 (2018-09-21)
42
-
43
- * Breaking Changes
44
- * None
45
- * Added
46
- * None
47
- * Fixed
48
- * None
49
- * Deprecation
50
- * [#627](https://github.com/binarylogic/authlogic/pull/627) -
51
- Deprecate `authenticates_many` without replacement
52
- * [#623](https://github.com/binarylogic/authlogic/pull/623) -
53
- Deprecate unnecessary validation features, use normal rails validation
54
- instead
55
-
56
- ## 4.3.0 (2018-08-12)
57
-
58
- * Breaking Changes
59
- * None
60
- * Added
61
- * None
62
- * Fixed
63
- * None
64
- * Dependencies
65
- * Drop support for ruby 2.2, which reached EoL on 2018-06-20
66
-
67
- ## 4.2.0 (2018-07-18)
68
-
69
- * Breaking Changes
70
- * None
71
- * Added
72
- * [#611](https://github.com/binarylogic/authlogic/pull/611) - Deprecate
73
- AES256, guide users to choose a better crypto provider
74
- * Fixed
75
- * None
76
-
77
- ## 4.1.1 (2018-05-23)
78
-
79
- * Breaking Changes
80
- * None
81
- * Added
82
- * None
83
- * Fixed
84
- * [#606](https://github.com/binarylogic/authlogic/pull/606) - Interpreter
85
- warnings about undefined instance variables
86
-
87
- ## 4.1.0 (2018-04-24)
88
-
89
- * Breaking Changes
90
- * None
91
- * Added
92
- * None
93
- * Fixed
94
- * None
95
- * Deprecated
96
- * crypto_providers/wordpress.rb, without replacement
97
- * restful_authentication, without replacement
98
-
99
- ## 4.0.1 (2018-03-20)
100
-
101
- * Breaking Changes
102
- * None
103
- * Added
104
- * None
105
- * Fixed
106
- * [#590](https://github.com/binarylogic/authlogic/pull/590) -
107
- Fix "cannot modify frozen gem" re: ActiveRecord.gem_version
108
-
109
- ## 4.0.0 (2018-03-18)
110
-
111
- * Breaking Changes, Major
112
- * Drop support for ruby < 2.2
113
- * Drop support for rails < 4.2
114
- * HTTP Basic Auth is now disabled by default (use allow_http_basic_auth to enable)
115
- * 'httponly' and 'secure' cookie options are enabled by default now
116
- * maintain_sessions config has been removed. It has been split into 2 new options:
117
- log_in_after_create & log_in_after_password_change (@lucasminissale)
118
- * [#558](https://github.com/binarylogic/authlogic/pull/558) Passing an
119
- ActionController::Parameters into authlogic will now raise an error
120
-
121
- * Breaking Changes, Minor
122
- * Methods in Authlogic::Random are now module methods, and are no longer
123
- instance methods. Previously, there were both. Do not use Authlogic::Random
124
- as a mixin.
125
- * Our mutable constants (e.g. arrays, hashes) are now frozen.
126
-
127
- * Added
128
- * `Authlogic.gem_version`
129
- * [#586](https://github.com/binarylogic/authlogic/pull/586) Support for SameSite cookies
130
- * [#581](https://github.com/binarylogic/authlogic/pull/581) Support for rails 5.2
131
- * Support for ruby 2.4, specifically openssl gem 2.0
132
- * [#98](https://github.com/binarylogic/authlogic/issues/98)
133
- I18n for invalid session error message. (@eugenebolshakov)
134
-
135
- * Fixed
136
- * Random.friendly_token (used for e.g. perishable token) now returns strings
137
- of consistent length, and conforms better to RFC-4648
138
- * ensure that login field validation uses correct locale (@sskirby)
139
- * add a respond_to_missing? in AbstractAdapter that also checks controller respond_to?
140
- * [#561](https://github.com/binarylogic/authlogic/issues/561) authenticates_many now works with scope_cookies:true
141
- * Allow tld up to 24 characters per https://data.iana.org/TLD/tlds-alpha-by-domain.txt
142
-
143
- ## 3.8.0 2018-02-07
144
-
145
- * Breaking Changes
146
- * None
147
-
148
- * Added
149
- * [#582](https://github.com/binarylogic/authlogic/pull/582) Support rails 5.2
150
- * [#583](https://github.com/binarylogic/authlogic/pull/583) Support openssl gem 2.0
151
-
152
- * Fixed
153
- * None
154
-
155
- ## 3.7.0 2018-02-07
156
-
157
- * Breaking Changes
158
- * None
159
-
160
- * Added
161
- * [#580](https://github.com/binarylogic/authlogic/pull/580) Deprecated
162
- `ActionController::Parameters`, will be removed in 4.0.0
163
-
164
- * Fixed
165
- * None
166
-
167
- ## 3.6.1 2017-09-30
168
-
169
- * Breaking Changes
170
- * None
171
-
172
- * Added
173
- * None
174
-
175
- * Fixed
176
- * Allow TLD up to 24 characters per
177
- https://data.iana.org/TLD/tlds-alpha-by-domain.txt
178
- * [#561](https://github.com/binarylogic/authlogic/issues/561)
179
- authenticates_many now works with scope_cookies:true
180
-
181
- ## 3.6.0 2017-04-28
182
-
183
- * Breaking Changes
184
- * None
185
-
186
- * Added
187
- * Support rails 5.1
188
-
189
- * Fixed
190
- * ensure that login field validation uses correct locale (@sskirby)
191
-
192
- ## 3.5.0 2016-08-29
193
-
194
- * new
195
- * Rails 5.0 support! Thanks to all reporters and contributors.
196
-
197
- * changes
198
- * increased default minimum password length to 8 (@iainbeeston)
199
- * bind parameters in where statement for rails 5 support
200
- * change callback for rails 5 support
201
- * converts the ActionController::Parameters to a Hash for rails 5 support
202
- * check last_request_at_threshold even if last_request_at_update_allowed returns true (@rofreg)
203
-
204
- ## 3.4.6 2015
205
-
206
- * changes
207
- * add Regex.email_nonascii for validation of emails w/unicode (@rchekaluk)
208
- * allow scrypt 2.x (@jaredbeck)
209
-
210
- ## 3.4.5 2015-03-01
211
-
212
- * changes
213
- * security-hardening fix and cleanup in persistence_token lookup
214
- * security-hardening fix in perishable_token lookup (thx @tomekr)
215
-
216
- ## 3.4.4 2014-12-23
217
-
218
- * changes
219
- * extract rw_config into an Authlogic::Config module
220
- * improved the way config changes are made in tests
221
- * fix for Rails 4.2 by extending ActiveModel
222
-
223
- ## 3.4.3 2014-10-08
224
-
225
- * changes
226
- * backfill CHANGELOG
227
- * better compatibility with jruby (thx @petergoldstein)
228
- * added scrypt as a dependency
229
- * cleanup some code (thx @roryokane)
230
- * reference 'bcrypt' gem instead of 'bcrypt-ruby' (thx @roryokane)
231
- * fixed typo (thx @chamini2)
232
- * fixed magic column validations for Rails 4.2 (thx @tom-kuca)
233
-
234
- ## 3.4.2 2014-04-28
235
-
236
- * changes
237
- * fixed the missing scrypt/bcrypt gem errors introduced in 3.4.1
238
- * implemented autoloading for providers
239
- * added longer subdomain support in email regex
240
-
241
- ## 3.4.1 2014-04-04
242
-
243
- * changes
244
- * undid an accidental revert of some code
245
-
246
- ## 3.4.0 2014-03-03
247
-
248
- * Breaking Changes
249
- * made scrypt the default crypto provider from SHA512
250
- (https://github.com/binarylogic/authlogic#upgrading-to-authlogic-340)
251
- See UPGRADING.md.
252
-
253
- * Added
254
- * officially support rails 4 (still supporting rails 3)
255
- * added cookie signing
256
- * added request store for better concurency for threaded environments
257
- * added a rack adapter for Rack middleware support
258
-
259
- * Fixed
260
- * ditched appraisal
261
- * improved find_with_case default performance
262
- * added travis ci support
263
-
264
- ## 3.3.0 2014-04-04
265
-
266
- * changes
267
- * added safeguard against a sqli that was also fixed in rails 3.2.10/3.1.9/3.0.18
268
- * imposed the bcrypt gem's mincost
269
- * removed shoulda macros
270
-
271
- ## 3.2.0 2012-12-07
272
-
273
- * new
274
- * scrypt support
275
-
276
- * changes
277
- * moved back to LOWER for find_with_case ci lookups
278
-
279
- ## 3.1.3 2012-06-13
280
-
281
- * changes
282
- * removed jeweler
283
-
284
- ## 3.1.2 2012-06-01
285
-
286
- * changes
287
- * mostly test fixes
288
-
289
- ## 3.1.1 2012-06-01
290
-
291
- * changes
292
- * mostly doc fixes
293
-
294
- ## 3.1.0 2011-10-19
295
-
296
- * changes
297
- * mostly small bug fixes
298
-
299
- ## 3.0.3 2011-05-17
300
-
301
- * changes
302
- * rails 3.1 support
303
-
304
- * new
305
- * http auth support
306
-
307
- ## 3.0.2 2011-04-30
308
-
309
- * changes
310
- * doc fixes
311
-
312
- ## 3.0.1 2011-04-30
313
-
314
- * changes
315
- * switch from LOWER to LIKE for find_with_case ci lookups
316
-
317
- ## 3.0.0 2011-04-30
318
-
319
- * new
320
- * ssl cookie support
321
- * httponly cookie support
322
- * added a session generator
323
-
324
- * changes
325
- * rails 3 support
326
- * ruby 1.9.2 support