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: 552d291f64ec4381a1cc618a2a8b1e9255a3f1ad
4
- data.tar.gz: c2661ed9dab5a6636173e88f12c25b0bebfb17d7
3
+ metadata.gz: 97eadc3d87db12d558ae7cded2005c35dbb25f57
4
+ data.tar.gz: cc4c50ad0dbad89e761b8e04f3e30e9d4d0f44af
5
5
  SHA512:
6
- metadata.gz: 9a824c3c28ec555373638efd66e9055f2a0ab3ba06f478c4bf178bf64d0459bd72379171e435c511c481eaf19bc0da9b748d31eca545c30360f692296a6fad19
7
- data.tar.gz: d14e8a8944078206fbf663d5bd4c52b250d22d6daaf4b1183beebfb43ba382a5642c1547b057fa78910dac59bb83ef0ce51946a8854972201ed19304f32ab435
6
+ metadata.gz: deb832650b2f692f9421410917ddc519ea9d529cec236115b74d766cca4cef71c1938460def9eb2bd530e242e0863a4a04dc68d5060331c47ea8ee12ebfaa0c5
7
+ data.tar.gz: 8e874ae4facf1c201f51ed61892549534c4b8f18d4315aeb1d35c219be26eb97e0dada715984b65c4bbd4ce70c612c221ca847da3948afb2b325f63d42cdf973
@@ -0,0 +1,13 @@
1
+ module Unidom::Contact::China::Concerns::AsMobilePhoneNumberSubscriber
2
+
3
+ extend ActiveSupport::Concern
4
+
5
+ include Unidom::Contact::Concerns::AsSubscriber
6
+
7
+ included do |includer|
8
+
9
+ #has_many
10
+
11
+ end
12
+
13
+ end
@@ -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 }
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Contact
3
3
  module China
4
- VERSION = '0.4'.freeze
4
+ VERSION = '0.4.1'.freeze
5
5
  end
6
6
  end
7
7
  end
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: '0.4'
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-07-21 00:00:00.000000000 Z
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.9'
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.9'
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