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 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
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 0
4
- :patch: 0
4
+ :patch: 1
5
5
  :build:
data/authlogic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{authlogic}
8
- s.version = "3.0.0"
8
+ s.version = "3.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Johnson of Binary Logic"]
@@ -31,11 +31,9 @@ module Authlogic
31
31
 
32
32
  klass.class_eval do
33
33
  include InstanceMethods
34
-
35
- scope :logged_in, lambda { {:conditions => ["last_request_at > ?", logged_in_timeout.seconds.ago]} }
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
- where("LOWER(#{quoted_table_name}.#{field}) = ?", value.mb_chars.downcase).first
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.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: -2697218861956486539
190
+ hash: 3373969756034763681
191
191
  segments:
192
192
  - 0
193
193
  version: "0"