unidom-contact-china 1.0.4 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/lib/rspec/models/unidom/contact/china/mobile_phone_number_spec.rb +19 -0
- data/lib/unidom/contact/china/models_rspec.rb +1 -0
- data/lib/unidom/contact/china/types_rspec.rb +0 -0
- data/lib/unidom/contact/china/validators_rspec.rb +0 -0
- data/lib/unidom/contact/china/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16b5a5c644259df34f014d43a72a4629c5dbf662
|
4
|
+
data.tar.gz: 7acc234fc88b1aea1d5e8b8e293212cfd8fc3f66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d3a406007d0eb869466743d837d8b68c1a89230381a35d52d4cbd77d9372ae5cc93434aae79a1830271e647c111f535bcffcc417e19e0b7641c7093feca8bca
|
7
|
+
data.tar.gz: 4124c873f692a2cf1a28595d4b0a86cddcc2258a7b76779358671f53b531d53c1e1abf44f29669fd65b41ac410d08e570b60b08af8ca8348a2c3365a2ec92d0e
|
data/README.md
CHANGED
@@ -76,3 +76,18 @@ Unidom::Common.configure do |options|
|
|
76
76
|
|
77
77
|
end
|
78
78
|
```
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
## RSpec examples
|
83
|
+
|
84
|
+
```ruby
|
85
|
+
# spec/models/unidom_spec.rb
|
86
|
+
require 'unidom/contact/china/models_rspec'
|
87
|
+
|
88
|
+
# spec/types/unidom_spec.rb
|
89
|
+
require 'unidom/contact/china/types_rspec'
|
90
|
+
|
91
|
+
# spec/validators/unidom_spec.rb
|
92
|
+
require 'unidom/contact/china/validators_rspec'
|
93
|
+
```
|
@@ -0,0 +1,19 @@
|
|
1
|
+
describe Unidom::Contact::China::MobilePhoneNumber, type: :model do
|
2
|
+
|
3
|
+
before :each do
|
4
|
+
end
|
5
|
+
|
6
|
+
after :each do
|
7
|
+
end
|
8
|
+
|
9
|
+
context do
|
10
|
+
|
11
|
+
model_attributes = {
|
12
|
+
phone_number: '13912345678'
|
13
|
+
}
|
14
|
+
|
15
|
+
it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rspec/models/unidom/contact/china/mobile_phone_number_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Contact::China::MobilePhoneNumber'
|
File without changes
|
File without changes
|
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: 1.
|
4
|
+
version: '1.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: 2017-01-
|
11
|
+
date: 2017-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-contact
|
@@ -55,9 +55,13 @@ files:
|
|
55
55
|
- app/views/layouts/unidom/contact/china/application.html.erb
|
56
56
|
- config/routes.rb
|
57
57
|
- db/migrate/20010391560010_create_unidom_china_mobile_phone_numbers.rb
|
58
|
+
- lib/rspec/models/unidom/contact/china/mobile_phone_number_spec.rb
|
58
59
|
- lib/tasks/china_tasks.rake
|
59
60
|
- lib/unidom/contact/china.rb
|
60
61
|
- lib/unidom/contact/china/engine.rb
|
62
|
+
- lib/unidom/contact/china/models_rspec.rb
|
63
|
+
- lib/unidom/contact/china/types_rspec.rb
|
64
|
+
- lib/unidom/contact/china/validators_rspec.rb
|
61
65
|
- lib/unidom/contact/china/version.rb
|
62
66
|
homepage: https://github.com/topbitdu/unidom-contact-china
|
63
67
|
licenses:
|