unidom-action 1.13 → 1.14
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 +4 -4
- data/README.md +7 -0
- data/app/models/unidom/action/concerns/as_searcher_party.rb +14 -0
- data/lib/unidom/action/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00be38e879790772148ea78cd87211957e1eef86
|
|
4
|
+
data.tar.gz: e099cd5f0784bfcb4e96a515063a756c1368def9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a8687323776eb829cf0f80d2b4d9fdf08f84921771e72b01ec16312d3e124fa99221fd28eb80fe2453d1c15a7fba5152df08a354b7e329ae7fd3637e40e2e7f
|
|
7
|
+
data.tar.gz: f9c9e0feccb6a50b6e8b6ad2e32c6dd18c704ede04a0c3461ced141324516a88ac3f592a747920b8f2077a68de4fb1915f2014a490a101d59c5134c8eb54e125
|
data/README.md
CHANGED
|
@@ -95,8 +95,10 @@ searching = Unidom::Action::Searching.search! 'people',
|
|
|
95
95
|
|
|
96
96
|
```ruby
|
|
97
97
|
include Unidom::Action::Concerns::AsActed
|
|
98
|
+
include Unidom::Action::Concerns::AsActorParty
|
|
98
99
|
include Unidom::Action::Concerns::AsObsolesced
|
|
99
100
|
include Unidom::Action::Concerns::AsObsolescerParty
|
|
101
|
+
include Unidom::Action::Concerns::AsSearcherParty
|
|
100
102
|
include Unidom::Action::Concerns::AsStateSubject
|
|
101
103
|
include Unidom::Action::Concerns::AsStateTransitorParty
|
|
102
104
|
```
|
|
@@ -129,6 +131,11 @@ The As Obsolescer Party concern do the following tasks for the includer automati
|
|
|
129
131
|
2. Define the #obsolesce! method as: ``obsolesce!(it, obsolescence_code: 'OBSL', due_to: nil, via: nil, at: Time.now)``
|
|
130
132
|
3. Define the #obsolesce? method as: ``obsolesce?(it, obsolescence_code: 'OBSL', due_to: nil, via: nil, at: Time.now)``
|
|
131
133
|
|
|
134
|
+
### As Searcher Party concern
|
|
135
|
+
|
|
136
|
+
The As Searcher Party concern do the following tasks for the includer automatically:
|
|
137
|
+
1. Define the has_many :searched_searchings macro as: ``has_many :searched_searchings, class_name: 'Unidom::Action::Searching', as: :searcher_party``
|
|
138
|
+
|
|
132
139
|
### As State Subject concern
|
|
133
140
|
|
|
134
141
|
The As State Subject concern do the following tasks for the includer automatically:
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Unidom::Action::Concerns::AsSearcherParty
|
|
2
|
+
|
|
3
|
+
extend ActiveSupport::Concern
|
|
4
|
+
|
|
5
|
+
included do |includer|
|
|
6
|
+
|
|
7
|
+
has_many :searched_searchings, class_name: 'Unidom::Action::Searching', as: :searcher_party
|
|
8
|
+
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
module ClassMethods
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
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
|
+
version: '1.14'
|
|
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-12-
|
|
11
|
+
date: 2016-12-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unidom-common
|
|
@@ -63,6 +63,7 @@ files:
|
|
|
63
63
|
- app/models/unidom/action/concerns/as_actor_party.rb
|
|
64
64
|
- app/models/unidom/action/concerns/as_obsolesced.rb
|
|
65
65
|
- app/models/unidom/action/concerns/as_obsolescer_party.rb
|
|
66
|
+
- app/models/unidom/action/concerns/as_searcher_party.rb
|
|
66
67
|
- app/models/unidom/action/concerns/as_state_subject.rb
|
|
67
68
|
- app/models/unidom/action/concerns/as_state_transitor_party.rb
|
|
68
69
|
- app/models/unidom/action/obsolescing.rb
|