unidom-contact-china 0.4 → 0.4.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: 97eadc3d87db12d558ae7cded2005c35dbb25f57
|
4
|
+
data.tar.gz: cc4c50ad0dbad89e761b8e04f3e30e9d4d0f44af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deb832650b2f692f9421410917ddc519ea9d529cec236115b74d766cca4cef71c1938460def9eb2bd530e242e0863a4a04dc68d5060331c47ea8ee12ebfaa0c5
|
7
|
+
data.tar.gz: 8e874ae4facf1c201f51ed61892549534c4b8f18d4315aeb1d35c219be26eb97e0dada715984b65c4bbd4ce70c612c221ca847da3948afb2b325f63d42cdf973
|
@@ -7,6 +7,7 @@ class Unidom::Contact::China::MobilePhoneNumber < ActiveRecord::Base
|
|
7
7
|
self.table_name = 'unidom_china_mobile_phone_numbers'
|
8
8
|
|
9
9
|
include Unidom::Common::Concerns::ModelExtension
|
10
|
+
#include Unidom::Contact::Concerns::AsContact
|
10
11
|
|
11
12
|
validates :phone_number, presence: true, length: { is: self.columns_hash['phone_number'].limit }, numericality: { integer_only: true }, format: FORMAT_VALIDATION_REGEX
|
12
13
|
validates :network_identification_number, presence: true, length: { is: self.columns_hash['network_identification_number'].limit }, numericality: { integer_only: true }
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-contact-china
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.4.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: 2016-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '1.0'
|
27
27
|
description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
|
28
28
|
The China Region domain model engine includes Region and its relative models. Unidom
|
29
29
|
(统一领域对象模型)是一系列的领域模型引擎。中国联系方式领域模型引擎包括中国大陆的移动电话号码及其相关的模型。
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- app/assets/stylesheets/unidom/contact/china/application.css
|
41
41
|
- app/controllers/unidom/contact/china/application_controller.rb
|
42
42
|
- app/helpers/unidom/contact/china/application_helper.rb
|
43
|
+
- app/models/unidom/contact/china/concerns/as_mobile_phone_number_subscriber.rb
|
43
44
|
- app/models/unidom/contact/china/mobile_phone_number.rb
|
44
45
|
- app/views/layouts/unidom/contact/china/application.html.erb
|
45
46
|
- config/routes.rb
|