crypt_ident 0.2.1 → 0.2.2

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: 870f0a4d1cded39073eaaf6cd5c0dea28c3df0c1457a4debc14b3c30acd2d2c8
4
- data.tar.gz: c7667c23f8381224c8b94187369c79bc51a52e4befa1106e06546e0f4f9c4c43
3
+ metadata.gz: 96b7aaf4d6a22adbd43a882c2e7a45b22c11c8b27997b29c2c079adc3034781d
4
+ data.tar.gz: 5cb0c9bbb14756716875dcb6c80ee377b4bb1eb4440ac22deb2f105819c49d3e
5
5
  SHA512:
6
- metadata.gz: a95d0e3c33e64d651b930d2c045d2ac076beb3f842c6865662c18796dc4c4da8235a97564e7ec80c7ca3badf082d0034498e8bc59786b9bc9b2e7deb7de836b3
7
- data.tar.gz: 619b595e0397adb3ddb7c1517bb1ebe49955884773ac88beb71c6e4627ac26cb69614fc60b30ab18c4c9a326859d54fcae7206b5786b63be1379bc85b91413df
6
+ metadata.gz: 252c04951bc1c941ded7e18ec24a743b1cd08a61e6d21b256c4339486715906aaf756696a5ead2647d486877c90a823b77f2118d72fc6ac3cc826f71ffca73e8
7
+ data.tar.gz: 825c983e83add2c2faf1331490f73e7667c2c1d2fafab25fda36efc8506ad1199a0fdb565506b7eedf2a53e6c4e3ba2e875f86b149a68ccd7ae750e65f335331
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crypt_ident (0.2.1)
4
+ crypt_ident (0.2.2)
5
5
  bcrypt
6
6
  dry-matcher
7
7
  dry-monads
data/docs/CryptIdent.html CHANGED
@@ -128,7 +128,7 @@ data, which is quite theoretically possible in an Interactor but practically
128
128
 
129
129
 
130
130
 
131
- <div class='inline'><p>0.2.0</p>
131
+ <div class='inline'><p>0.2.2</p>
132
132
  </div>
133
133
 
134
134
  </li>
@@ -157,7 +157,7 @@ data, which is quite theoretically possible in an Interactor but practically
157
157
 
158
158
  </div>
159
159
  </dt>
160
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.2.1</span><span class='tstring_end'>&#39;</span></span></pre></dd>
160
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.2.2</span><span class='tstring_end'>&#39;</span></span></pre></dd>
161
161
 
162
162
  </dl>
163
163
 
@@ -2266,7 +2266,7 @@ Registered User, or the Guest User otherwise.</p>
2266
2266
  </div>
2267
2267
 
2268
2268
  <div id="footer">
2269
- Generated on Sat Feb 16 04:17:25 2019 by
2269
+ Generated on Thu Feb 21 03:27:41 2019 by
2270
2270
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2271
2271
  0.9.18 (ruby-2.6.0).
2272
2272
  </div>
data/docs/_index.html CHANGED
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Sat Feb 16 04:17:25 2019 by
109
+ Generated on Thu Feb 21 03:27:40 2019 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.9.18 (ruby-2.6.0).
112
112
  </div>
@@ -135,7 +135,7 @@ available at <a href="http://contributor-covenant.org/version/1/4/">http://contr
135
135
  </div></div>
136
136
 
137
137
  <div id="footer">
138
- Generated on Sat Feb 16 04:17:25 2019 by
138
+ Generated on Thu Feb 21 03:27:40 2019 by
139
139
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
140
140
  0.9.18 (ruby-2.6.0).
141
141
  </div>
@@ -81,7 +81,7 @@
81
81
  </div></div>
82
82
 
83
83
  <div id="footer">
84
- Generated on Sat Feb 16 04:17:25 2019 by
84
+ Generated on Thu Feb 21 03:27:40 2019 by
85
85
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
86
86
  0.9.18 (ruby-2.6.0).
87
87
  </div>
@@ -60,7 +60,7 @@
60
60
  <div id="content"><div id='filecontents'>The MIT License (MIT)<br/><br/>Copyright (c) 2018 Jeff Dickey<br/><br/>Permission is hereby granted, free of charge, to any person obtaining a copy<br/>of this software and associated documentation files (the &quot;Software&quot;), to deal<br/>in the Software without restriction, including without limitation the rights<br/>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br/>copies of the Software, and to permit persons to whom the Software is<br/>furnished to do so, subject to the following conditions:<br/><br/>The above copyright notice and this permission notice shall be included in<br/>all copies or substantial portions of the Software.<br/><br/>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br/>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br/>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br/>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br/>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br/>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br/>THE SOFTWARE.</div></div>
61
61
 
62
62
  <div id="footer">
63
- Generated on Sat Feb 16 04:17:25 2019 by
63
+ Generated on Thu Feb 21 03:27:40 2019 by
64
64
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
65
65
  0.9.18 (ruby-2.6.0).
66
66
  </div>
