unidom-article_number 2.2.3 → 2.3

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: 17922bcfb65355b5a241c94d1f8be0138955bae4
4
- data.tar.gz: 4ab94d6cc2d4d7a7de60e8df99eda235f41dd6ac
3
+ metadata.gz: da6f3df3729032ad1072d0c90cf6ef4268f11706
4
+ data.tar.gz: cf3f04c79d8926d813d0d32e2cdb3ea120c3f14e
5
5
  SHA512:
6
- metadata.gz: b50467ec96efad5cca52417a71b5122e1147910580ea33fb336b764db0448b6d3a570b5a748299a6cadbccdea2d9bf2140d7fb3a3d84d07bd113e7e582448a28
7
- data.tar.gz: a1a5970abe0664c246c69cc5a97a763ce05d6422178303f46308dda2c4b3440dcf7ff63916502862d8f4552d55bd0ebcbfa5e185992998a60bb1731d7a9662c6
6
+ metadata.gz: a5f84bd5811404b985b3f96fb08acc10be000b35962a34441cecaca09a8609c8fbb9342042ff1ab5de0b8f8cff38d5797170dfc4cf170e6db31277b0219a8069
7
+ data.tar.gz: b344cdc06c2d8bce8c55fc034a818011722711d52309c07e6beb1f2fc6be711257a0636b5f5c4102d667c8974806dcec8dd7004965f41865c3b0ae140d789d06
data/README.md CHANGED
@@ -113,3 +113,18 @@ Unidom::Common.configure do |options|
113
113
 
114
114
  end
115
115
  ```
116
+
117
+
118
+
119
+ ## RSpec examples
120
+
121
+ ```ruby
122
+ # spec/models/unidom_spec.rb
123
+ require 'unidom/article_number/models_rspec'
124
+
125
+ # spec/types/unidom_spec.rb
126
+ require 'unidom/article_number/types_rspec'
127
+
128
+ # spec/validators/unidom_spec.rb
129
+ require 'unidom/article_number/validators_rspec'
130
+ ```
@@ -0,0 +1,19 @@
1
+ describe Unidom::ArticleNumber::Ean13Barcode, 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
+ code: '1234567890123'
13
+ }
14
+
15
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
16
+
17
+ end
18
+
19
+ end
@@ -0,0 +1,19 @@
1
+ describe Unidom::ArticleNumber::Ean8Barcode, 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
+ code: '12345678'
13
+ }
14
+
15
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
16
+
17
+ end
18
+
19
+ end
@@ -0,0 +1,24 @@
1
+ describe Unidom::ArticleNumber::Marking, 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
+ barcode_id: SecureRandom.uuid,
13
+ barcode_type: 'Unidom::ArticleNumber::Barcode::Mock',
14
+ marked_id: SecureRandom.uuid,
15
+ marked_type: 'Unidom::ArticleNumber::Marked::Mock',
16
+ marker_id: SecureRandom.uuid,
17
+ marker_type: 'Unidom::ArticleNumber::Marker::Mock'
18
+ }
19
+
20
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
21
+
22
+ end
23
+
24
+ end
@@ -0,0 +1,19 @@
1
+ describe Unidom::ArticleNumber::VehicleIdentificationNumber, 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
+ code: 'LVHCU165XD5002138'
13
+ }
14
+
15
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
16
+
17
+ end
18
+
19
+ end
@@ -0,0 +1,4 @@
1
+ require 'rspec/models/unidom/article_number/marking_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::ArticleNumber::Marking'
2
+ require 'rspec/models/unidom/article_number/ean13_barcode_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::ArticleNumber::Ean13Barcode'
3
+ require 'rspec/models/unidom/article_number/ean8_barcode_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::ArticleNumber::Ean8Barcode'
4
+ require 'rspec/models/unidom/article_number/vehicle_identification_number_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::ArticleNumber::VehicleIdentificationNumber'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module ArticleNumber
3
- VERSION = '2.2.3'.freeze
3
+ VERSION = '2.3'.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.2.3
4
+ version: '2.3'
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-23 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -60,9 +60,16 @@ files:
60
60
  - db/migrate/20020102000000_create_unidom_ean_13_barcodes.rb
61
61
  - db/migrate/20020103000000_create_unidom_ean_8_barcodes.rb
62
62
  - db/migrate/20020111000000_create_unidom_vehicle_identification_numbers.rb
63
+ - lib/rspec/models/unidom/article_number/ean13_barcode_spec.rb
64
+ - lib/rspec/models/unidom/article_number/ean8_barcode_spec.rb
65
+ - lib/rspec/models/unidom/article_number/marking_spec.rb
66
+ - lib/rspec/models/unidom/article_number/vehicle_identification_number_spec.rb
63
67
  - lib/tasks/article_number_tasks.rake
64
68
  - lib/unidom/article_number.rb
65
69
  - lib/unidom/article_number/engine.rb
70
+ - lib/unidom/article_number/models_rspec.rb
71
+ - lib/unidom/article_number/types_rspec.rb
72
+ - lib/unidom/article_number/validators_rspec.rb
66
73
  - lib/unidom/article_number/version.rb
67
74
  homepage: https://github.com/topbitdu/unidom-article_number
68
75
  licenses: