unidom-visitor 1.9 → 1.10
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a79e7e13dece5aeb35aafeeb861b8e589ddf250
|
4
|
+
data.tar.gz: f038e33b76232212838599bd09fce123b76121a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4de01740660a5261e6b668bd9b6b9412e13fed2ef9047e9d804877d1ec1260f859bffa2592fea501210348f376771a0a46bb41c449646328e651efccbaae73e
|
7
|
+
data.tar.gz: ebdbd42237b56ac48d10ac3e42474670182a91df2a2571f2e5a462ea68940895b7279da2dbe065f7c5bafe8ccf2fad53f56f52e85639d1a99ffe40ed1de9f857
|
data/README.md
CHANGED
@@ -98,8 +98,9 @@ The As Visitor concern do the following tasks for the includer automatically:
|
|
98
98
|
6. Define the #is_identificated! method as: ``is_identificated!(as: nil, at: Time.now)``
|
99
99
|
7. Define the #is_identificated? method as: ``is_identificated?(as: nil, at: Time.now)``
|
100
100
|
8. Define the #is_authenticated! method as: ``is_authenticated!(through: nil, at: Time.now, flag_code: 'RQRD')``
|
101
|
-
9. Define the #
|
102
|
-
10. Define the
|
101
|
+
9. Define the #is_authenticated? method as: ``is_authenticated?(through: nil, at: Time.now, flag_code: 'RQRD')``
|
102
|
+
10. Define the #cognize! method as: ``cognize!(it, at: Time.now, primary: true)``
|
103
|
+
11. Define the .sign_up! method as: ``sign_up!(it, as: nil, through: nil, at: Time.now, flag_code: 'RQRD', primary: true)``
|
103
104
|
|
104
105
|
### As Identity concern
|
105
106
|
|
@@ -112,7 +113,8 @@ The As Identity concern do the following tasks for the includer automatically:
|
|
112
113
|
|
113
114
|
The As Credential concern do the following tasks for the includer automatically:
|
114
115
|
1. Define the has_one :authenticatings macro as: ``has_one :authenticating, class_name: 'Unidom::Visitor::Authenticating', as: :credential``
|
115
|
-
2. Define the #authenticate! method as: ``authenticate!(it, at: Time.now, flag_code: 'RQRD')``
|
116
|
+
2. Define the #authenticate! method as: ``authenticate!(it, at: Time.now, flag_code: 'RQRD')``
|
117
|
+
3. Define the #authenticate? method as: ``authenticate?(it, at: Time.now, flag_code: 'RQRD')``
|
116
118
|
|
117
119
|
### As Party concern
|
118
120
|
|
@@ -11,7 +11,6 @@ module Unidom::Visitor::Concerns::AsCredential
|
|
11
11
|
create_authenticating! visitor: it, flag_code: flag_code, opened_at: at
|
12
12
|
end
|
13
13
|
|
14
|
-
=begin
|
15
14
|
def authenticate?(it, at: Time.now, flag_code: 'RQRD')
|
16
15
|
return false if authenticating.blank?
|
17
16
|
result = true
|
@@ -20,7 +19,6 @@ module Unidom::Visitor::Concerns::AsCredential
|
|
20
19
|
result &&= flag_code==authenticating.flag_code if flag_code.present?
|
21
20
|
result
|
22
21
|
end
|
23
|
-
=end
|
24
22
|
|
25
23
|
end
|
26
24
|
|
@@ -31,7 +31,6 @@ module Unidom::Visitor::Concerns::AsVisitor
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
=begin
|
35
34
|
def is_authenticated?(through: nil, at: Time.now, flag_code: 'RQRD')
|
36
35
|
query = authenticatings
|
37
36
|
query = query.credential_is through if through.present?
|
@@ -39,7 +38,6 @@ module Unidom::Visitor::Concerns::AsVisitor
|
|
39
38
|
query = query.valid_at now: at if at.present?
|
40
39
|
query.alive.exists?
|
41
40
|
end
|
42
|
-
=end
|
43
41
|
|
44
42
|
def cognize!(it, at: Time.now, primary: true)
|
45
43
|
recognizations.create! party: it, elemental: primary, opened_at: at
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-visitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.10'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topbit Du
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|