unidom-contact-china 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +19 -1
- data/app/controllers/unidom/contact/china/application_controller.rb +3 -0
- data/app/jobs/unidom/contact/china/application_job.rb +3 -0
- data/app/mailers/unidom/contact/china/application_mailer.rb +3 -0
- data/app/models/unidom/contact/china/application_record.rb +3 -0
- data/app/models/unidom/contact/china/mobile_phone_number.rb +1 -1
- data/lib/unidom/contact/china/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4edbad639d754e7b9b12bf4bb512b6fe41b6736
|
4
|
+
data.tar.gz: daebec9390fbbbeaae51f81e95623ba429456600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8af4b06f14b739c2b41b672ec171ea6fe587ab4e2dd894453b82c9326700a36fceeedb5314394165fae0d55c033d18f37ecdd8e67eed6f7602daf3e08bde2446
|
7
|
+
data.tar.gz: 98c3bc06866760db1bef83bff521a0a6cdf777448678ce94447f09dc3622577e18fb38ec51ce71039e915e5e4741b85649541f366cefb957cb0ac39cd7da93fc
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Unidom Contact China 中国联系方式领域模型引擎
|
2
2
|
|
3
|
+
[](http://www.rubydoc.info/gems/unidom-contact-china/frames)
|
3
4
|
[](http://opensource.org/licenses/MIT)
|
5
|
+
|
4
6
|
[](https://badge.fury.io/rb/unidom-contact-china)
|
5
7
|
[](https://gemnasium.com/github.com/topbitdu/unidom-contact-china)
|
6
8
|
|
@@ -56,5 +58,21 @@ include Unidom::Contact::China::Concerns::AsMobilePhoneNumberSubscriber
|
|
56
58
|
|
57
59
|
### As Mobile Phone Number Subscriber concern
|
58
60
|
|
59
|
-
The As Mobile Phone Number Subscriber concern do the following tasks for the includer automatically:
|
61
|
+
The As Mobile Phone Number Subscriber concern do the following tasks for the includer automatically:
|
60
62
|
1. Define the has_many :china_mobile_phone_numbers macro as: ``has_many :china_mobile_phone_numbers, through: :contact_subscriptions, source: :contact, source_type: 'Unidom::Contact::China::MobilePhoneNumber'``
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
## Disable the Model & Migration
|
67
|
+
|
68
|
+
If you only need the app components other than models, the migrations should be neglected, and the models should not be loaded.
|
69
|
+
```ruby
|
70
|
+
# config/initializers/unidom.rb
|
71
|
+
Unidom::Common.configure do |options|
|
72
|
+
|
73
|
+
options[:neglected_namespaces] = %w{
|
74
|
+
Unidom::Contact::China
|
75
|
+
}
|
76
|
+
|
77
|
+
end
|
78
|
+
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-contact-china
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.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: 2017-01-
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-contact
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '1.3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.3.
|
22
|
+
version: 1.3.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: '1.3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.3.
|
32
|
+
version: 1.3.5
|
33
33
|
description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
|
34
34
|
The China Region domain model engine includes Region and its relative models. Unidom
|
35
35
|
(统一领域对象模型)是一系列的领域模型引擎。中国联系方式领域模型引擎包括中国大陆的移动电话号码及其相关的模型。
|