eac_users_support 0.9.5 → 0.10.0

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
  SHA256:
3
- metadata.gz: dbca08d6c462c8927b9ff71dcb7ceeb58c8f7249e823dd8f57b028386d832e10
4
- data.tar.gz: c7b29abf561ae128bd021d5cfcc034b396193ec1232611cbf9a7679f0894c385
3
+ metadata.gz: f90ccf568d06f62ded5b9bc03d8cf313f0e957c78d52583e08dd0004e205740c
4
+ data.tar.gz: 959d5b563f2620749a6b1d3cedb12208ff9982e4d933224ccd12f03bd3c9df15
5
5
  SHA512:
6
- metadata.gz: e17ad1043d8e7ac3c4a3e588ff35ead1ef2bc190250193b7206771a1f92381a35b2ce9eeab6528ea5bb5976e3df94bf7032226509165689430488904e0e73957
7
- data.tar.gz: b86fe83057c7fff23d8b070cf29e8aa0b3ece6f6809e67e8507f001210da7fd8e64c0e1607ffb345e9fa6714e5a10a4ae006a57fa85adb0a003e1ee4e36fd673
6
+ metadata.gz: 68c475adb8e46695c0444f8e9a8194d212eb58241382f81d2419fd49617f5a1367e6945dd5f35590585d4ef3581ded18c90aa86b329503f92d27ea78520e3288
7
+ data.tar.gz: da99acbf0d91d04480dbf15a363c4a5aade4aa8ebc262b5729fe7f7a783283c410d9ed3a2244ddefa45c0b5ea23ad584cd2b95008d042d04b03d306ddf579860
@@ -13,6 +13,7 @@ module EacUsersSupport
13
13
  conf.action_links.add :password_reset,
14
14
  type: :member, method: :put, position: false,
15
15
  label: ::I18n.t(:'eac_users_support.password_reset.action')
16
+ conf.columns = %i[email administrator created_at confirmed_at]
16
17
  conf.columns.exclude :encrypted_password
17
18
  %w[create update].each do |action|
18
19
  conf.send(action).columns.exclude :remember_created_at
@@ -10,6 +10,10 @@ module EacUsersSupport
10
10
 
11
11
  validates :email, presence: true, uniqueness: true
12
12
 
13
+ def current?
14
+ self == self.class.current_user
15
+ end
16
+
13
17
  def to_s
14
18
  email
15
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacUsersSupport
4
- VERSION = '0.9.5'
4
+ VERSION = '0.10.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_users_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-04 00:00:00.000000000 Z
11
+ date: 2022-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -36,20 +36,20 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.7'
39
+ version: '2.0'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.7.5
42
+ version: 2.0.5
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '1.7'
49
+ version: '2.0'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.7.5
52
+ version: 2.0.5
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: eac_active_scaffold
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '0.2'
115
+ version: '0.4'
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '0.2'
122
+ version: '0.4'
123
123
  description:
124
124
  email:
125
125
  executables: []