unidom-action 1.8 → 1.9

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: 5ddac12d5db4f24ec3201a07ce325786ca81368a
4
- data.tar.gz: 67ef80c9c3c7d4d07a14203c29bc739d08b0f576
3
+ metadata.gz: 25b2814341c595d83171ee3596686e3c6d4771e7
4
+ data.tar.gz: 6503f768513d491d7ebf8d40f85c7ea3897ffc14
5
5
  SHA512:
6
- metadata.gz: c4cf12a3b6e6b8d311a9ccc7d308ae35a9f2bb6a8fd88cbd6639d34077b9a12a6db4a5a7f17ccf56bbc5513067306379652d41d43ff9699a8fcc071da97548ff
7
- data.tar.gz: 667004f4946bf7d9be24f812edaf1b61edcc03b861eb877fa73b84b5b1b60499da3ea3b6fb6754086abd242a2175fcf2c7629528a1c07e50288e2272c28c1c7d
6
+ metadata.gz: 63546be6bf3a89dc6204c9d89c94ea2b4d20d13869f8102912fa6e7cbe1218c2325f3ebb54e64df2f96682c4c34f6b6e25df4dd4c08b91c59c412072b5cc81b0
7
+ data.tar.gz: 9ae08e71d9352bc5c836b9b216f7cfad30a86572d7bec23ce24484eeca5f45f313a05dad3bd995c10a54843b3ba833080e51a5de4bc63285f318501b78a343e4
data/README.md CHANGED
@@ -93,6 +93,7 @@ The As Acted concern do the following tasks for the includer automatically:
93
93
  The As Actor Party concern do the following tasks for the includer automatically:
94
94
  1. Define the has_many :acted_actings macro as: ``has_many :acted_actings, class_name: 'Unidom::Action::Acting', as: :actor_party``
95
95
  2. Define the #act! method as: ``act!(on: nil, from: nil, thru: nil, due_to: nil, via: nil, at: Time.now, action_code: 'C')``
96
+ 3. Define the #act? method as: ``act?(on: nil, due_to: nil, via: nil, at: Time.now, action_code: 'C')``
96
97
 
97
98
  ### As Obsolesced concern
98
99
 
@@ -10,7 +10,6 @@ module Unidom::Action::Concerns::AsActorParty
10
10
  acted_actings.create! acted: on, from_value: from, thru_value: thru, reason: due_to, actor_visitor: via, opened_at: at, action_code: action_code
11
11
  end
12
12
 
13
- =begin
14
13
  def act?(on: nil, due_to: nil, via: nil, at: Time.now, action_code: 'C')
15
14
  query = acted_actings
16
15
  query = query.acted_is on if on.present?
@@ -20,7 +19,6 @@ module Unidom::Action::Concerns::AsActorParty
20
19
  query = query.caused_by due_to if due_to.present?
21
20
  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.8'.freeze
3
+ VERSION = '1.9'.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.8'
4
+ version: '1.9'
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-16 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common