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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0898de25a815e1ca7cf48ae6fb5aefe6ec16ba4
4
- data.tar.gz: 2005cf132ccbac54f6ff494a326c43914dd11c31
3
+ metadata.gz: 552d291f64ec4381a1cc618a2a8b1e9255a3f1ad
4
+ data.tar.gz: c2661ed9dab5a6636173e88f12c25b0bebfb17d7
5
5
  SHA512:
6
- metadata.gz: 3fcf5fc6e848e73a486f52fdd7da94d3f09ad1b48ef1f8f517a45efcfeaa957b6177adb24dd56cee53a58e61e27b49ee0d074dbd371e2ee498a08993a031feea
7
- data.tar.gz: 847cfee92e136d9af83dcb1821a5505af563e6dd5be841f3f4c0acdb6b8d8dbca4c2e9ca24e218d295ef4df26fb36af84bd8431d2f101b4dfb7f6c096754361b
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
@@ -10,4 +10,4 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
- //= require_tree .
13
+ //= require_self
@@ -10,6 +10,5 @@
10
10
  * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
11
  * file per style scope.
12
12
  *
13
- *= require_tree .
14
13
  *= require_self
15
14
  */
@@ -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 :contact_subscription, class_name: 'Unidom::Contact::ContactSubscription', as: :contact
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 "china/application", media: "all" %>
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>
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Contact
3
3
  module China
4
- VERSION = '0.3'.freeze
4
+ VERSION = '0.4'.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.3'
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-03-25 00:00:00.000000000 Z
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.5'
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.5'
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.5.1
71
+ rubygems_version: 2.6.4
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: China Contact Domain Model Engine 中国联系方式领域模型引擎