unidom-action 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: 602d528be497ee17f65b85f33819e115718cf472
|
|
4
|
+
data.tar.gz: 2b72dcc15b90d4f421b189111accbfaf271e9c1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 379f20347035d2ce06609c9ba140e06b1d992c49d056a8bd752a22812024f4790ae27b2c0d8acf0790bdd4fd6f37b6073154b1345e026037a2994101984bbcd5
|
|
7
|
+
data.tar.gz: e84387d92e9a0d62965c147b7dadbb6f15f9ccc3e5f74b6840114e4e9b2893735ca099ef4483bbf4e389f292450566f63384ab3d94bf73fc102f47cdb19d22b5
|
data/README.md
CHANGED
|
@@ -104,7 +104,8 @@ The As Obsolesced concern do the following tasks for the includer automatically:
|
|
|
104
104
|
|
|
105
105
|
The As Obsolescer Party concern do the following tasks for the includer automatically:
|
|
106
106
|
1. Define the has_many :obsolesced_obsolescings macro as: ``has_many :obsolesced_obsolescings, class_name: 'Unidom::Action::Obsolescing', as: :obsolescer_party``
|
|
107
|
-
2. Define the #obsolesce! method as: ``obsolesce!(it, obsolescence_code: 'OBSL', due_to: nil, via: nil, at: Time.now)``
|
|
107
|
+
2. Define the #obsolesce! method as: ``obsolesce!(it, obsolescence_code: 'OBSL', due_to: nil, via: nil, at: Time.now)``
|
|
108
|
+
3. Define the #obsolesce? method as: ``obsolesce?(it, obsolescence_code: 'OBSL', due_to: nil, via: nil, at: Time.now)``
|
|
108
109
|
|
|
109
110
|
### As State Subject concern
|
|
110
111
|
|
|
@@ -117,4 +118,5 @@ The As State Subject concern do the following tasks for the includer automatical
|
|
|
117
118
|
|
|
118
119
|
The As State Transitor Party concern do the following tasks for the includer automatically:
|
|
119
120
|
1. Define the has_many :transited_state_transitions macro as: ``has_many :transited_state_transitions, class_name: 'Unidom::Action::StateTransition', as: :transitor_party``
|
|
120
|
-
2. Define the #transit! method as: ``transit!(it, from: nil, thru: nil, due_to: nil, via: nil, at: Time.now)``
|
|
121
|
+
2. Define the #transit! method as: ``transit!(it, from: nil, thru: nil, due_to: nil, via: nil, at: Time.now)``
|
|
122
|
+
3. Define the #transit? method as: ``transit?(it, from: nil, thru: nil, due_to: nil, via: nil, at: Time.now)``
|
|
@@ -10,7 +10,6 @@ module Unidom::Action::Concerns::AsObsolescerParty
|
|
|
10
10
|
obsolesced_obsolescings.create! obsolesced: it, obsolescence_code: 'OBSL', obsolescer_visitor: via, reason: due_to, opened_at: at
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
=begin
|
|
14
13
|
def obsolesce?(it, obsolescence_code: 'OBSL', due_to: nil, via: nil, at: Time.now)
|
|
15
14
|
query = obsolesced_obsolescings
|
|
16
15
|
query = query.obsolesced_is it if it.present?
|
|
@@ -20,7 +19,6 @@ module Unidom::Action::Concerns::AsObsolescerParty
|
|
|
20
19
|
query = query.valid_at now: at if at.present?
|
|
21
20
|
query.alive.exists?
|
|
22
21
|
end
|
|
23
|
-
=end
|
|
24
22
|
|
|
25
23
|
end
|
|
26
24
|
|
|
@@ -10,7 +10,6 @@ module Unidom::Action::Concerns::AsStateTransitorParty
|
|
|
10
10
|
transited_state_transitions.create! subject: it, from_state: from, thru_state: thru, transitor_visitor: via, reason: due_to, opened_at: at
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
=begin
|
|
14
13
|
def transit?(it, from: nil, thru: nil, due_to: nil, via: nil, at: Time.now)
|
|
15
14
|
query = transited_state_transitions
|
|
16
15
|
query = query.subject_is it if it.present?
|
|
@@ -21,7 +20,6 @@ module Unidom::Action::Concerns::AsStateTransitorParty
|
|
|
21
20
|
query = query.valid_at now: at if at.present?
|
|
22
21
|
query.alive.exists?
|
|
23
22
|
end
|
|
24
|
-
=end
|
|
25
23
|
|
|
26
24
|
end
|
|
27
25
|
|
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.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-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unidom-common
|