unidom-article_number 2.3 → 2.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f5682ee66a65eda8ef628b4c31d8041fa79c5ee
|
4
|
+
data.tar.gz: 2a2d18aa8a980acf045b32514df4c82e87b7dfda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2667468a870a580bdbae5cb7f1a51d1dd112f52444f6ece04a52ab05b8257c75a8ccb6d05139e02a90080616ec530f3a15f870200544ed8c233f5f01a7f9713d
|
7
|
+
data.tar.gz: 33985c795904339784c9204a1c0515d3d0c7c9aca08ac2e006201c5c0f9a7d984150565d71ef958c5e24bc57e287a1b5d9acc8fc2f7a0dd4bb928f3ec32a79de
|
@@ -0,0 +1,17 @@
|
|
1
|
+
RSpec.describe Unidom::ArticleNumber::VehicleIdentificationNumberValidator, type: :validator do
|
2
|
+
|
3
|
+
valid_values = %w{
|
4
|
+
LVHCU165XD5002138 LFVAA11A6X2075355 LSVXT25N7E2042597 WP0BB29987S755105
|
5
|
+
LVSHJCAC0FE088928 LHGRU5740F2007518 LFBME3089AJB07904 LBVHZ1102HMG31396
|
6
|
+
WBSGZ0109BL587599 VF1DZR969EE515428 SAJAA89P09SH30710 WA1BY74L17D070375
|
7
|
+
WP0BB29987S755105
|
8
|
+
}
|
9
|
+
invalid_values = %w{
|
10
|
+
LVHCU165XD5002137 LFVAA11A6X2075354 LSVXT25N7E2042596 WP0BB29987S755104
|
11
|
+
LVSHJCAC0FE088927 LHGRU5740F2007517 LFBME3089AJB07903 LBVHZ1102HMG31395
|
12
|
+
WBSGZ0109BL587598 VF1DZR969EE515427 SAJAA89P09SH30719 WA1BY74L17D070374
|
13
|
+
WP0BB29987S755104
|
14
|
+
}
|
15
|
+
it_behaves_like 'ActiveModel::EachValidator', valid_values, invalid_values
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rspec/types/unidom/article_number/vehicle_identification_number_validator_spec'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-article_number
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.3.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-02-
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/rspec/models/unidom/article_number/ean8_barcode_spec.rb
|
65
65
|
- lib/rspec/models/unidom/article_number/marking_spec.rb
|
66
66
|
- lib/rspec/models/unidom/article_number/vehicle_identification_number_spec.rb
|
67
|
+
- lib/rspec/types/unidom/article_number/vehicle_identification_number_validator_spec.rb
|
67
68
|
- lib/tasks/article_number_tasks.rake
|
68
69
|
- lib/unidom/article_number.rb
|
69
70
|
- lib/unidom/article_number/engine.rb
|