unidom-visitor 1.10 → 1.11

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: 5a79e7e13dece5aeb35aafeeb861b8e589ddf250
4
- data.tar.gz: f038e33b76232212838599bd09fce123b76121a6
3
+ metadata.gz: e48ebebb1b63ac2cdf105fffd01697b0ddd4a00d
4
+ data.tar.gz: 23057f0e338c11f6f2c2cf0dc0fd917bd260d935
5
5
  SHA512:
6
- metadata.gz: a4de01740660a5261e6b668bd9b6b9412e13fed2ef9047e9d804877d1ec1260f859bffa2592fea501210348f376771a0a46bb41c449646328e651efccbaae73e
7
- data.tar.gz: ebdbd42237b56ac48d10ac3e42474670182a91df2a2571f2e5a462ea68940895b7279da2dbe065f7c5bafe8ccf2fad53f56f52e85639d1a99ffe40ed1de9f857
6
+ metadata.gz: a61c04b79e23c7caf2e20960d9cb99f3273dc0c8029ff570c779072f9e99be114051f760c794cb48ad7ac8458813fbfe9808b0d26fe8be61e37a280cd7c60d20
7
+ data.tar.gz: 09d4c093b59b7e41d57f451147d52dbb8cccce749c4c9cc6dc3214fb3d83ded55ac010c967c531e4be50cf09e0391f374c9ccb202f286650d852974b510b9087
data/README.md CHANGED
@@ -100,7 +100,8 @@ The As Visitor concern do the following tasks for the includer automatically:
100
100
  8. Define the #is_authenticated! method as: ``is_authenticated!(through: nil, at: Time.now, flag_code: 'RQRD')``
101
101
  9. Define the #is_authenticated? method as: ``is_authenticated?(through: nil, at: Time.now, flag_code: 'RQRD')``
102
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
+ 11. Define the #cognize? method as: ``cognize?(it, at: Time.now, primary: true)``
104
+ 12. Define the .sign_up! method as: ``sign_up!(it, as: nil, through: nil, at: Time.now, flag_code: 'RQRD', primary: true)``
104
105
 
105
106
  ### As Identity concern
106
107
 
@@ -120,4 +121,5 @@ The As Credential concern do the following tasks for the includer automatically:
120
121
 
121
122
  The As Party concern do the following tasks for the includer automatically:
122
123
  1. Define the has_many :recognizations macro as: ``has_many :recognizations, class_name: 'Unidom::Visitor::Recognization', as: :party``
123
- 2. Define the #is_cognized! method as: ``is_cognized!(via: nil, at: Time.now, primary: true)``
124
+ 2. Define the #is_cognized! method as: ``is_cognized!(via: nil, at: Time.now, primary: true)``
125
+ 3. Define the #is_cognized? method as: ``is_cognized!(via: nil, at: Time.now, primary: true)``
@@ -10,7 +10,6 @@ module Unidom::Visitor::Concerns::AsParty
10
10
  recognizations.create! visitor: via, elemental: primary, opened_at: at
11
11
  end
12
12
 
13
- =begin
14
13
  def is_cognized?(via: nil, at: Time.now, primary: true)
15
14
  query = recognizations
16
15
  query = query.visitor_is via if via.present?
@@ -18,7 +17,6 @@ module Unidom::Visitor::Concerns::AsParty
18
17
  query = query.valid_at now: at if at.present?
19
18
  query = query.alive.exists?
20
19
  end
21
- =end
22
20
 
23
21
  end
24
22
 
@@ -43,7 +43,6 @@ module Unidom::Visitor::Concerns::AsVisitor
43
43
  recognizations.create! party: it, elemental: primary, opened_at: at
44
44
  end
45
45
 
46
- =begin
47
46
  def cognize?(it, at: Time.now, primary: true)
48
47
  query = recognizations
49
48
  query = query.party_is it if it.present?
@@ -51,7 +50,6 @@ module Unidom::Visitor::Concerns::AsVisitor
51
50
  query = query.valid_at now: at if at.present?
52
51
  query.alive.exists?
53
52
  end
54
- =end
55
53
 
56
54
  end
57
55
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Visitor
3
- VERSION = '1.10'.freeze
3
+ VERSION = '1.11'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-visitor
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.10'
4
+ version: '1.11'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du