authlogic 5.0.3 → 5.0.4
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.
- checksums.yaml +4 -4
- data/lib/authlogic/controller_adapters/rails_adapter.rb +1 -24
- data/lib/authlogic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f33a408b68b3809a5f68ee4a2c42aa60f472fd139f9e0a10fc1e20a6e32eb9a7
|
|
4
|
+
data.tar.gz: 75bfa342ae455b28fa5c12b46c6f03f3a872b3a65654a3bd911e4891b8b8e611
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbdfd4e20f62d723e1171326aae2b48d195b2ffcb8e31ed0b4ec451a118abcd6f5b8c9bbf3a2b0a7206383f73f81e7fb9983c81d02f6c76cef732deda40f2736
|
|
7
|
+
data.tar.gz: dac40f1a0049cb1e63d699f6dda6a1df5bdedcc4e1a5f412d3908e515edd877ce3c9ba1d4955f154da18c515381e9bbcb551ba84afbc4a8c8bbe53ae02e10b17
|
|
@@ -7,20 +7,6 @@ module Authlogic
|
|
|
7
7
|
# Similar to how ActiveRecord has an adapter for MySQL, PostgreSQL, SQLite,
|
|
8
8
|
# etc.
|
|
9
9
|
class RailsAdapter < AbstractAdapter
|
|
10
|
-
# :nodoc:
|
|
11
|
-
class AuthlogicLoadedTooLateError < StandardError
|
|
12
|
-
def message
|
|
13
|
-
<<~EOS.squish
|
|
14
|
-
Authlogic is trying to add a callback to ActionController::Base but
|
|
15
|
-
ApplicationController has already been loaded, so the callback won't
|
|
16
|
-
be copied into your application. Generally this is due to another
|
|
17
|
-
gem or plugin requiring your ApplicationController prematurely, such
|
|
18
|
-
as the resource_controller plugin. Please require Authlogic first,
|
|
19
|
-
before these other gems / plugins.
|
|
20
|
-
EOS
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
10
|
def authenticate_with_http_basic(&block)
|
|
25
11
|
controller.authenticate_with_http_basic(&block)
|
|
26
12
|
end
|
|
@@ -43,16 +29,7 @@ module Authlogic
|
|
|
43
29
|
# "activates" authlogic.
|
|
44
30
|
module RailsImplementation
|
|
45
31
|
def self.included(klass) # :nodoc:
|
|
46
|
-
|
|
47
|
-
raise AuthlogicLoadedTooLateError
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# In Rails 4.0.2, the *_filter methods were renamed to *_action.
|
|
51
|
-
if klass.respond_to? :prepend_before_action
|
|
52
|
-
klass.prepend_before_action :activate_authlogic
|
|
53
|
-
else
|
|
54
|
-
klass.prepend_before_filter :activate_authlogic
|
|
55
|
-
end
|
|
32
|
+
klass.prepend_before_action :activate_authlogic
|
|
56
33
|
end
|
|
57
34
|
|
|
58
35
|
private
|
data/lib/authlogic/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: authlogic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.0.
|
|
4
|
+
version: 5.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Johnson
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2019-09-
|
|
13
|
+
date: 2019-09-11 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activemodel
|