noodall-devise 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source :rubygems
2
2
 
3
3
  gemspec
4
4
 
5
- gem "rails", "3.0.1"
5
+ gem "rails", "~> 3.0.1"
6
6
  gem 'noodall-ui'
7
7
  gem "capybara", ">= 0.3.9"
8
8
  gem "rspec-rails", ">= 2.0.0.beta"
data/app/models/user.rb CHANGED
@@ -47,8 +47,9 @@ class User
47
47
 
48
48
  # Make emails for login case insensitive
49
49
  def self.find_for_authentication(conditions)
50
- conditions[:email] = /^#{conditions[:email].strip}$/i
51
- super(conditions)
50
+ filter_auth_params(conditions)
51
+ # Search using case sensitive stripped email
52
+ find(:first, :conditions => conditions.merge(:email => /^#{Regexp.escape(conditions[:email].strip)}$/i))
52
53
  end
53
54
 
54
55
  def web_image_extension
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module Devise
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
@@ -13,9 +13,9 @@ Gem::Specification.new do |s|
13
13
 
14
14
  s.required_rubygems_version = ">= 1.3.6"
15
15
  # s.rubyforge_project = "noodall-component-gallery"
16
- s.add_dependency 'devise', '~> 1.1.3'
16
+ s.add_dependency 'devise', '~> 1.1.8'
17
17
  s.add_dependency 'mm-devise', '~> 1.1.6'
18
-
18
+
19
19
  s.add_development_dependency "bundler", ">= 1.0.0"
20
20
 
21
21
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-devise
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors: []
13
13
 
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-04 00:00:00 +00:00
18
+ date: 2011-03-30 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -24,12 +24,12 @@ dependencies:
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- hash: 21
27
+ hash: 3
28
28
  segments:
29
29
  - 1
30
30
  - 1
31
- - 3
32
- version: 1.1.3
31
+ - 8
32
+ version: 1.1.8
33
33
  name: devise
34
34
  prerelease: false
35
35
  version_requirements: *id001