eancom 1.3.0 → 1.4.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
2
  SHA256:
3
- metadata.gz: 46fd5920646d9dda0e36a7085a34ba848fbe8b6ccca97de8ff330a77540e33fa
4
- data.tar.gz: 6de8a8ae09f69cb75da1b8f626678093377706f6feb6e91b7377ef163efb82d6
3
+ metadata.gz: 234d2c930145821b399f6cc46e30ddd7e127a551b35461fa7a3a682d3ee5d894
4
+ data.tar.gz: 5b6a38ff945ee619af277dcc0d2ed978b54065fe318922de2a0f5c5058a36f16
5
5
  SHA512:
6
- metadata.gz: 82c2ca7f80dbb8ddee208dd10f1588a63d7c019ea53e7883d9927e3fe9c63ebeb3fae63d0a6b3df2fe5cd1de60997a224dc907d909459abb30dacb04ca6bbed6
7
- data.tar.gz: 7ffdad1a7413957c408db081d5394e5063c2f207747c75085cc672abc7085e198f6756c7da28333b79b44800bdc1a476aafcc877d1635cb1c167d69acd4dbe3a
6
+ metadata.gz: ea6621ef1b1515437e516789f1ef414e152f5941bcbd6dab51b215c74e219cd7a03b735423fde3272fe669552b366b59f75820ae0ee01c1cbab02c07c92cbf9e
7
+ data.tar.gz: 525516ac844aeb5212c9771b28c8664bdd5e71a49398617ffb9e6ced6ffe6a806d9e1574760dd471c003286e1366f99b4646c17f9826c7b8e61c445ec87cd620
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eancom (1.2.0)
4
+ eancom (1.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -11,7 +11,7 @@ module Eancom
11
11
  message_version_number:,
12
12
  message_release_number:,
13
13
  controlling_agency:,
14
- association_assigned_code:,
14
+ association_assigned_code: nil,
15
15
  code_list_directory_version_number: nil
16
16
  )
17
17
 
@@ -27,14 +27,16 @@ module Eancom
27
27
  end
28
28
 
29
29
  def to_json_hash
30
- {
30
+ hash = {
31
31
  message_reference_number: @message_reference_number,
32
32
  message_type: @message_type,
33
33
  message_version_number: @message_version_number,
34
34
  message_release_number: @message_release_number,
35
35
  controlling_agency: @controlling_agency,
36
- association_assigned_code: @association_assigned_code
37
36
  }
37
+ hash[:association_assigned_code] = @association_assigned_code if @association_assigned_code
38
+ hash[:code_list_directory_version_number] = @code_list_directory_version_number if @code_list_directory_version_number
39
+ hash
38
40
  end
39
41
 
40
42
  def segment_type
@@ -1,3 +1,3 @@
1
1
  module Eancom
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eancom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fadendaten GmbH
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry