unidom-party-china 0.3 → 0.4

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: 396ccd8d9604210abcaec03efcb192a3d8d101fb
4
- data.tar.gz: 190214be184f12fda9e6ab7d2662fd72704f83b8
3
+ metadata.gz: 3d4789ac5f7ee73c8cf385975c56a23fc0160575
4
+ data.tar.gz: 6e96f92305b5c8e6e2fda35f00b346a1fdd73c33
5
5
  SHA512:
6
- metadata.gz: 5d32820dcb8babdfeb6e9dfa08062a20ed92c34888d9ae2af73efd638d0da8f5c4b2a387ff30695291246385fabc9b7963afb834166beff8f4bbd2cce6011b87
7
- data.tar.gz: fb53c1db3d7c9c72afab005095526a8ae344fdd8c4daf19873c2610169401d50749b6082eff3f1829ec319b43b4004409e9d9c07adcff56f016a4e77a2b98edd
6
+ metadata.gz: bd7e40a49b6a08d9822aa73af47c12367441c22233ef798f73fa26c3634ba18bf33849d3deac57d2bff30a1a541bd463dfa1309f12ad620f38d924e45cabd500
7
+ data.tar.gz: bbc6b12e4cdadd595328feeaa9fec8eb058a745bd0a0c9e51f3fc10fefa76fc8f61530c445859b87ada4b906277071d4c5870af9c5d1f96875725ddc72652334
data/README.md CHANGED
@@ -26,21 +26,21 @@ gem 'unidom-party-china'
26
26
 
27
27
  ## Enum codes
28
28
 
29
- ### Ethnicity enum code
29
+ ### Ethnicity enum code 民族
30
30
 
31
31
  ```ruby
32
32
  # GB/T 3304-1991 有字母代码和数字代码两种代码。
33
33
 
34
- Unidom::Party::China::Ethnicity::Alphabetic::HAN
35
- Unidom::Party::China::Ethnicity::Alphabetic::MONGOL
36
- Unidom::Party::China::Ethnicity::Alphabetic::TIBETAN
37
- Unidom::Party::China::Ethnicity::Alphabetic::KOREAN
34
+ Unidom::Party::China::Ethnicity::Alphabetic::HAN # 汉族
35
+ Unidom::Party::China::Ethnicity::Alphabetic::MONGOL # 蒙古族
36
+ Unidom::Party::China::Ethnicity::Alphabetic::TIBETAN # 藏族
37
+ Unidom::Party::China::Ethnicity::Alphabetic::KOREAN # 朝鲜族
38
38
  # 一共 56 个民族。
39
39
 
40
- Unidom::Party::China::Ethnicity::Numeric::HAN
41
- Unidom::Party::China::Ethnicity::Numeric::MONGOL
42
- Unidom::Party::China::Ethnicity::Numeric::TIBETAN
43
- Unidom::Party::China::Ethnicity::Numeric::KOREAN
40
+ Unidom::Party::China::Ethnicity::Numeric::HAN # 汉族
41
+ Unidom::Party::China::Ethnicity::Numeric::MONGOL # 蒙古族
42
+ Unidom::Party::China::Ethnicity::Numeric::TIBETAN # 藏族
43
+ Unidom::Party::China::Ethnicity::Numeric::KOREAN # 朝鲜族
44
44
  # 一共 56 个民族。
45
45
 
46
46
  Unidom::Party::China::Ethnicity::Alphabetic::HAN.code # 'HA'
@@ -49,20 +49,20 @@ Unidom::Party::China::Ethnicity::Numeric::HAN.code # '01'
49
49
  Unidom::Party::China::Ethnicity::Numeric::HAN.alphabetic_code # 'HA'
50
50
  ```
51
51
 
52
- ### Marital Status enum code
52
+ ### Marital Status enum code 婚姻状况
53
53
 
54
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
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
63
  ```
64
64
 
65
- ### Political Affiliation enum code
65
+ ### Political Affiliation enum code 政治面貌
66
66
 
67
67
  ```ruby
