unidom-party 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/app/models/unidom/party/party_relation.rb +1 -1
- data/app/models/unidom/party/person.rb +1 -1
- data/app/models/unidom/party/shop.rb +1 -1
- data/lib/unidom/party/version.rb +1 -1
- metadata +3 -4
- data/LICENSE +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04d6ebcc1baec550d70797be873be4baa5b47463
|
4
|
+
data.tar.gz: 4c518d32651c4013f573a3406a23a423fbb83fa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c95ff2b9fbf4d3a3743356d2c115301e2444dbe1db16b5e8ce3ddbee9b9e4711730f9f46d66574cb8f5d85645749920f565152f41657b9b17b86afb9a0e93531
|
7
|
+
data.tar.gz: afbe0d9ff975ad90e8f2be11250faa61bae9506408bf3fa77aebd4cc16da7da0570d78dbfdd4ab481d0ae240b7ff59ae15af7a1f1b457acf26a3dbccdebd290c
|
data/README.md
CHANGED
@@ -1,21 +1,22 @@
|
|
1
1
|
# Unidom Party 参与者领域模型引擎
|
2
2
|
|
3
3
|
[![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/unidom-party.svg)](https://badge.fury.io/rb/unidom-party)
|
4
5
|
|
5
6
|
Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Party domain model engine includes Person, Shop, and Company models.
|
6
7
|
Unidom (统一领域对象模型)是一系列的领域模型引擎。参与者领域模型引擎包括个人、店铺、公司的模型。
|
7
8
|
|
8
|
-
## Usage in Gemfile
|
9
|
+
## Usage in Gemfile
|
9
10
|
```ruby
|
10
11
|
gem 'unidom-party'
|
11
12
|
```
|
12
13
|
|
13
|
-
## Run the Database Migration
|
14
|
+
## Run the Database Migration
|
14
15
|
```shell
|
15
16
|
rake db:migrate
|
16
17
|
```
|
17
18
|
|
18
|
-
## Call the Model
|
19
|
+
## Call the Model
|
19
20
|
```ruby
|
20
21
|
Unidom::Party::Company.valid_at.alive.first
|
21
22
|
Unidom::Party::Shop.valid_at.alive.first
|
@@ -31,6 +31,6 @@ class Unidom::Party::Person < ActiveRecord::Base
|
|
31
31
|
#has_many :source_people, through: :source_linkings, source: :source_party, source_type: 'Party::Person'
|
32
32
|
#has_many :source_shops, through: :source_linkings, source: :source_party, source_type: 'Party::Shop'
|
33
33
|
|
34
|
-
include
|
34
|
+
include Unidom::Common::Concerns::ModelExtension
|
35
35
|
|
36
36
|
end
|
@@ -31,6 +31,6 @@ class Unidom::Party::Person < ActiveRecord::Base
|
|
31
31
|
#has_many :source_people, through: :source_linkings, source: :source_party, source_type: 'Party::Person'
|
32
32
|
#has_many :source_shops, through: :source_linkings, source: :source_party, source_type: 'Party::Shop'
|
33
33
|
|
34
|
-
include
|
34
|
+
include Unidom::Common::Concerns::ModelExtension
|
35
35
|
|
36
36
|
end
|
data/lib/unidom/party/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
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-02-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -33,7 +33,6 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- LICENSE
|
37
36
|
- MIT-LICENSE
|
38
37
|
- README.md
|
39
38
|
- Rakefile
|
@@ -76,5 +75,5 @@ rubyforge_project:
|
|
76
75
|
rubygems_version: 2.4.5.1
|
77
76
|
signing_key:
|
78
77
|
specification_version: 4
|
79
|
-
summary:
|
78
|
+
summary: Unidom Party Domain Model Engine 参与者领域模型引擎
|
80
79
|
test_files: []
|
data/LICENSE
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2015 Topbit Du
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
22
|
-
|