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: da6f3df3729032ad1072d0c90cf6ef4268f11706
4
- data.tar.gz: cf3f04c79d8926d813d0d32e2cdb3ea120c3f14e
3
+ metadata.gz: 3f5682ee66a65eda8ef628b4c31d8041fa79c5ee
4
+ data.tar.gz: 2a2d18aa8a980acf045b32514df4c82e87b7dfda
5
5
  SHA512:
6
- metadata.gz: a5f84bd5811404b985b3f96fb08acc10be000b35962a34441cecaca09a8609c8fbb9342042ff1ab5de0b8f8cff38d5797170dfc4cf170e6db31277b0219a8069
7
- data.tar.gz: b344cdc06c2d8bce8c55fc034a818011722711d52309c07e6beb1f2fc6be711257a0636b5f5c4102d667c8974806dcec8dd7004965f41865c3b0ae140d789d06
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'
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module ArticleNumber
3
- VERSION = '2.3'.freeze
3
+ VERSION = '2.3.1'.freeze
4
4
  end
5
5
  end
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: '2.3'
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-03 00:00:00.000000000 Z
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