68
68
  Unidom::Party::China::PoliticalAffiliation::COMMUNIST_PARTY_MEMBER # 中国共产党党员
@@ -79,3 +79,17 @@ Unidom::Party::China::PoliticalAffiliation::TAIWAN_DEMOCRATIC_SELF_GOVERNMENT_LE
79
79
  Unidom::Party::China::PoliticalAffiliation::INDEPENDENT_DEMOCRAT # 无党派民主人士
80
80
  Unidom::Party::China::PoliticalAffiliation::MASSES # 群众
81
81
  ```
82
+
83
+ ### Religion Faith enum code 宗教信仰
84
+
85
+ ```ruby
86
+ Unidom::Party::China::ReligionFaith::NO_RELIGION # 无宗教信仰
87
+ Unidom::Party::China::ReligionFaith::BUDDHISM # 佛教
88
+ Unidom::Party::China::ReligionFaith::LAMAISM # 喇嘛教
89
+ Unidom::Party::China::ReligionFaith::TAOISM # 道教
90
+ Unidom::Party::China::ReligionFaith::CATHOLICISM # 天主教
91
+ Unidom::Party::China::ReligionFaith::CHRISTIAN # 基督教
92
+ Unidom::Party::China::ReligionFaith::ORTHODOX # 东正教
93
+ Unidom::Party::China::ReligionFaith::ISLAM # 伊斯兰教
94
+ Unidom::Party::China::ReligionFaith::OTHER # 其他
95
+ ```
@@ -0,0 +1,9 @@
1
+ # Religion Faith 是中国的宗教信仰代码。符合 GA 214.12-2004 标准。
2
+
3
+ class Unidom::Party::China::ReligionFaith < ActiveRecord::Type::Value
4
+
5
+ include ProgneTapera::EnumConfig
6
+
7
+ enum :unidom_china_religion_faith
8
+
9
+ end
data/config/enum.yml CHANGED
@@ -390,3 +390,24 @@ enum:
390
390
  code: '12'
391
391
  masses:
392
392
  code: '13'
393
+
394
+ # GA 214.12-2004
395
+ unidom_china_religion_faith:
396
+ no_religion:
397
+ code: '00'
398
+ buddhism:
399
+ code: '10'
400
+ lamaism:
401
+ code: '20'
402
+ taoism:
403
+ code: '30'
404
+ catholicism:
405
+ code: '40'
406
+ christian:
407
+ code: '50'
408
+ orthodox:
409
+ code: '60'
410
+ islam:
411
+ code: '70'
412
+ other:
413
+ code: '99'
@@ -87,3 +87,15 @@
87
87
  taiwan_democratic_self_government_league_member: 台湾民主自治同盟盟员 # 台盟盟员
88
88
  independent_democrat: 无党派民主人士
89
89
  masses: 群众
90
+
91
+ # GA 214.12-2004
92
+ unidom_china_religion_faith:
93
+ no_religion: 无宗教信仰
94
+ buddhism: 佛教
95
+ lamaism: 喇嘛教
96
+ taoism: 道教
97
+ catholicism: 天主教
98
+ christian: 基督教
99
+ orthodox: 东正教
100
+ islam: 伊斯兰教
101
+ other: 其他
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Party
3
3
  module China
4
- VERSION = '0.3'.freeze
4
+ VERSION = '0.4'.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.3'
4
+ version: '0.4'
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-27 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -61,6 +61,7 @@ files:
61
61
  - app/types/unidom/party/china/ethnicity.rb
62
62
  - app/types/unidom/party/china/marital_status.rb
63
63
  - app/types/unidom/party/china/political_affiliation.rb
64
+ - app/types/unidom/party/china/religion_faith.rb
64
65
  - app/views/layouts/unidom/party/china/application.html.erb
65
66
  - config/enum.yml
66
67
  - config/locales/enum.zh-CN.yml