unidom-party-china 0.7.1 → 0.7.2

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: 7331d6aec279209af5ab79bcc48d32bea6c50002
4
- data.tar.gz: dd21625eb0c8707a113e92df136360254cff1913
3
+ metadata.gz: b11a698cc18d8e94692d86bb35fe473bed3e62f3
4
+ data.tar.gz: 29b7e2354a235a96db584d140a3f8489b7911dbd
5
5
  SHA512:
6
- metadata.gz: 31b46f488159cd3768489f9b1aa86e789395d9ef6d8132b29283aafa0b1e9ddf41712c0c8702452cc6652f32427d48f42bb76331fb0c3df9b5cb48c68f798f84
7
- data.tar.gz: a114469e2aa511340c37ecc9d68d78166a6a9132303e3001f8f7239bd7b79fc35c8e17f629385576a9052242392f50f75206b560fbc4c3d20ce9379eb83c5ef5
6
+ metadata.gz: d1c61ae29a4dbdcb00cf88980680141216e01b2c0101f88472765296e0c41d2365c5c15c74c0928ea44cc9feec41b32fbf7ba33f6daa5a4eca8d99ceef989070
7
+ data.tar.gz: e6cd12c5838c3e12a540843a7256fb22734441c3a56ca6518ad06cffbd1f602fdaa0a20f1c1abbda0a8a769ea6c700fbffbf715a06974571917402544b437fd5
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Blood Group 是中国的血型。符合 GA/T 2000-2016 标准。
2
3
 
3
4
  class Unidom::Party::China::BloodGroup < ActiveRecord::Type::Value
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Business Registration 是中国的工商注册。
2
3
  # 关于划分企业登记注册类型的规定 http://www.stats.gov.cn/tjsj/tjbz/200610/t20061018_8657.html
3
4
  # 个体经营分类与代码 http://www.stats.gov.cn/tjsj/tjbz/200611/t20061123_8663.html
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Ethnicity 是中国的民族代码。符合 GB/T 3304-1991 标准。
2
3
  # Alphabetic 基于字母代码,Numeric 基于数字代码。
3
4
 
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Formal Schooling 是中国的学历。符合 GB/T 4658-2006 标准。
2
3
 
3
4
  class Unidom::Party::China::FormalSchooling < ActiveRecord::Type::Value
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Marital Status 是中国的婚姻状况代码。符合 GB/T 2261.2-2003 标准。之前的标准是 GB/T 4766-1984 。
2
3
 
3
4
  class Unidom::Party::China::MaritalStatus < ActiveRecord::Type::Value
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Political Affiliation 是中国的政治面貌代码。符合 GB/T 4762-1984 标准。
2
3
 
3
4
  class Unidom::Party::China::PoliticalAffiliation < ActiveRecord::Type::Value
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Religion Faith 是中国的宗教信仰代码。符合 GA 214.12-2004 标准。
2
3
 
3
4
  class Unidom::Party::China::ReligionFaith < ActiveRecord::Type::Value
@@ -1,19 +1,13 @@
1
- require 'unidom/common/yaml_helper'
2
-
3
1
  module Unidom
4
2
  module Party
5
3
  module China
6
4
  class Engine < ::Rails::Engine
7
5
 
8
- isolate_namespace ::Unidom::Party::China
6
+ include Unidom::Common::EngineExtension
9
7
 
10
- initializer :load_config_initializers do |app|
11
- Unidom::Common::YamlHelper.load_enum config: app.config, root: config.root
12
- end
8
+ isolate_namespace ::Unidom::Party::China
13
9
 
14
- initializer :append_migrations do |app|
15
- config.paths['db/migrate'].expanded.each { |expanded_path| app.config.paths['db/migrate'] << expanded_path } unless app.root.to_s.match root.to_s
16
- end
10
+ enable_initializer enum_enabled: true, migration_enabled: true
17
11
 
18
12
  end
19
13
  end
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Party
3
3
  module China
4
- VERSION = '0.7.1'.freeze
4
+ VERSION = '0.7.2'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-party-china
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.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-12-23 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.7.1
19
+ version: '1.8'
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.7.1
26
+ version: '1.8'
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 (统一领域对象模型)是一系列的领域模型引擎。中国参与者领域模型引擎包括民族、婚姻状况枚举编码。