sequel-devise 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: c663c8b5035ae4ffc6f66bbd890ab51f289138c1
4
- data.tar.gz: 2aac847fa2414521dae0b4d75652b5de2bb6b297
3
+ metadata.gz: 6a7696c3cd3279caa96cfaa5fd859aa2c51910a0
4
+ data.tar.gz: 167d8df373c34ba3d2d229f0566559666999e57f
5
5
  SHA512:
6
- metadata.gz: fd8d6f671f4f93eb6aaa90e84dcf47fd468d777c879ac1974b1cbe00261d97e159bb75a3c95e60e1894a6a60a9553aaea2b226a2c90658178f83bc2d620dc5b2
7
- data.tar.gz: ac58c6a6ec2dee6f11ef6bf50380ba46e2b1d17cb11f752f006c0301e0cd75a59ce598f93bc0281ce13c5750ecc786502e23360bb2163bab5ac06c8a8f06a429
6
+ metadata.gz: a70a40cacea0e66783dc92559ab21792ab506194a70c1e3af48cb1174728bab68637810d603b59adeb2eb3ff1b97f6fa475cc957d2036354a6469d690e6d9f6d
7
+ data.tar.gz: 6332fc209458e4f6269b3a43c56c93617c561eb26c9c398be7a9781f2357cf96fd79a3bc1eb6269c56e1fa35c9f1b5ee049a7b07306a69d4f994beb0f546b38a
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module Devise
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@ module Sequel
14
14
  end
15
15
 
16
16
  def email_changed? # For validatable
17
- column_changed? :email
17
+ new? || column_changed?(:email)
18
18
  end
19
19
 
20
20
  def email_was # For confirmable
@@ -27,7 +27,11 @@ module Sequel
27
27
  end
28
28
 
29
29
  def update_attributes(hash, *ignored)
30
- update hash
30
+ begin
31
+ update hash
32
+ rescue Sequel::ValidationFailed
33
+ return false
34
+ end
31
35
  end
32
36
  end
33
37
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise