unidom-visitor 1.6 → 1.7
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce5626e7f7f18035b1810fdf38072bed11847762
|
|
4
|
+
data.tar.gz: deabd161fa0f86386c75c6f3145935f08273261f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0152d168add99774ad704c18dec95e8531a91e899a234d1e31235c6633cb131a6b0274584dbbcae7ded7782ec78fb4185f73931c33395ef4f314dc5e0609065
|
|
7
|
+
data.tar.gz: 45a3541e5cc136636f5a130915eaf6b6ac98c9600059e222abda76927b6b6de48f953feb41c317b496693ba391d86c014d470719ec132f1b293ccb51c0d29e0a
|
data/README.md
CHANGED
|
@@ -96,6 +96,7 @@ The As Visitor concern do the following tasks for the includer automatically:
|
|
|
96
96
|
5. Define the .sign_up method as: ``sign_up(identity, password: nil, opened_at: Time.now)``
|
|
97
97
|
6. Define the #is_identificated! method as: ``is_identificated!(as: nil, at: Time.now)``
|
|
98
98
|
7. Define the #is_authenticated! method as: ``is_authenticated!(through: nil, at: Time.now, flag_code: 'RQRD')``
|
|
99
|
+
8. Define the #cognize! method as: ``cognize!(it, at: Time.now, primary: true)``
|
|
99
100
|
|
|
100
101
|
### As Identity concern
|
|
101
102
|
|
|
@@ -113,3 +114,4 @@ The As Credential concern do the following tasks for the includer automatically:
|
|
|
113
114
|
|
|
114
115
|
The As Party concern do the following tasks for the includer automatically:
|
|
115
116
|
1. Define the has_many :recognizations macro as: ``has_many :recognizations, class_name: 'Unidom::Visitor::Recognization', as: :party``
|
|
117
|
+
2. Define the #is_cognized! method as: ``is_cognized!(via: nil, at: Time.now, primary: true)``
|
|
@@ -6,6 +6,10 @@ module Unidom::Visitor::Concerns::AsParty
|
|
|
6
6
|
|
|
7
7
|
has_many :recognizations, class_name: 'Unidom::Visitor::Recognization', as: :party
|
|
8
8
|
|
|
9
|
+
def is_cognized!(via: nil, at: Time.now, primary: true)
|
|
10
|
+
recognizations.create! visitor: via, elemental: primary, opened_at: at
|
|
11
|
+
end
|
|
12
|
+
|
|
9
13
|
end
|
|
10
14
|
|
|
11
15
|
module ClassMethods
|
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.7'
|
|
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-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unidom-common
|