eancom 1.1.0 → 1.1.1

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: 314da7b5f0083db00bfb90762d034c6dec782e5831a09fa496fd2069068335a2
4
- data.tar.gz: 03f363559711cfa1d602dfed9fe9c75fe247acec500c7bfc9840d5255cb45297
3
+ metadata.gz: 24ed2d6aa82403dfd088c3ec5aea3846c93460949164b357318973ab257644ce
4
+ data.tar.gz: a1e8ab1423c0926b8b46db92d0fbeb934a56b3993752bde7b3618bce6fa8a07a
5
5
  SHA512:
6
- metadata.gz: 4a5b2b1988d9d22ed9d3346d81ad6dabbcf68bad22ded494c69d2eecb92265d9db38daf03c55e8fd8e9f1ad47a84d45ed3eb905fac4af19ac543a8ef6ba1dedc
7
- data.tar.gz: 803a4badcc966f78efaa457657902b6eb8194b30a24856647b18410b1584d089c5255aef3656e492453303274852362697807a42e8993fc2ec4241649d38ca01
6
+ metadata.gz: 52fff9528a129ebb7b5ed524ba19dc558831bb656338041d6828652181fbebf4a3ba19a466e62d3e752826e4a9d17ddf5dcd9fc0220b29e1c60a32f810e27060
7
+ data.tar.gz: cce1cf69235b045d0cb0386b1d9350af467dc1cf041fc58ab96f992f062097275b4e836b103434b7b59074fd82b47c6ab3f20cf8014cd7350c0711914bf5ec3e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eancom (1.0.1)
4
+ eancom (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -6,7 +6,7 @@ Eancom::Definition.create(name: 'D01B', type: :slsrpt) do |document, config|
6
6
  syntax_identifier: 'UNOC',
7
7
  syntax_version_number: '3',
8
8
  interchange_sender_identification: config.header.interchange_sender_identification,
9
- sender_identifiction_code_qualifier: config.header.sender_identification_code_qualifier || '14',
9
+ sender_identifiction_code_qualifier: config.header.sender_identifiction_code_qualifier || '14',
10
10
  interchange_recipient_identification: config.header.interchange_recipient_identification,
11
11
  recipient_identifiction_code_qualifier: config.header.recipient_identifiction_code_qualifier || '14',
12
12
  date: config.header.date,
@@ -47,13 +47,16 @@ module Eancom
47
47
  end
48
48
 
49
49
  def to_json_hash
50
- {
50
+ hash = {
51
51
  interchange_sender_identification: @interchange_sender_identification,
52
52
  interchange_recipient_identification: @interchange_recipient_identification,
53
53
  date: @date,
54
54
  time: @time,
55
55
  interchange_control_reference: @interchange_control_reference
56
56
  }
57
+
58
+ hash.merge!(sender_identifiction_code_qualifier: @sender_identifiction_code_qualifier) if @sender_identifiction_code_qualifier
59
+ hash.merge!(recipient_identifiction_code_qualifier: @recipient_identifiction_code_qualifier) if @recipient_identifiction_code_qualifier
57
60
  end
58
61
 
59
62
  def segment_type
@@ -1,3 +1,3 @@
1
1
  module Eancom
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
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.1.0
4
+ version: 1.1.1
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-02 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry