unidom-certificate-china 1.5 → 1.5.1

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: bb2283418172637b1bf0cd1f74d3bb117b9a09a9
4
- data.tar.gz: 6ae4e01122882724a7f4f14a7817e3526f5784eb
3
+ metadata.gz: 6378b2cc06ef41f320aba919c364bc2a0421f600
4
+ data.tar.gz: 808de7c1b9343e0dbc1357806cfb5d4bb371a711
5
5
  SHA512:
6
- metadata.gz: 8e4dc90b0e0e0101d0cdebc15999ef2bd64fd3c856fce042ceda78da65c3e07d76b905c268cd18c4235520a7ed78e4ae3083f2ff6bf62bcee5720a0986c4c0c7
7
- data.tar.gz: ba2397916b9d0b855cbf678880b2eec72a052bf1a7f8bc29106b4a5121860c9a82e8a22b73a5c67c5b8ae9bb8bfc9314337db5128d7a01c1d1e1ca92fc2d3cef
6
+ metadata.gz: aef1aaca4f8b14fe7ae71599b2c43f2a63f06f3a407215e73278b8b09daf509885415b1ef9de53b9ecc6c08c0386d8ea2fa9876ceedeb0416df7b3184c2c5891
7
+ data.tar.gz: 67a071a7c388e40a46ee1ba72ae5648658f57dd1073756973cfc5bbf74b8c2dac29c3d408f3d087cbf88219a27baaf730a7903446e32c1d57705e5cf6352df19
data/README.md CHANGED
@@ -107,6 +107,22 @@ validates :identification_number, presence: true, 'unidom/certificate/china/iden
107
107
 
108
108
 
109
109
 
110
+ ## Disable the Model & Migration
111
+
112
+ If you only need the app components other than models, the migrations should be neglected, and the models should not be loaded.
113
+ ```ruby
114
+ # config/initializers/unidom.rb
115
+ Unidom::Common.configure do |options|
116
+
117
+ options[:neglected_namespaces] = %w{
118
+ Unidom::Certificate::China
119
+ }
120
+
121
+ end
122
+ ```
123
+
124
+
125
+
110
126
  ## RSpec examples
111
127
 
112
128
  ```ruby
@@ -23,4 +23,4 @@ class Unidom::Certificate::China::BusinessLicense < Unidom::Certificate::China::
23
23
  scope :registration_number_is, ->(registration_number) { where registration_number: registration_number }
24
24
  scope :unified_social_credit_identifier_is, ->(unified_social_credit_identifier) { where unified_social_credit_identifier: unified_social_credit_identifier }
25
25
 
26
- end
26
+ end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Certificate::China::BusinessLicense'
@@ -27,4 +27,4 @@ class Unidom::Certificate::China::IdentityCard < Unidom::Certificate::China::App
27
27
  end
28
28
  end
29
29
 
30
- end
30
+ end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Certificate::China::IdentityCard'
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Certificate
3
3
  module China
4
- VERSION = '1.5'.freeze
4
+ VERSION = '1.5.1'.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-certificate-china
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.5'
4
+ version: 1.5.1
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-31 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-certificate
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '2.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 2.0.4
22
+ version: 2.0.5
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '2.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 2.0.4
32
+ version: 2.0.5
33
33
  description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
34
34
  The China Certificate domain model engine includes Identity Card, Driving License,
35
35
  and Business License models. Unidom (统一领域对象模型)是一系列的领域模型引擎。中国证件领域模型引擎包括中国大陆的身份证、驾驶证、营业执照等模型。