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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: feaef5d6fa9380cbaa46c8d68aaf665b31f4481e43ef22965a9a18c93c105d5c
4
- data.tar.gz: c1021be09859b7ac5f62bdf9a1fb9615eb1c522eb69ab78ce48bb115d36e861f
3
+ metadata.gz: 2da9e3ec269f1240aa7ffd03692135627ed28eabdcc50366e0d163f8d05ff1f8
4
+ data.tar.gz: fbc6c7cd49ceeefd92f355ec39d6d2b66a001fc9ce7375de97fde1ee7fa38fd2
5
5
  SHA512:
6
- metadata.gz: 940fa4aaddbd4e68f10095224431ceb53906310bceeb51a81b8b817ff1ae32c73e0a0ff5539376657036e9023f1812e931aa4af7c5ef4ffee24e8059ad81810a
7
- data.tar.gz: 794fe80139548af0540caf045ebc0ad39e36e56c80568afbe0d000f7832d8f0a75c73eb1eb36bab2f400ffdabadb47377007d04b77877a6d0f2d2836b6c13e8d
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.2...HEAD
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
@@ -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 = '8110'
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 = '8112'
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
@@ -1,3 +1,3 @@
1
1
  module GS1
2
- VERSION = '2.0.2'.freeze
2
+ VERSION = '2.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gs1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Åhman