noodall-devise 0.1.7 → 0.1.8
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.
- data/Gemfile +1 -1
- data/app/models/user.rb +3 -2
- data/lib/noodall/devise/version.rb +1 -1
- data/noodall-devise.gemspec +2 -2
- metadata +7 -7
data/Gemfile
CHANGED
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
|
|
51
|
-
|
|
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
|
data/noodall-devise.gemspec
CHANGED
|
@@ -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.
|
|
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:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
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-
|
|
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:
|
|
27
|
+
hash: 3
|
|
28
28
|
segments:
|
|
29
29
|
- 1
|
|
30
30
|
- 1
|
|
31
|
-
-
|
|
32
|
-
version: 1.1.
|
|
31
|
+
- 8
|
|
32
|
+
version: 1.1.8
|
|
33
33
|
name: devise
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: *id001
|