unidom-action 1.15 → 1.16
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/README.md +9 -0
- data/app/models/unidom/action/concerns/as_searcher_party.rb +0 -2
- data/lib/unidom/action/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cb83c8166fdeb579c96a396fd0568e0db25ad20
|
|
4
|
+
data.tar.gz: 835810757a20ba42c1e07908cd5dc4aa9c2cedc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e9679be561ba505dc0e94f98efcb96424b22759c53b0d88ca1287e2a050e5d99958029ca58a35f9d6918afd520c9c212c4473d5047a0ca4a5a66ba613976e9f
|
|
7
|
+
data.tar.gz: 2a3f9a4e4f81f1eae4398ac94d17362acd2d9278f06871f533a2374af450d5ebae1e527b49734fc0326ba21e240d32972e9b3bf7ef28207cc0514cfddfb5e442
|
data/README.md
CHANGED
|
@@ -106,6 +106,7 @@ include Unidom::Action::Concerns::AsStateTransitorParty
|
|
|
106
106
|
### As Acted concern
|
|
107
107
|
|
|
108
108
|
The As Acted concern do the following tasks for the includer automatically:
|
|
109
|
+
|
|
109
110
|
1. Define the has_many :actings macro as: ``has_many :actings, class_name: 'Unidom::Action::Acting', as: :acted``
|
|
110
111
|
|
|
111
112
|
2. Define the #is_acted! method as: ``is_acted!(from: nil, thru: nil, due_to: nil, by: nil, via: nil, at: Time.now, action_code: 'C')``
|
|
@@ -115,6 +116,7 @@ The As Acted concern do the following tasks for the includer automatically:
|
|
|
115
116
|
### As Actor Party concern
|
|
116
117
|
|
|
117
118
|
The As Actor Party concern do the following tasks for the includer automatically:
|
|
119
|
+
|
|
118
120
|
1. Define the has_many :acted_actings macro as: ``has_many :acted_actings, class_name: 'Unidom::Action::Acting', as: :actor_party``
|
|
119
121
|
|
|
120
122
|
2. Define the #act! method as: ``act!(on: nil, from: nil, thru: nil, due_to: nil, via: nil, at: Time.now, action_code: 'C')``
|
|
@@ -124,6 +126,7 @@ The As Actor Party concern do the following tasks for the includer automatically
|
|
|
124
126
|
### As Obsolesced concern
|
|
125
127
|
|
|
126
128
|
The As Obsolesced concern do the following tasks for the includer automatically:
|
|
129
|
+
|
|
127
130
|
1. Define the has_many :obsolescings macro as: ``has_many :obsolescings, class_name: 'Unidom::Action::Obsolescing', as: :obsolesced``
|
|
128
131
|
|
|
129
132
|
2. Define the #is_obsolesced! method as: ``is_obsolesced!(obsolescence_code: 'OBSL', due_to: nil, via: nil, by: nil, at: Time.now)``
|
|
@@ -133,6 +136,7 @@ The As Obsolesced concern do the following tasks for the includer automatically:
|
|
|
133
136
|
### As Obsolescer Party concern
|
|
134
137
|
|
|
135
138
|
The As Obsolescer Party concern do the following tasks for the includer automatically:
|
|
139
|
+
|
|
136
140
|
1. Define the has_many :obsolesced_obsolescings macro as: ``has_many :obsolesced_obsolescings, class_name: 'Unidom::Action::Obsolescing', as: :obsolescer_party``
|
|
137
141
|
|
|
138
142
|
2. Define the #obsolesce! method as: ``obsolesce!(it, obsolescence_code: 'OBSL', due_to: nil, via: nil, at: Time.now)``
|
|
@@ -142,13 +146,17 @@ The As Obsolescer Party concern do the following tasks for the includer automati
|
|
|
142
146
|
### As Searcher Party concern
|
|
143
147
|
|
|
144
148
|
The As Searcher Party concern do the following tasks for the includer automatically:
|
|
149
|
+
|
|
145
150
|
1. Define the has_many :searched_searchings macro as: ``has_many :searched_searchings, class_name: 'Unidom::Action::Searching', as: :searcher_party``
|
|
146
151
|
|
|
147
152
|
2. Define the #search! method as: ``search!(it, on: '', version: '1', per: {}, due_to: nil, via: nil, at: Time.now, displaying: 0, of_total: 0, on_current_page: 0, of_total_page: 0, per_page: 0)``
|
|
148
153
|
|
|
154
|
+
3. Define the #search? method as: ``search?(it, on: '', version: '1', due_to: nil, at: Time.now)``
|
|
155
|
+
|
|
149
156
|
### As State Subject concern
|
|
150
157
|
|
|
151
158
|
The As State Subject concern do the following tasks for the includer automatically:
|
|
159
|
+
|
|
152
160
|
1. Define the has_many :state_transitions macro as: ``has_many :state_transitions, class_name: 'Unidom::Action::StateTransition', as: :subject``
|
|
153
161
|
|
|
154
162
|
2. Define the #is_transited! method as: ``is_transited!(from: nil, thru: nil, due_to: nil, via: nil, by: nil, at: Time.now)``
|
|
@@ -158,6 +166,7 @@ The As State Subject concern do the following tasks for the includer automatical
|
|
|
158
166
|
### As State Transitor Party concern
|
|
159
167
|
|
|
160
168
|
The As State Transitor Party concern do the following tasks for the includer automatically:
|
|
169
|
+
|
|
161
170
|
1. Define the has_many :transited_state_transitions macro as: ``has_many :transited_state_transitions, class_name: 'Unidom::Action::StateTransition', as: :transitor_party``
|
|
162
171
|
|
|
163
172
|
2. Define the #transit! method as: ``transit!(it, from: nil, thru: nil, due_to: nil, via: nil, at: Time.now)``
|
|
@@ -12,7 +12,6 @@ module Unidom::Action::Concerns::AsSearcherParty
|
|
|
12
12
|
shown_count: displaying, found_count: of_total, current_page: on_current_page, total_pages: of_total_page, per_page: per_page
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
=begin
|
|
16
15
|
def search?(it, on: '', version: '1', due_to: nil, at: Time.now)
|
|
17
16
|
query = searched_searchings
|
|
18
17
|
query = query.resource_name_is it if it.present?
|
|
@@ -22,7 +21,6 @@ module Unidom::Action::Concerns::AsSearcherParty
|
|
|
22
21
|
query = query.valid_at now: at if at.present?
|
|
23
22
|
query.alive.exists?
|
|
24
23
|
end
|
|
25
|
-
=end
|
|
26
24
|
|
|
27
25
|
end
|
|
28
26
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unidom-action
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.16'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Topbit Du
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unidom-common
|