unidom-accession 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -8
- data/app/controllers/unidom/accession/application_controller.rb +3 -0
- data/app/jobs/unidom/accession/application_job.rb +3 -0
- data/app/mailers/unidom/accession/application_mailer.rb +3 -0
- data/app/models/unidom/accession/application_record.rb +3 -0
- data/app/models/unidom/accession/post_fulfillment.rb +1 -1
- data/lib/unidom/accession/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4880d1744c491d246c467cd4cfee61a8dc29e159
|
4
|
+
data.tar.gz: c10093dae73f65ba605f5d327e13d824880bfc28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 298602bf713cb6342fb58f6ac1f48799dd66594a8af4bf755a70bfd6563304186d69c8f0a69b5107d9dfc4bdd08cf3576e0f4081abd0f08da1f223a375b62f90
|
7
|
+
data.tar.gz: 1e521fd2fa112780573592212f731ab262e7cf614c78d1677df742e03dce0391a0377933de776c57e1330da7c795dab4515f884f4778a49ae205b4d298306487
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Unidom Accession 就职领域模型引擎
|
2
2
|
|
3
|
+
[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/unidom-accession/frames)
|
3
4
|
[![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
|
5
|
+
|
4
6
|
[![Gem Version](https://badge.fury.io/rb/unidom-accession.svg)](https://badge.fury.io/rb/unidom-accession)
|
5
7
|
[![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/unidom-accession.svg)](https://gemnasium.com/github.com/topbitdu/unidom-accession)
|
6
8
|
|
@@ -57,16 +59,40 @@ include Unidom::Accession::Concerns::AsPostFulfiller
|
|
57
59
|
|
58
60
|
### As Post Fulfilled concern
|
59
61
|
|
60
|
-
The As Post Fulfilled concern do the following tasks for the includer automatically:
|
61
|
-
|
62
|
-
|
63
|
-
|
62
|
+
The As Post Fulfilled concern do the following tasks for the includer automatically:
|
63
|
+
|
64
|
+
1. Define the has_many :post_fulfillments macro as: ``has_many :post_fulfillments, class_name: 'Unidom::Accession::PostFulfillment', as: :fulfilled``
|
65
|
+
|
66
|
+
2. Define the has_many :fulfiller_people macro as: ``has_many :fulfiller_people, through: :post_fulfillments, source: :fulfiller, source_type: 'Unidom::Party::Person'``
|
67
|
+
|
68
|
+
3. Define the #is_fulfilled_as_post! method as: ``def is_fulfilled_as_post!(by: nil, at: Time.now)``
|
69
|
+
|
64
70
|
4. Define the #is_fulfilled_as_post? method as: ``def is_fulfilled_as_post?(by: nil, at: Time.now)``
|
65
71
|
|
66
72
|
### As Post Fulfiller concern
|
67
73
|
|
68
|
-
The As Post Fulfiller concern do the following tasks for the includer automatically:
|
69
|
-
|
70
|
-
|
71
|
-
|
74
|
+
The As Post Fulfiller concern do the following tasks for the includer automatically:
|
75
|
+
|
76
|
+
1. Define the has_many :post_fulfillments macro as: ``has_many :post_fulfillments, class_name: 'Unidom::Accession::PostFulfillment', as: :fulfiller``
|
77
|
+
|
78
|
+
2. Define the has_many :fulfilled_posts macro as: ``has_many :fulfilled_posts, through: :post_fulfillments, source: :fulfilled, source_type: 'Unidom::Position::Post'``
|
79
|
+
|
80
|
+
3. Define the #fulfill_post! method as: ``def fulfill_post!(post, at: Time.now)``
|
81
|
+
|
72
82
|
4. Define the #fulfill_post? method as: ``def fulfill_post?(post, at: Time.now)``
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
## Disable the Model & Migration
|
87
|
+
|
88
|
+
If you only need the app components other than models, the migrations should be neglected, and the models should not be loaded.
|
89
|
+
```ruby
|
90
|
+
# config/initializers/unidom.rb
|
91
|
+
Unidom::Common.configure do |options|
|
92
|
+
|
93
|
+
options[:neglected_namespaces] = %w{
|
94
|
+
Unidom::Accession
|
95
|
+
}
|
96
|
+
|
97
|
+
end
|
98
|
+
```
|
@@ -23,4 +23,4 @@ class Unidom::Accession::PostFulfillment < Unidom::Accession::ApplicationRecord
|
|
23
23
|
self.create! fulfiller: fulfiller, fulfilled: fulfilled, opened_at: opened_at
|
24
24
|
end
|
25
25
|
|
26
|
-
end
|
26
|
+
end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Accession::PostFulfillment'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-accession
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.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: 2017-01-
|
11
|
+
date: 2017-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.9'
|
27
27
|
description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
|
28
28
|
The Accession domain model engine includes Post Fullfillment and its relative models.
|
29
29
|
Unidom (统一领域对象模型)是一系列的领域模型引擎。就职领域模型引擎包括岗位履行及其相关的模型。
|