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 +4 -4
- data/Gemfile.lock +1 -1
- data/docs/CryptIdent.html +3 -3
- data/docs/_index.html +1 -1
- data/docs/file.CODE_OF_CONDUCT.html +1 -1
- data/docs/file.HISTORY.html +1 -1
- data/docs/file.LICENSE.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/top-level-namespace.html +1 -1
- data/lib/crypt_ident/change_password.rb +1 -1
- data/lib/crypt_ident/config.rb +1 -1
- data/lib/crypt_ident/generate_reset_token.rb +1 -1
- data/lib/crypt_ident/reset_password.rb +1 -1
- data/lib/crypt_ident/session_expired.rb +1 -1
- data/lib/crypt_ident/sign_in.rb +1 -1
- data/lib/crypt_ident/sign_out.rb +1 -1
- data/lib/crypt_ident/sign_up.rb +1 -1
- data/lib/crypt_ident/update_session_expiry.rb +4 -3
- data/lib/crypt_ident/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96b7aaf4d6a22adbd43a882c2e7a45b22c11c8b27997b29c2c079adc3034781d
|
|
4
|
+
data.tar.gz: 5cb0c9bbb14756716875dcb6c80ee377b4bb1eb4440ac22deb2f105819c49d3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 252c04951bc1c941ded7e18ec24a743b1cd08a61e6d21b256c4339486715906aaf756696a5ead2647d486877c90a823b77f2118d72fc6ac3cc826f71ffca73e8
|
|
7
|
+
data.tar.gz: 825c983e83add2c2faf1331490f73e7667c2c1d2fafab25fda36efc8506ad1199a0fdb565506b7eedf2a53e6c4e3ba2e875f86b149a68ccd7ae750e65f335331
|
data/Gemfile.lock
CHANGED
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.
|
|
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'>'</span><span class='tstring_content'>0.2.
|
|
160
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.2.2</span><span class='tstring_end'>'</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
|
|
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
|
|
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
|
|
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>
|
data/docs/file.HISTORY.html
CHANGED
data/docs/file.LICENSE.html
CHANGED
|
@@ -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 "Software"), 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 "AS IS", 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
|
|
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>
|
data/docs/file.README.html
CHANGED
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
</div></div>
|
|
683
683
|
|
|
684
684
|
<div id="footer">
|
|
685
|
-
Generated on
|
|
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
|
|
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
|
|
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>
|
data/lib/crypt_ident/config.rb
CHANGED
data/lib/crypt_ident/sign_in.rb
CHANGED
|
@@ -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.
|
|
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.
|
data/lib/crypt_ident/sign_out.rb
CHANGED
data/lib/crypt_ident/sign_up.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
-
|
|
93
|
+
result_data.merge(guest_data)
|
|
93
94
|
else
|
|
94
|
-
|
|
95
|
+
result_data.merge(updated_expiry)
|
|
95
96
|
end
|
|
96
97
|
end
|
|
97
98
|
|
data/lib/crypt_ident/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bcrypt
|