unidom-contact-china 0.1 → 0.2

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: 60acf9eeb82c684644bc14b7423c4fba97a597b7
4
- data.tar.gz: d7882a62ee7ad4939fac9ef30bee4b7c10045c00
3
+ metadata.gz: a2c89fad874e35f5df3010669c036725a947cad4
4
+ data.tar.gz: 718270c03564b3cdeacee35385918da264ee0ec4
5
5
  SHA512:
6
- metadata.gz: 37986482871dab40547ccb42f39dd83f58ca280039f172edfa1337521ecb9626949b51788d80a9dd32beb1aef4d3018d0584408a685aa1663ab8e6245ce4d435
7
- data.tar.gz: 36c229e76cd825c5651808d6fbd271ee6905eabae2555f800b68c7d977136e27f1b249173b2036b2e83b77c2947282163ed93418b1d89d85cc1aa8480eaf858f
6
+ metadata.gz: 0c84519bf78c79f6f1ee46dc1bb705bed99ba9d92ef97b18dd3bfaeec5ec47490a1f9337aa2fcca69ce65c44b9dac34608cf0231dd40b312d14fbfa5e1d05436
7
+ data.tar.gz: f1064d75f97f8553cf0633e1d577210d20d2ef85667d4c879b4d415727053a63aa5cfca8cd34fdd0b20168879f0c9814967a9cfd8197dc0a5e49bf9ae798cd02
data/README.md CHANGED
@@ -1,21 +1,22 @@
1
- # Unidom Contact China 中国行政区划领域模型引擎
1
+ # Unidom Contact China 中国联系方式领域模型引擎
2
2
 
3
3
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
4
+ [![Gem Version](https://badge.fury.io/rb/unidom-contact-china.svg)](https://badge.fury.io/rb/unidom-contact-china)
4
5
 
5
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.
6
7
  Unidom (统一领域对象模型)是一系列的领域模型引擎。中国行政区划领域模型引擎包括中国大陆的手机号码及其相关的模型。
7
8
 
8
- ## Usage in Gemfile:
9
+ ## Usage in Gemfile
9
10
  ```ruby
10
11
  gem 'unidom-contact-china'
11
12
  ```
12
13
 
13
- ## Run the Database Migration:
14
+ ## Run the Database Migration
14
15
  ```shell
15
16
  rake db:migrate
16
17
  ```
17
18
 
18
- ## Call the Model:
19
+ ## Call the Model
19
20
  ```ruby
20
21
  Unidom::Contact::China::MobilePhoneNumber.valid_at.alive.first
21
22
  ```
@@ -16,7 +16,7 @@ class Unidom::Contact::China::MobilePhoneNumber < ActiveRecord::Base
16
16
  scope :area_code_is, ->(area_code) { where area_code: area_code }
17
17
  scope :serial_number_is, ->(serial_number) { where serial_number: phone_number }
18
18
 
19
- include ::Unidom::Common::ModelExtension
19
+ include Unidom::Common::Concerns::ModelExtension
20
20
 
21
21
  before_validation do
22
22
  self.network_identification_number = self.phone_number[0..2]
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Contact
3
3
  module China
4
- VERSION = '0.1'.freeze
4
+ VERSION = '0.2'.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-contact-china
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
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-02-09 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -26,7 +26,7 @@ dependencies:
26
26
  version: '0.2'
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
+ (统一领域对象模型)是一系列的领域模型引擎。中国联系方式领域模型引擎包括中国大陆的移动电话号码及其相关的模型。
30
30
  email:
31
31
  - topbit.du@gmail.com
32
32
  executables: []
@@ -71,6 +71,5 @@ rubyforge_project:
71
71
  rubygems_version: 2.4.5.1
72
72
  signing_key:
73
73
  specification_version: 4
74
- summary: The China Contact domain model engine includes China Mobile Phone Number
75
- its relative models.
74
+ summary: China Contact Domain Model Engine 中国联系方式领域模型引擎
76
75
  test_files: []