unidom-action 0.6 → 0.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: 9f8bec376bcc390b5796cf01122788c31da3f316
4
- data.tar.gz: ace6b5c24f66effcffdc48219e51dee4e7040c29
3
+ metadata.gz: ab217d868ee6c7a3254a098fb76b2dc0fc597a3a
4
+ data.tar.gz: e12993e9c20532f8186e7f25c4f145ecd8cdf3e2
5
5
  SHA512:
6
- metadata.gz: dffdd6b3aae58f2e1eaac6017c1c0d275963c77acaba13e3fcd9970b41cbb99d51bc6965e011dbcea6925f57257b43c2e9b29eacc2b6d7d0b768f2d639a12597
7
- data.tar.gz: e9262d99f4a584ff96d5f6fd0c8607b3b840973c453d53bf6ff9c551eedb8c0b007c2ae347114cfe0a09541c3e1fc2f87cf8b4fadc4809bec91e9e60737dbc16
6
+ metadata.gz: fe8228fd8880c33bb7e2ef4c19e04a4e0ce8186356015274e72c86af7afb7ffaa33fd7e258264816cf531f709a840b2a985e4c8d694f5e72653e712374057ab9
7
+ data.tar.gz: 4b5f4f838d9ee6fca69dac42bb8fd7d2d221493744786103caffec9bb00bb7703efa7a7189c7bc8ba51a702aa1258ee11dd5fc1b884388cf16a8e79f4502d277
data/README.md CHANGED
@@ -73,6 +73,11 @@ include Unidom::Action::Concerns::AsStateTransitorParty
73
73
  The As Acted concern do the following tasks for the includer automatically:
74
74
  1. Define the has_many :actings macro as: ``has_many :actings, class_name: 'Unidom::Action::Acting', as: :acted``
75
75
 
76
+ ### As Actor Party concern
77
+
78
+ The As Actor Party concern do the following tasks for the includer automatically:
79
+ 1. Define the has_many :acted_actings macro as: ``has_many :acted_actings, class_name: 'Unidom::Action::Acting', as: :actor_party``
80
+
76
81
  ### As Obsolesced concern
77
82
 
78
83
  The As Obsolesced concern do the following tasks for the includer automatically:
@@ -0,0 +1,14 @@
1
+ module Unidom::Action::Concerns::AsActorParty
2
+
3
+ extend ActiveSupport::Concern
4
+
5
+ included do |includer|
6
+
7
+ has_many :acted_actings, class_name: 'Unidom::Action::Acting', as: :actor_party
8
+
9
+ end
10
+
11
+ module ClassMethods
12
+ end
13
+
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Action
3
- VERSION = '0.6'.freeze
3
+ VERSION = '0.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: '0.6'
4
+ version: '0.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-04 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -46,6 +46,7 @@ files:
46
46
  - app/models/unidom/action/acting.rb
47
47
  - app/models/unidom/action/application_record.rb
48
48
  - app/models/unidom/action/concerns/as_acted.rb
49
+ - app/models/unidom/action/concerns/as_actor_party.rb
49
50
  - app/models/unidom/action/concerns/as_obsolesced.rb
50
51
  - app/models/unidom/action/concerns/as_obsolescer_party.rb
51
52
  - app/models/unidom/action/concerns/as_state_subject.rb