unidom-party-china 0.1 → 0.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: 6954c3d4ebf2d52b325d60d19e5a760224e08192
4
- data.tar.gz: 5d522de50298a18de4679cb82613519054e4957a
3
+ metadata.gz: 0d3b3e5ffada91af2db1be4405fc035b2f5f53b0
4
+ data.tar.gz: 2f31d09f29068eec3a6ea28c5044ad488033a934
5
5
  SHA512:
6
- metadata.gz: 0da4c4ea7ba8c9dbe2c6cfbe52bfdc4c73a61814342e4df0d742c6ea228f850a5fe57469b22db062f9e21699b161dc48c973268d9097b34ce17a485a16838e93
7
- data.tar.gz: e4528c4ba067e618aaa1ad07fe4bc6b32b8a8ac8795acc14f74b48cc3b66bd1c99789c4905e5e827cec0b32ff7da1f754c592bc7e8b234cfc7c265a336039b9a
6
+ metadata.gz: b61bf9f4399eb878317a2874f847535335015fed3d6b206dec5e6d57a9431036b4b6015b88ebb0b49d3a2d2f54af3cb22b0b0fe38e5293645bfbb0682d04de13
7
+ data.tar.gz: 08c1d99086c03f9a2c28c96766514c22faaf5b392c278982f52efade6a1c4f49bb70456a3275a1b9845da724ee7f702abffd0604d60faf7ab6ab7fc6974c6464
data/README.md CHANGED
@@ -48,3 +48,16 @@ Unidom::Party::China::Ethnicity::Alphabetic::HAN.numeric_code # '01'
48
48
  Unidom::Party::China::Ethnicity::Numeric::HAN.code # '01'
49
49
  Unidom::Party::China::Ethnicity::Numeric::HAN.alphabetic_code # 'HA'
50
50
  ```
51
+
52
+ ### Marital Status enum code
53
+
54
+ ```ruby
55
+ Unidom::Party::China::MaritalStatus::UNMARRIED
56
+ Unidom::Party::China::MaritalStatus::MARRIED
57
+ Unidom::Party::China::MaritalStatus::FIRST_MARRIAGE
58
+ Unidom::Party::China::MaritalStatus::REMARRIAGE
59
+ Unidom::Party::China::MaritalStatus::FORMER_MARRIAGE_RESTORATION
60
+ Unidom::Party::China::MaritalStatus::WIDOWED
61
+ Unidom::Party::China::MaritalStatus::DIVORCE
62
+ Unidom::Party::China::MaritalStatus::UNSPECIFIED
63
+ ```
@@ -1,3 +1,6 @@
1
+ # Ethnicity 是中国的民族代码。符合 GB/T 3304-1991 标准。
2
+ # Alphabetic 基于字母代码,Numeric 基于数字代码。
3
+
1
4
  module Unidom::Party::China::Ethnicity
2
5
 
3
6
  class Alphabetic < ActiveRecord::Type::Value
@@ -0,0 +1,9 @@
1
+ # Marital Status 是中国的婚姻状况代码。符合 GB/T 2261.2-2003 标准。之前的标准是 GB/T 4766-1984 。
2
+
3
+ class Unidom::Party::China::MaritalStatus < ActiveRecord::Type::Value
4
+
5
+ include ProgneTapera::EnumConfig
6
+
7
+ enum :unidom_china_marital_status
8
+
9
+ end
data/config/enum.yml CHANGED
@@ -341,3 +341,23 @@ enum:
341
341
  jino:
342
342
  code: '56'
343
343
  alphabetic_code: JN
344
+
345
+ # GB/T 4766-1984 ->
346
+ # GB/T 2261.2-2003
347
+ unidom_china_marital_status:
348
+ unmarried:
349
+ code: '10'
350
+ married:
351
+ code: '20'
352
+ first_marriage:
353
+ code: '21'
354
+ remarriage:
355
+ code: '22'
356
+ former_marriage_restoration:
357
+ code: '23'
358
+ widowed:
359
+ code: '30'
360
+ divorce:
361
+ code: '40'
362
+ unspecified:
363
+ code: '90'
@@ -59,3 +59,15 @@
59
59
  yi: 彝族
60
60
  yugur: 裕固族
61
61
  zhuang: 壮族
62
+
63
+ # GB/T 4766-1984 ->
64
+ # GB/T 2261.2-2003
65
+ unidom_china_marital_status:
66
+ unmarried: 未婚
67
+ married: 已婚
68
+ first_marriage: 初婚
69
+ remarriage: 再婚
70
+ former_marriage_restoration: 复婚
71
+ widowed: 丧偶
72
+ divorce: 离婚
73
+ unspecified: 未说明的婚姻状况
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Party
3
3
  module China
4
- VERSION = '0.1'.freeze
4
+ VERSION = '0.2'.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.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-11-19 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -59,6 +59,7 @@ files:
59
59
  - app/mailers/unidom/party/china/application_mailer.rb
60
60
  - app/models/unidom/party/china/application_record.rb
61
61
  - app/types/unidom/party/china/ethnicity.rb
62
+ - app/types/unidom/party/china/marital_status.rb
62
63
  - app/views/layouts/unidom/party/china/application.html.erb
63
64
  - config/enum.yml
64
65
  - config/locales/enum.zh-CN.yml