unidom-contact-china 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/app/assets/javascripts/unidom/contact/china/application.js +1 -1
- data/app/assets/stylesheets/unidom/contact/china/application.css +0 -1
- data/app/models/unidom/contact/china/mobile_phone_number.rb +1 -1
- data/app/views/layouts/unidom/contact/china/application.html.erb +3 -2
- data/lib/unidom/contact/china/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 552d291f64ec4381a1cc618a2a8b1e9255a3f1ad
|
4
|
+
data.tar.gz: c2661ed9dab5a6636173e88f12c25b0bebfb17d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a824c3c28ec555373638efd66e9055f2a0ab3ba06f478c4bf178bf64d0459bd72379171e435c511c481eaf19bc0da9b748d31eca545c30360f692296a6fad19
|
7
|
+
data.tar.gz: d14e8a8944078206fbf663d5bd4c52b250d22d6daaf4b1183beebfb43ba382a5642c1547b057fa78910dac59bb83ef0ce51946a8854972201ed19304f32ab435
|
data/README.md
CHANGED
@@ -6,6 +6,10 @@
|
|
6
6
|
Unidom (UNIfied Domain Object Model) is a series of domain model engines. The China Contact domain model engine includes China Mobile Phone Number and its relative models.
|
7
7
|
Unidom (统一领域对象模型)是一系列的领域模型引擎。中国行政区划领域模型引擎包括中国大陆的手机号码及其相关的模型。
|
8
8
|
|
9
|
+
## Recent Update
|
10
|
+
Check out the [Road Map](ROADMAP.md) to find out what's the next.
|
11
|
+
Check out the [Change Log](CHANGELOG.md) to find out what's new.
|
12
|
+
|
9
13
|
## Usage in Gemfile
|
10
14
|
```ruby
|
11
15
|
gem 'unidom-contact-china'
|
@@ -15,6 +19,7 @@ gem 'unidom-contact-china'
|
|
15
19
|
```shell
|
16
20
|
rake db:migrate
|
17
21
|
```
|
22
|
+
The migration versions start with 2001039156.
|
18
23
|
|
19
24
|
## Call the Model
|
20
25
|
```ruby
|
@@ -13,7 +13,7 @@ class Unidom::Contact::China::MobilePhoneNumber < ActiveRecord::Base
|
|
13
13
|
validates :serial_number, presence: true, length: { is: self.columns_hash['serial_number'].limit }, numericality: { integer_only: true }
|
14
14
|
validates :area_code, numericality: { integer_only: true }
|
15
15
|
|
16
|
-
has_many :
|
16
|
+
has_many :contact_subscriptions, class_name: 'Unidom::Contact::ContactSubscription', as: :contact
|
17
17
|
|
18
18
|
scope :phone_number_is, ->(phone_number) { where phone_number: phone_number }
|
19
19
|
scope :network_identification_number_is, ->(network_identification_number) { where network_identification_number: network_identification_number }
|
@@ -2,13 +2,14 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>China</title>
|
5
|
-
<%= stylesheet_link_tag
|
6
|
-
<%= javascript_include_tag "china/application" %>
|
5
|
+
<%= stylesheet_link_tag "china/application", media: "all" %>
|
7
6
|
<%= csrf_meta_tags %>
|
8
7
|
</head>
|
9
8
|
<body>
|
10
9
|
|
11
10
|
<%= yield %>
|
12
11
|
|
12
|
+
<%= javascript_include_tag 'china/application' %>
|
13
|
+
|
13
14
|
</body>
|
14
15
|
</html>
|
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: '0.
|
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
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.9'
|
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: '0.9'
|
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
|
(统一领域对象模型)是一系列的领域模型引擎。中国联系方式领域模型引擎包括中国大陆的移动电话号码及其相关的模型。
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
|
-
rubygems_version: 2.4
|
71
|
+
rubygems_version: 2.6.4
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: China Contact Domain Model Engine 中国联系方式领域模型引擎
|