authlogic 5.0.3 → 5.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c45e9cdc0ba30a2e68a34791e72d4f52f2bbc21266ffcd259d5e82ba2d0bd30e
4
- data.tar.gz: 84934beca4e75a60b104933ba59210f091f5cc83b5b3d36ec537d34fbe6b2e34
3
+ metadata.gz: f33a408b68b3809a5f68ee4a2c42aa60f472fd139f9e0a10fc1e20a6e32eb9a7
4
+ data.tar.gz: 75bfa342ae455b28fa5c12b46c6f03f3a872b3a65654a3bd911e4891b8b8e611
5
5
  SHA512:
6
- metadata.gz: 121dff7866f1bb504176b02e79f6117c6162c61fc5ab8bed9e6b99fd199f5227a8de96f43c30e5a41eae93dce6500260bf05b93b50a598c1675b2d9c705cc0f9
7
- data.tar.gz: 8c6f859285eb38a95c8e5618a8177fe711a5b0153503a9fd9f964f18fd85128f1ec2745dbd88154bdc4c9dda344c7b7cfc5facd5cd7ad64b0511c94d721603c1
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
- if defined?(::ApplicationController)
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
@@ -17,6 +17,6 @@ module Authlogic
17
17
  #
18
18
  # @api public
19
19
  def self.gem_version
20
- ::Gem::Version.new("5.0.3")
20
+ ::Gem::Version.new("5.0.4")
21
21
  end
22
22
  end
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.3
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-08 00:00:00.000000000 Z
13
+ date: 2019-09-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel