unidom-party-china 0.7.2 → 0.7.3

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: b11a698cc18d8e94692d86bb35fe473bed3e62f3
4
- data.tar.gz: 29b7e2354a235a96db584d140a3f8489b7911dbd
3
+ metadata.gz: 39e558b9f66073f26d2401f1c981b9c791c9ade8
4
+ data.tar.gz: addf40bf79b25d3200f101b749ffe32ebe48739f
5
5
  SHA512:
6
- metadata.gz: d1c61ae29a4dbdcb00cf88980680141216e01b2c0101f88472765296e0c41d2365c5c15c74c0928ea44cc9feec41b32fbf7ba33f6daa5a4eca8d99ceef989070
7
- data.tar.gz: e6cd12c5838c3e12a540843a7256fb22734441c3a56ca6518ad06cffbd1f602fdaa0a20f1c1abbda0a8a769ea6c700fbffbf715a06974571917402544b437fd5
6
+ metadata.gz: 129e59f7db1636923ba149c2d910105487583582fbecca1b7487b0a9f7e69e2f2d975bb4c4df811dff0ff716310d8421f9b3a4f8cd30915548e10b562e6f2456
7
+ data.tar.gz: 0416c76a86bb6d5afd7854432c419283389a1c3f0892d412556bd0e7ffa3f9541bce83a9e9c2209ae2a3a4cb7329369eb10945a0a1df83d50b4facb4840d6111
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Unidom Party China 中国参与者领域模型引擎
2
2
 
3
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/unidom-party-china/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-party-china.svg)](https://badge.fury.io/rb/unidom-party-china)
5
7
  [![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/unidom-party-china.svg)](https://gemnasium.com/github.com/topbitdu/unidom-party-china)
6
8
 
@@ -132,3 +134,19 @@ Unidom::Party::China::BusinessRegistration::FOREIGN_FUNDED_ENTERPRISE #
132
134
  Unidom::Party::China::BusinessRegistration::SELF_EMPLOYED_BUSINESS # 个体经营
133
135
  # 一共 24 个工商注册类型。
134
136
  ```
137
+
138
+
139
+
140
+ ## Disable the Model & Migration
141
+
142
+ If you only need the app components other than models, the migrations should be neglected, and the models should not be loaded.
143
+ ```ruby
144
+ # config/initializers/unidom.rb
145
+ Unidom::Common.configure do |options|
146
+
147
+ options[:neglected_namespaces] = %w{
148
+ Unidom::Party::China
149
+ }
150
+
151
+ end
152
+ ```
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application controller 是模块内所有控制器的基类。
3
+
1
4
  class Unidom::Party::China::ApplicationController < ActionController::Base
2
5
  protect_from_forgery with: :exception
3
6
  end
@@ -1,2 +1,5 @@
1
+ ##
2
+ # Application job 是模块内所有异步任务的基类。
3
+
1
4
  class Unidom::Party::China::ApplicationJob < ActiveJob::Base
2
5
  end
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application mailer 是模块内所有电子邮件发送类的基类。
3
+
1
4
  class Unidom::Party::China::ApplicationMailer < ActionMailer::Base
2
5
  default from: 'from@example.com'
3
6
  layout 'mailer'
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application record 是模块内所有模型的抽象基类。
3
+
1
4
  class Unidom::Party::China::ApplicationRecord < ActiveRecord::Base
2
5
  self.abstract_class = true
3
6
  end
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Party
3
3
  module China
4
- VERSION = '0.7.2'.freeze
4
+ VERSION = '0.7.3'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-party-china
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
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-04 00:00:00.000000000 Z
11
+ date: 2017-01-20 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.8'
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.8'
26
+ version: '1.9'
27
27
  description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
28
28
  The China Party domain model engine includes the Ethnicity enum code and the Marital
29
29
  Status enum code. Unidom (统一领域对象模型)是一系列的领域模型引擎。中国参与者领域模型引擎包括民族、婚姻状况枚举编码。