unidom-action 1.6 → 1.7

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: 7b0966362a906388ffb6f1f54282e6ba15502fd9
4
- data.tar.gz: e5bbf2312ee05fb80c8e1ef8fda3aaf09a234bb5
3
+ metadata.gz: 602d528be497ee17f65b85f33819e115718cf472
4
+ data.tar.gz: 2b72dcc15b90d4f421b189111accbfaf271e9c1c
5
5
  SHA512:
6
- metadata.gz: f48dd6b83206a3204d8de3ad6c18227df5f799d02e3f6240a342eb2ecd0a83d441d37d514363df4de34cd5b736c1c6893ec00e66472bd7460afcd7d4b7acb978
7
- data.tar.gz: 96a4edcd01f85638ffb7b089d7c5b58719b410b3c14cf3bea7e37cdf0a4a499515ae92beee40c88907e279ffbd11b6be4e78aeccdcdeae7a55a0a94abd7a9d82
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
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Action
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-action
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-15 00:00:00.000000000 Z
11
+ date: 2016-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common