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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6378b2cc06ef41f320aba919c364bc2a0421f600
|
4
|
+
data.tar.gz: 808de7c1b9343e0dbc1357806cfb5d4bb371a711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
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:
|
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-
|
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.
|
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.
|
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 (统一领域对象模型)是一系列的领域模型引擎。中国证件领域模型引擎包括中国大陆的身份证、驾驶证、营业执照等模型。
|