unidom-action 1.15 → 1.16

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: 83ce4fa8f3da91e3a5afa1ac24ea1ba9e917e641
4
- data.tar.gz: 12249ab8a10d69d22534ba37cfae48c2d7a5768b
3
+ metadata.gz: 7cb83c8166fdeb579c96a396fd0568e0db25ad20
4
+ data.tar.gz: 835810757a20ba42c1e07908cd5dc4aa9c2cedc6
5
5
  SHA512:
6
- metadata.gz: e7ec58c24e75af51da24113bd7e4653c3c7b60202fd792eec88e429b841dfca0e2a427d39613a3b1b95f0ed1708b21a377a0778cbd0ffe9a9597e77d7026d569
7
- data.tar.gz: dd8e30c3658b1948a1b0e5ed298a877199808f0c65bdcd8e4be73513423806dce3fb633d4fab96e1cec3a5ac1c06730767d03fa5433fc73393837448d8650ee9
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
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Action
3
- VERSION = '1.15'.freeze
3
+ VERSION = '1.16'.freeze
4
4
  end
5
5
  end
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.15'
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: 2016-12-29 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common