unidom-article_number 2.3.7 → 3.0
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 193db4f054cf4f48af079266d4f04b47613cff838f0390dff0536ec1acf380eb
|
4
|
+
data.tar.gz: b4f1fd360428afeb471f0a380ecec57cb3057869663a0b16c09de39f0e0ecbcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad9efe8aa0829faf6c15abce4d0574296f581ec2f4259aa53bb52c5f7912d44a7bc2f34e0cc1dcfcfa87e648dba00de6c025fe8229c49760b212e7c2044fde4e
|
7
|
+
data.tar.gz: 5d2c920a5f0c03b30c93f399b8c3bc36e32a263ed9164584e2205e81f9fd84dec5a81e0c2f4489a2fab915f49d34a5681b987054012f35e7e400b999b414e733
|
@@ -0,0 +1,25 @@
|
|
1
|
+
shared_examples 'Unidom::ArticleNumber::Concerns::AsMarked' do |model_attributes|
|
2
|
+
|
3
|
+
marking_1_attribtues = {
|
4
|
+
marker_id: SecureRandom.uuid,
|
5
|
+
marker_type: 'Unidom::ArticleNumber::Marker::Mock'
|
6
|
+
}
|
7
|
+
|
8
|
+
marking_2_attribtues = {
|
9
|
+
marker_id: SecureRandom.uuid,
|
10
|
+
marker_type: 'Unidom::ArticleNumber::Marker::Mock'
|
11
|
+
}
|
12
|
+
|
13
|
+
marking_1_attribtues[:barcode] = Unidom::ArticleNumber::Ean13Barcode.coded_as('1234567899527').first_or_create!
|
14
|
+
marking_1_attribtues[:barcode] = Unidom::ArticleNumber::Ean13Barcode.coded_as('1234567899526').first_or_create!
|
15
|
+
it_behaves_like 'has_many', model_attributes, :markings, Unidom::ArticleNumber::Marking, [ marking_1_attribtues, marking_2_attribtues ]
|
16
|
+
|
17
|
+
marking_1_attribtues[:barcode] = Unidom::ArticleNumber::Ean8Barcode.coded_as('95279527').first_or_create!
|
18
|
+
marking_1_attribtues[:barcode] = Unidom::ArticleNumber::Ean8Barcode.coded_as('95269526').first_or_create!
|
19
|
+
it_behaves_like 'has_many', model_attributes, :markings, Unidom::ArticleNumber::Marking, [ marking_1_attribtues, marking_2_attribtues ]
|
20
|
+
|
21
|
+
#marking_1_attribtues[:barcode] = Unidom::ArticleNumber::VehicleIdentificationNumber.coded_as('LVHCU165XD5002138').first_or_create!
|
22
|
+
#marking_1_attribtues[:barcode] = Unidom::ArticleNumber::VehicleIdentificationNumber.coded_as('LFVAA11A6X2075355').first_or_create!
|
23
|
+
#it_behaves_like 'has_many', model_attributes, :markings, Unidom::ArticleNumber::Marking, [ marking_1_attribtues, marking_2_attribtues ]
|
24
|
+
|
25
|
+
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:
|
4
|
+
version: '3.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topbit Du
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
|
28
28
|
The Article Number domain model engine includes EAN-13, EAN-8, and IMEI models.
|
29
29
|
Unidom (统一领域对象模型)是一系列的领域模型引擎。物品编码领域模型引擎包括EAN-13、EAN-8和IMEI的模型。
|
@@ -61,6 +61,7 @@ files:
|
|
61
61
|
- db/migrate/20020103000000_create_unidom_ean_8_barcodes.rb
|
62
62
|
- db/migrate/20020111000000_create_unidom_vehicle_identification_numbers.rb
|
63
63
|
- lib/rspec/models/unidom/article_number/concerns/as_barcode_shared_examples.rb
|
64
|
+
- lib/rspec/models/unidom/article_number/concerns/as_marked_shared_examples.rb
|
64
65
|
- lib/rspec/models/unidom/article_number/ean13_barcode_spec.rb
|
65
66
|
- lib/rspec/models/unidom/article_number/ean8_barcode_spec.rb
|
66
67
|
- lib/rspec/models/unidom/article_number/marking_spec.rb
|
@@ -93,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
94
|
- !ruby/object:Gem::Version
|
94
95
|
version: '0'
|
95
96
|
requirements: []
|
96
|
-
|
97
|
-
rubygems_version: 2.6.4
|
97
|
+
rubygems_version: 3.1.2
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Unidom Article Number Domain Model Engine 物品编码领域模型引擎
|