gs1 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/gs1/barcode/base.rb +2 -2
- data/lib/gs1/generated_ai_classes.rb +2 -2
- data/lib/gs1/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2da9e3ec269f1240aa7ffd03692135627ed28eabdcc50366e0d163f8d05ff1f8
|
4
|
+
data.tar.gz: fbc6c7cd49ceeefd92f355ec39d6d2b66a001fc9ce7375de97fde1ee7fa38fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d29da22fdd0e038eb9f47fe97b880ab70357e0206ecd5e9618c45d4e7a3e17bd3d53497e4711bcabdd5358d242b8e2bbcbefe446fdbaa4f76d11ab7cb8dacd0
|
7
|
+
data.tar.gz: a90e58b9c8b10efe49270746954a3db76f2ec8e94793feb89b39056797ba4360c7f1d04653e8d45a6a1f0477f0322b2fd9346095e405a009de6a00cb625c1147
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [2.0.3] - 2025-04-29
|
10
|
+
### Fixed
|
11
|
+
- Fix: `@8110' is not allowed as an instance variable name
|
12
|
+
- Fix NoMethodError in `GS1::Barcode::Healthcare#to_s`
|
13
|
+
|
9
14
|
## [2.0.2] - 2025-04-23
|
10
15
|
### Fixed
|
11
16
|
- Fix the CI release pipeline
|
@@ -55,8 +60,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
55
60
|
### Fixed
|
56
61
|
- Fix `nil` argument for barcode
|
57
62
|
|
58
|
-
[Unreleased]: https://github.com/apoex/gs1/compare/v2.0.
|
63
|
+
[Unreleased]: https://github.com/apoex/gs1/compare/v2.0.3...HEAD
|
59
64
|
|
65
|
+
[2.0.2]: https://github.com/apoex/gs1/compare/v2.0.2...v2.0.3
|
60
66
|
[2.0.2]: https://github.com/apoex/gs1/compare/v2.0.1...v2.0.2
|
61
67
|
[2.0.1]: https://github.com/apoex/gs1/compare/v2.0.0...v2.0.1
|
62
68
|
[2.0.0]: https://github.com/apoex/gs1/compare/v1.1.0...v2.0.0
|
data/lib/gs1/barcode/base.rb
CHANGED
@@ -6,15 +6,15 @@ module GS1
|
|
6
6
|
include Definitions
|
7
7
|
|
8
8
|
def initialize(attributes = {}, options = {})
|
9
|
+
@params_order = []
|
9
10
|
attribute_validator = options[:attribute_validator] || AttributeValidator.new
|
10
11
|
attributes.each do |(name, data)|
|
11
12
|
attribute_validator.validate_data(self, name)
|
12
13
|
attribute_validator.validate_record(self, name) do |record|
|
13
14
|
instance_variable_set("@#{name}", record.new(data))
|
15
|
+
@params_order << name
|
14
16
|
end
|
15
17
|
end
|
16
|
-
|
17
|
-
@params_order = attributes.to_h.keys
|
18
18
|
end
|
19
19
|
|
20
20
|
def errors
|
@@ -3845,7 +3845,7 @@ module GS1
|
|
3845
3845
|
Class.new(Record) do
|
3846
3846
|
define :length, allowed: 1..70
|
3847
3847
|
define :separator
|
3848
|
-
def self.name = '
|
3848
|
+
def self.name = '_8110'
|
3849
3849
|
def self.ai = '8110'
|
3850
3850
|
def self.generated = true
|
3851
3851
|
end
|
@@ -3861,7 +3861,7 @@ module GS1
|
|
3861
3861
|
Class.new(Record) do
|
3862
3862
|
define :length, allowed: 1..70
|
3863
3863
|
define :separator
|
3864
|
-
def self.name = '
|
3864
|
+
def self.name = '_8112'
|
3865
3865
|
def self.ai = '8112'
|
3866
3866
|
def self.generated = true
|
3867
3867
|
end
|
data/lib/gs1/version.rb
CHANGED