eddy 0.8.2 → 0.8.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: 43d73af4c067917ea23cc7ecb506d84f33bd4da411b3150add1de0d4c6990844
4
- data.tar.gz: 165e1541760111c49ed4f7ad17ee1017f805f2e7a2a36de6c7205b6ed1f34db3
3
+ metadata.gz: 62b12c413849c64cbc73cf3d85d562cce61be2ea89d09367ea4f114cb76ccfcb
4
+ data.tar.gz: 8593188003dba86ad1186aff1ff903eee974d55f6e93fb434e99a576ba6102f4
5
5
  SHA512:
6
- metadata.gz: 77dbed194e567cb50d41db9dc08f7fdf83b85ad64941d09691ddac435dea64f97460d03342d30c7ba377c946e7abfa8fe3faa59b3aeab2bc579d5c230df70a40
7
- data.tar.gz: d236567a50af7d4542897496bc79f1a315079d41b6ca7594f9264a781308ae465289557ab8f1937a3362729edc68137a1c1b117553f9974ac205c4bd628730f9
6
+ metadata.gz: 48c05e66d19015cd438daaff13fd8689d1c0c2e2b3e1629bd993eb870791b0b5ffe2b768c4f60a78cbcadce1f055dd2f7912db62a5d93d8a0644debda4266165
7
+ data.tar.gz: 4e92a9e0e639041fcf37d064ffbe02d225bb0f6c052f6c736f341195e666515355aa8ccb23a7aa902ac8188822fb88246d5a61f7d303b6f6f095519cf6cc68ec
data/CHANGELOG.md CHANGED
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
 
14
14
  ## master (unreleased)
15
15
 
16
+ ## 0.8.3 (2020-01-15)
17
+
18
+ ### Changed
19
+
20
+ - Trim trailing newline from the return value of `Eddy::Models::Interchange#render` and `Eddy::Models::TransactionSet#render`.
21
+
16
22
  ## 0.8.2 (2020-01-09)
17
23
 
18
24
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eddy (0.8.2)
4
+ eddy (0.8.3)
5
5
  ginny (~> 0.6.3)
6
6
  json_schemer (~> 0.2.8)
7
7
  thor (~> 1.0.1)
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [travis-ci]: https://travis-ci.org/tcd/eddy
11
11
  [coveralls]: https://coveralls.io/github/tcd/eddy?branch=master
12
12
  [license]: https://github.com/tcd/eddy/blob/master/LICENSE.txt
13
- [docs]: https://www.rubydoc.info/gems/eddy/0.8.2
13
+ [docs]: https://www.rubydoc.info/gems/eddy/0.8.3
14
14
 
15
15
  ## Installation
16
16
 
@@ -50,6 +50,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
50
50
 
51
51
  ## Dependencies
52
52
 
53
+ - [erikhuda/thor](https://github.com/erikhuda/thor)
53
54
  - [tcd/ginny](https://github.com/tcd/ginny)
54
55
  - [tcd/coolkit](https://github.com/tcd/coolkit)
55
56
  - [dry-rb/dry-inflector](https://github.com/dry-rb/dry-inflector)
@@ -59,10 +60,6 @@ The gem is available as open source under the terms of the [MIT License](https:/
59
60
  - [tenderlove/hana](https://github.com/tenderlove/hana)
60
61
  - [hannesg/uri_template](https://github.com/hannesg/uri_template)
61
62
  - [ammar/regexp_parser](https://github.com/ammar/regexp_parser)
62
- - [erikhuda/thor](https://github.com/erikhuda/thor)
63
- - [piotrmurach/pastel](https://github.com/piotrmurach/pastel)
64
- - [piotrmurach/equatable](https://github.com/piotrmurach/equatable)
65
- - [piotrmurach/tty-color](https://github.com/piotrmurach/tty-color)
66
63
 
67
64
  ## Alternatives (in Ruby)
68
65
 
@@ -34,7 +34,7 @@ module Eddy
34
34
  isa = Eddy::Segments::ISA.new(self.store, self.control_number)
35
35
  iea = Eddy::Segments::IEA.new(self.store, self.control_number, f_groups.length)
36
36
  yield(isa, iea) if block_given?
37
- return [isa, f_groups, iea].flatten.map(&:render).join(sep) + sep
37
+ return ([isa, f_groups, iea].flatten.map(&:render).join(sep) + sep).rstrip()
38
38
  end
39
39
 
40
40
  # @return [Array<Eddy::Models::FunctionalGroup>]
@@ -82,7 +82,7 @@ module Eddy
82
82
  # @return [String]
83
83
  def render(s_sep = self.store.segment_separator)
84
84
  add_envelope()
85
- return self.all_components.map { |s| s.render(self.store.element_separator) }.compact.join(s_sep)
85
+ return self.all_components.map { |s| s.render(self.store.element_separator) }.compact.join(s_sep).rstrip()
86
86
  end
87
87
 
88
88
  # Return the count of Segments in the Transaction Set where `skip` is false,
data/lib/eddy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eddy
2
- VERSION = "0.8.2".freeze
2
+ VERSION = "0.8.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clay Dunston
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2020-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -1569,7 +1569,7 @@ metadata:
1569
1569
  homepage_uri: https://github.com/tcd/eddy
1570
1570
  source_code_uri: https://github.com/tcd/eddy
1571
1571
  changelog_uri: https://github.com/tcd/eddy/blob/master/CHANGELOG.md
1572
- documentation_uri: https://www.rubydoc.info/gems/eddy/0.8.2
1572
+ documentation_uri: https://www.rubydoc.info/gems/eddy/0.8.3
1573
1573
  yard.run: yri
1574
1574
  post_install_message:
1575
1575
  rdoc_options: []