unidom-certificate-china 0.5 → 0.6

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: f1ebb22113165762129d156c66a2e31ef07f7469
4
- data.tar.gz: 78b7cc598c1175cc515db257f8d9ef068b77b65f
3
+ metadata.gz: e791aa5a5398e2d83aa4772c34c8d4d8878a635a
4
+ data.tar.gz: 94ac4d0cfd12ccd42f7eadf092c2c68fb5ace351
5
5
  SHA512:
6
- metadata.gz: 9550a44fac943eb754151bb9f4c593810bb28c8737256e2e6b2cf3c912d892139786376a466211d64727cd588a1be0431961636d5fd8e6decf6500985051df69
7
- data.tar.gz: e49296df9f8595d5fd06b8a9bca6573e98a66348de5b1be51f779c282232bbd4e10cf08434f7021e4534a4f5205ec9fab1cd0905a66ab41ff3d7ac835f5895b6
6
+ metadata.gz: 235ccb5216d1eb79f155023d7b3d18c4e9312d24248878ccc3095c9b3f1d3e51e28583f2833cb244787eb76666f451d675b08b29e6b7af6f039a440723993163
7
+ data.tar.gz: 7c28c5f4b03061faf2388201427aaaf533df56509fc0245da53091daec2d6dc59f9e1c979a4bf08ed320c5cf61309520151c087cc7783e51f191fb8ad2f702c6
@@ -16,6 +16,8 @@ class Unidom::Certificate::China::BusinessLicense < ActiveRecord::Base
16
16
  validates :legal_representative_name, presence: true, length: { in: 2..columns_hash['legal_representative_name'].limit }
17
17
  validates :issuing_authority_name, allow_blank: true, length: { in: 2..columns_hash['issuing_authority_name'].limit }
18
18
 
19
+ has_many :certificatings, class_name: 'Unidom::Certificate::Certificating', as: :certification
20
+
19
21
  scope :registration_number_is, ->(registration_number) { where registration_number: registration_number }
20
22
 
21
23
  end
@@ -8,9 +8,11 @@ class Unidom::Certificate::China::IdentityCard < ActiveRecord::Base
8
8
 
9
9
  include Unidom::Common::Concerns::ModelExtension
10
10
 
11
- validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }
12
- validates :address, presence: true, length: { in: 2..self.columns_hash['address'].limit }
13
- validates :identification_number, presence: true, length: { is: self.columns_hash['identification_number'].limit }, format: FORMAT_VALIDATION_REGEX
11
+ validates :identification_number, presence: true, length: { is: self.columns_hash['identification_number'].limit }, format: FORMAT_VALIDATION_REGEX
12
+
13
+ validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }
14
+ validates :address, presence: true, length: { in: 2..self.columns_hash['address'].limit }
15
+
14
16
  validates :issuing_authority_name, allow_blank: true, length: { in: 2..self.columns_hash['issuing_authority_name'].limit }
15
17
 
16
18
  has_many :certificatings, class_name: 'Unidom::Certificate::Certificating', as: :certification
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Certificate
3
3
  module China
4
- VERSION = '0.5'.freeze
4
+ VERSION = '0.6'.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-certificate-china
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
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-04-10 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common