unidom-party 0.1 → 0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6be7d4c4a29f34fb617509f4ffd1699cb8bcbbf6
4
- data.tar.gz: 3c69e8ce62fb0f6ea3a7b46077ba1b589503c4b7
3
+ metadata.gz: 04d6ebcc1baec550d70797be873be4baa5b47463
4
+ data.tar.gz: 4c518d32651c4013f573a3406a23a423fbb83fa3
5
5
  SHA512:
6
- metadata.gz: ee23775c46aff03239496d42aa6cd00ef717c49429749dfef68df239b6ebcd411717d3711160c3d412ea716a83d8299c48d1f4dc18e5259bff8bc1cfb1831e77
7
- data.tar.gz: d8dde01cdab1feca3998e330b83cc36490e52b5ff6f609026c0b55515224012cfd0c712df1e77bbd3be42acdc485107abb8bfbd1622d146004dec6e4bb2ebf31
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 ::Unidom::Common::ModelExtension
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 ::Unidom::Common::ModelExtension
34
+ include Unidom::Common::Concerns::ModelExtension
35
35
 
36
36
  end
@@ -6,6 +6,6 @@ class Unidom::Party::Shop < ActiveRecord::Base
6
6
 
7
7
  validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }
8
8
 
9
- include ::Unidom::Common::ModelExtension
9
+ include Unidom::Common::Concerns::ModelExtension
10
10
 
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Party
3
- VERSION = '0.1'.freeze
3
+ VERSION = '0.2'.freeze
4
4
  end
5
5
  end
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.1'
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-10 00:00:00.000000000 Z
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: The Party domain model engine includes Person, Shop, and Company models.
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
-