authlogic 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of authlogic might be problematic. Click here for more details.
- data/README.rdoc +1 -0
- data/VERSION.yml +1 -1
- data/authlogic.gemspec +1 -1
- data/lib/authlogic/acts_as_authentic/logged_in_status.rb +2 -4
- data/lib/authlogic/acts_as_authentic/login.rb +2 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -68,6 +68,7 @@ If you find a bug or a problem please post it in the issues section. If you need
|
|
68
68
|
* <b>Authlogic LDAP addon:</b> http://github.com/binarylogic/authlogic_ldap
|
69
69
|
* <b>Authlogic Facebook Connect:</b> http://github.com/kalasjocke/authlogic_facebook_connect
|
70
70
|
* <b>Authlogic Facebook Connect (New JS API):</b> http://github.com/studybyte/authlogic_facebook_connect
|
71
|
+
* <b>Authlogic Facebook Shim</b> http://github.com/james2m/authlogic_facebook_shim
|
71
72
|
* <b>Authlogic OAuth (Twitter):</b> http://github.com/jrallison/authlogic_oauth
|
72
73
|
* <b>Authlogic PAM:</b> http://github.com/nbudin/authlogic_pam
|
73
74
|
|
data/VERSION.yml
CHANGED
data/authlogic.gemspec
CHANGED
@@ -31,11 +31,9 @@ module Authlogic
|
|
31
31
|
|
32
32
|
klass.class_eval do
|
33
33
|
include InstanceMethods
|
34
|
-
|
35
|
-
scope :
|
36
|
-
scope :logged_out, lambda { {:conditions => ["last_request_at is NULL or last_request_at <= ?", logged_in_timeout.seconds.ago]} }
|
34
|
+
scope :logged_in, where("last_request_at > ?", logged_in_timeout.seconds.ago)
|
35
|
+
scope :logged_out, where("last_request_at is NULL or last_request_at <= ?", logged_in_timeout.seconds.ago)
|
37
36
|
end
|
38
|
-
end
|
39
37
|
|
40
38
|
module InstanceMethods
|
41
39
|
# Returns true if the last_request_at > logged_in_timeout.
|
@@ -118,7 +118,8 @@ module Authlogic
|
|
118
118
|
if sensitivity
|
119
119
|
send("find_by_#{field}", value)
|
120
120
|
else
|
121
|
-
|
121
|
+
like_word = ::ActiveRecord::Base.connection.adapter_name == "PostgreSQL" ? "ILIKE" : "LIKE"
|
122
|
+
where("#{quoted_table_name}.#{field} #{like_word} ?", value.mb_chars).first
|
122
123
|
end
|
123
124
|
end
|
124
125
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: authlogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 3.0.
|
5
|
+
version: 3.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ben Johnson of Binary Logic
|
@@ -187,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
187
|
requirements:
|
188
188
|
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
|
-
hash:
|
190
|
+
hash: 3373969756034763681
|
191
191
|
segments:
|
192
192
|
- 0
|
193
193
|
version: "0"
|