eac_users_support 0.9.8 → 0.10.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cf5c518f68ffd13a4d804b880b7ee1514ea710f154ce9d74883aa7f72960906
4
- data.tar.gz: 053236fe9f91eae8a435fcddbed7a9548d3ad4a5701ed22f6f38862894fd3f63
3
+ metadata.gz: f90ccf568d06f62ded5b9bc03d8cf313f0e957c78d52583e08dd0004e205740c
4
+ data.tar.gz: 959d5b563f2620749a6b1d3cedb12208ff9982e4d933224ccd12f03bd3c9df15
5
5
  SHA512:
6
- metadata.gz: a067c2beb549f08633cf0e76b14ccc83cf71e9a9113351371b3c613d1e9a3728ce51f39a108bcd99118592e8272adda72076d0f01db73abf44cb667ae3cd6250
7
- data.tar.gz: fac57216b16cbc35ccbe66502e5f5a44588ea4d7989feed53e16327660b75e36848353a44fb4f63101f68c1fd8a93f19b54c0e7ca80410b6b52b246d6dc71046
6
+ metadata.gz: 68c475adb8e46695c0444f8e9a8194d212eb58241382f81d2419fd49617f5a1367e6945dd5f35590585d4ef3581ded18c90aa86b329503f92d27ea78520e3288
7
+ data.tar.gz: da99acbf0d91d04480dbf15a363c4a5aade4aa8ebc262b5729fe7f7a783283c410d9ed3a2244ddefa45c0b5ea23ad584cd2b95008d042d04b03d306ddf579860
@@ -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.8'
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.8
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-12-23 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