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: 96fd80a898725ebc4621d3aceefa83df097c1dd7
4
- data.tar.gz: c6d4e8f259349c90e5697dc5d67e9e3df0c0d057
3
+ metadata.gz: ce5626e7f7f18035b1810fdf38072bed11847762
4
+ data.tar.gz: deabd161fa0f86386c75c6f3145935f08273261f
5
5
  SHA512:
6
- metadata.gz: 605f1819526e818dd562fa378e3ef014a15ed8c27439f232119329bb73f13d7c4aaf11167823ff8dad4e244573b02f0980d0a448c98061cb38f82e273cb0beeb
7
- data.tar.gz: eb4f9c23dd0fd4b9cff29c7b12d410b05396227bec18cd81c98acb2354debdc9127414fdebdcd31cc362557347a5d990233f4b05d4e797eed7cf259b9fc4da93
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
@@ -24,11 +24,9 @@ module Unidom::Visitor::Concerns::AsVisitor
24
24
  end
25
25
  end
26
26
 
27
- =begin
28
27
  def cognize!(it, at: Time.now, primary: true)
29
28
  recognizations.create! party: it, elemental: primary, opened_at: at
30
29
  end
31
- =end
32
30
 
33
31
  end
34
32
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Visitor
3
- VERSION = '1.6'.freeze
3
+ VERSION = '1.7'.freeze
4
4
  end
5
5
  end
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.6'
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 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common