unidom-action 1.4 → 1.5

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: 1f54580defbffedb8fcd0cc269390a9d977933fa
4
- data.tar.gz: 1b65ba248ca4b878ab86dbc8da8f0b5560034ba9
3
+ metadata.gz: 55cbae24fba8dfd04e3c7ae2055abc41ce26947f
4
+ data.tar.gz: 6b6ca7374601719eddcd68bcc85b73b8d441fc57
5
5
  SHA512:
6
- metadata.gz: 7b6620724b0412c197b1cf9ff8d2ec5406969a86bf23158ba9e6379221b31c3f8284480f0fac4657a456b5689e7cee7d15063cdd78300bfc50e412e6a4898500
7
- data.tar.gz: 13b895b8c94cda54846d8d25ab059047faace6be8bf81d78459ecd7a504eb2d289897024048e7983e5e4d31c1027186c71bce201dc9649e8c4103a607246498f
6
+ metadata.gz: fb070469362ca1006a2e854041c1fadde8b60e357488db77010aef31349c176e09c66baa33bc4146a925a71a265ac2b9020126946dec4ffae59346bc45dc0c9c
7
+ data.tar.gz: 56fac61e1c0deb33a10245abeedb5028bf6f88187c2a2b11135a3c98f3babab699e85c7564dc28ee2f0cf93fda34dc52ca493f75ee24c0c4fd0d020da07ba13c
data/README.md CHANGED
@@ -86,6 +86,7 @@ include Unidom::Action::Concerns::AsStateTransitorParty
86
86
  The As Acted concern do the following tasks for the includer automatically:
87
87
  1. Define the has_many :actings macro as: ``has_many :actings, class_name: 'Unidom::Action::Acting', as: :acted``
88
88
  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')``
89
+ 3. Define the #is_acted? method as: ``is_acted?(due_to: nil, by: nil, via: nil, at: Time.now, action_code: 'C')``
89
90
 
90
91
  ### As Actor Party concern
91
92
 
@@ -10,7 +10,6 @@ module Unidom::Action::Concerns::AsActed
10
10
  actings.create! from_value: from, thru_value: thru, actor_visitor: via, actor_party: by, acted: self, reason: due_to, action_code: action_code, opened_at: at
11
11
  end
12
12
 
13
- =begin
14
13
  def is_acted?(due_to: nil, by: nil, via: nil, at: Time.now, action_code: 'C')
15
14
  query = actings.acted_is self
16
15
  query = query.acted_via via if via.present?
@@ -20,7 +19,6 @@ module Unidom::Action::Concerns::AsActed
20
19
  query = query.valid_at now: at if at.present?
21
20
  query = query.alive.exists?
22
21
  end
23
- =end
24
22
 
25
23
  end
26
24
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Action
3
- VERSION = '1.4'.freeze
3
+ VERSION = '1.5'.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.4'
4
+ version: '1.5'
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-13 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common