@@ -682,7 +682,7 @@
682
682
  </div></div>
683
683
 
684
684
  <div id="footer">
685
- Generated on Sat Feb 16 04:17:25 2019 by
685
+ Generated on Thu Feb 21 03:27:40 2019 by
686
686
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
687
687
  0.9.18 (ruby-2.6.0).
688
688
  </div>
data/docs/index.html CHANGED
@@ -682,7 +682,7 @@
682
682
  </div></div>
683
683
 
684
684
  <div id="footer">
685
- Generated on Sat Feb 16 04:17:25 2019 by
685
+ Generated on Thu Feb 21 03:27:40 2019 by
686
686
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
687
687
  0.9.18 (ruby-2.6.0).
688
688
  </div>
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Sat Feb 16 04:17:25 2019 by
103
+ Generated on Thu Feb 21 03:27:40 2019 by
104
104
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.18 (ruby-2.6.0).
106
106
  </div>
@@ -13,7 +13,7 @@ require 'dry/matcher/result_matcher'
13
13
  # *quite* the PITA. YHBW.
14
14
  #
15
15
  # @author Jeff Dickey
16
- # @version 0.2.0
16
+ # @version 0.2.2
17
17
  module CryptIdent
18
18
  # Change an Authenticated User's password.
19
19
  #
@@ -5,7 +5,7 @@ require 'hanami/entity'
5
5
  # Configuration info for CryptIdent.
6
6
  #
7
7
  # @author Jeff Dickey
8
- # @version 0.2.0
8
+ # @version 0.2.2
9
9
  module CryptIdent
10
10
  # Configuration attributes for `CryptIdent`, with default values.
11
11
  #
@@ -15,7 +15,7 @@ require_relative './config'
15
15
  # *quite* the PITA. YHBW.
16
16
  #
17
17
  # @author Jeff Dickey
18
- # @version 0.2.0
18
+ # @version 0.2.2
19
19
  module CryptIdent
20
20
  # Generate a Password Reset Token
21
21
  #
@@ -16,7 +16,7 @@ require_relative './config'
16
16
  # *quite* the PITA. YHBW.
17
17
  #
18
18
  # @author Jeff Dickey
19
- # @version 0.2.0
19
+ # @version 0.2.2
20
20
  module CryptIdent
21
21
  # Reset the password for the User associated with a Password Reset Token.
22
22
  #
@@ -8,7 +8,7 @@
8
8
  # *quite* the PITA. YHBW.
9
9
  #
10
10
  # @author Jeff Dickey
11
- # @version 0.2.0
11
+ # @version 0.2.2
12
12
  module CryptIdent
13
13
  # Determine whether the Session has Expired due to User inactivity.
14
14
  #
@@ -13,7 +13,7 @@ require 'dry/matcher/result_matcher'
13
13
  # *quite* the PITA. YHBW.
14
14
  #
15
15
  # @author Jeff Dickey
16
- # @version 0.2.0
16
+ # @version 0.2.2
17
17
  module CryptIdent
18
18
  # Attempt to Authenticate a User, passing in an Entity for that User (which
19
19
  # **must** contain a `password_hash` attribute), and a Clear-Text Password.
@@ -11,7 +11,7 @@ require 'dry/matcher/result_matcher'
11
11
  # *quite* the PITA. YHBW.
12
12
  #
13
13
  # @author Jeff Dickey
14
- # @version 0.2.0
14
+ # @version 0.2.2
15
15
  module CryptIdent
16
16
  # Sign out a previously Authenticated User.
17
17
  #
@@ -15,7 +15,7 @@ require 'dry/matcher/result_matcher'
15
15
  # *quite* the PITA. YHBW.
16
16
  #
17
17
  # @author Jeff Dickey
18
- # @version 0.2.0
18
+ # @version 0.2.2
19
19
  module CryptIdent
20
20
  # Persist a new User to a Repository based on passed-in attributes, where the
21
21
  # resulting Entity (on success) contains a `:password_hash` attribute
@@ -10,7 +10,7 @@ require_relative './config'
10
10
  # *quite* the PITA. YHBW.
11
11
  #
12
12
  # @author Jeff Dickey
13
- # @version 0.2.0
13
+ # @version 0.2.2
14
14
  module CryptIdent
15
15
  # Generate a Hash containing an updated Session Expiration timestamp, which
16
16
  # can then be used for session management.
@@ -88,10 +88,11 @@ module CryptIdent
88
88
  end
89
89
 
90
90
  def call(session_data = {})
91
+ result_data = session_data.to_hash
91
92
  if guest_user?(session_data)
92
- session_data.merge(guest_data)
93
+ result_data.merge(guest_data)
93
94
  else
94
- session_data.merge(updated_expiry)
95
+ result_data.merge(updated_expiry)
95
96
  end
96
97
  end
97
98
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module CryptIdent
4
4
  # Version number for Gem. Uses Semantic Versioning.
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypt_ident
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Dickey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-15 00:00:00.000000000 Z
11
+ date: 2019-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt