sequel-devise 0.0.6 → 0.0.7

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: da9d52ba450060e705293f5d8cdb381487854fe5
4
- data.tar.gz: 33eaa0c2dd73e58270016d58766880ed12277bc8
3
+ metadata.gz: 2add1270ffb57193745013de3c96b00b02f08f9f
4
+ data.tar.gz: 7690e44ad5014197c65c9b1699f0062e66e0e867
5
5
  SHA512:
6
- metadata.gz: 9efb6db26c8670b738104a9143164a2a43d2f8f4359efb02485e05828415c932544a09a65dd590334536a1fd6b48a7eb617f13d98ec943999e1704bf45fcd72e
7
- data.tar.gz: c81bdf18f45d1bdd9a8501801f8976f690427682daa5dcb3eca44cd0e895fc3ef56fb6f301425bd17a4dd52f90d9bb4cf5d5afab74d189aee3753f5348be90b7
6
+ metadata.gz: 1bd709f40cd7f5eb7fe46ee2237fd34b09dde7bd673e5b304783169738cb6aab213a23b7c2c28d5163d8101e4fdb0b35e9a96ad6629ac27dcf22c243b71c3c2c
7
+ data.tar.gz: 0c23df7be43fb98c75be3ade3036730a3d68a5635387b0dd726046159aa38d09d24a2145f2a9a3e8d0c1bd6cbe29c9b9d99d6195a3881ca40c346175e14d8314
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module Devise
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -13,6 +13,10 @@ module Sequel
13
13
  !changed_columns.empty?
14
14
  end
15
15
 
16
+ def encrypted_password_changed? # For recoverable and database_authenticatable
17
+ new? || column_changed?(:encrypted_password)
18
+ end
19
+
16
20
  def email_changed? # For validatable
17
21
  new? || column_changed?(:email)
18
22
  end
@@ -28,7 +32,7 @@ module Sequel
28
32
 
29
33
  def update_attributes(hash, *ignored)
30
34
  begin
31
- update hash
35
+ update(hash) != false
32
36
  rescue Sequel::ValidationFailed
33
37
  return false
34
38
  end
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.6
4
+ version: 0.0.7
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-10-22 00:00:00.000000000 Z
11
+ date: 2015-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.2.2
76
+ rubygems_version: 2.4.5.1
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Enable Devise support by adding plugin :devise to your Sequel Model