web47core 1.0.7 → 1.0.8

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: 9e47d367b65524e64ca9fdfe7a20cd32913601f00e65cde6dd64b123731de01c
4
- data.tar.gz: 82673c3c6a38c473e6207d14cbd5c6a7f7795e4aca35ae334884e08a9a2e2690
3
+ metadata.gz: 7b7fe306fd542b3f2f2c35c4d8fabbcc625cae18db9c9424b0eef5134a7167da
4
+ data.tar.gz: 4ab1d0fd7b51336c08af3b7a38349830872f41e979f786621288e0b16c4b0e58
5
5
  SHA512:
6
- metadata.gz: 60930a3608223f8ddf7f93f51206c8f2a8ab7779b59a022dc32489edf02f838e91b7ec1f620b005bd784c2ae609c9d53d8028f1c2332f03f3ff587601920cbe0
7
- data.tar.gz: 238254a8922918c08ea3074fb70af71b0c9e8f01ac9567b689a2d6d696655e220feff73e6c605e53102aa5422c4827040742d6a366b5338cdbc6e399262add81
6
+ metadata.gz: 28e7320bb0bc526582605f3160047a06eeb86280bdb384556b1ddc067c0e04cd539ea8691da6472df804193b3a642002b53fb74bcdfcc4dec878670f9cbf3549
7
+ data.tar.gz: 2bf17be859310206cdb2b59ae587d304a07f239be637d1de058874b0826df3e6d8cbc1a1644eefb29752fc81af319819503689bb773f4317cd19a7505254e6b4
@@ -23,7 +23,7 @@ module EncryptedPassword
23
23
  # Retrieve the password
24
24
  #
25
25
  def password
26
- cipher.decrypt_and_verify(encrypted_password)
26
+ encrypted_password.present? ? cipher.decrypt_and_verify(encrypted_password) : ''
27
27
  rescue StandardError => error
28
28
  App47Logger.log_warn("Unable to retrieve password for #{inspect}", error)
29
29
  nil
@@ -32,8 +32,8 @@ module EncryptedPassword
32
32
  #
33
33
  # Set the password
34
34
  #
35
- def password=(password)
36
- set encrypted_password: cipher.encrypt_and_sign(password)
35
+ def password=(pass)
36
+ set encrypted_password: cipher.encrypt_and_sign(pass)
37
37
  rescue StandardError => error
38
38
  App47Logger.log_error("Unable to store password for #{inspect}", error)
39
39
  nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '1.0.7'
4
+ VERSION = '1.0.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-27 00:00:00.000000000 Z
11
+ date: 2020-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport