x12-lite 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/x12 +1 -0
  3. data/lib/x12-lite.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 903651692110af8d1a21b2203fbf64dc2e37611dedc302de5566e9a7c6637f53
4
- data.tar.gz: 2e34a7c8eb3f0fcf8d91ae7ada686d8aacd46ebdb6985d68ad73faca7285d442
3
+ metadata.gz: e8d4f7517a48b4d459c504acd82cd03026d9ce92d9ac050358806d99079f63ec
4
+ data.tar.gz: c94c80e10ffae8aaa0919d6a48301229ff64fc0e6fabda94d70c153700c5ca1c
5
5
  SHA512:
6
- metadata.gz: b6d08153aa69ec9a5a205575729647e4aaffaf1948691a69e2202f5c54966be72ba6564ad9bae631041fc17f7a0a047894023bcb91d08f1ed3a88219b0ca9ee4
7
- data.tar.gz: 87b9eacf6971b21adb5b397e2b89876e544c74ed30d0177879e51bbf563fddcf91bb49410af2779d746fe3c0d8c248eb77dcc5c127f0dc061dc543e959f6ec2f
6
+ metadata.gz: a6a165012d316612f5271b3a4c9be843b96ff3726c85b54500b0ebd178c14a55af88d4a0497c811e5680f7133c0bd6ebac40e3f2a9d22871bfc51787c8bfe37c
7
+ data.tar.gz: d3151ad5b56cb3fa01434b0771cda436c2c131e1ee5ef6edf507f0447a6d95de28694d688ad5efc1047bfe2864ab257a1f0ff5ad4d19a36ff21b5c47a607a921
data/bin/x12 CHANGED
@@ -40,6 +40,7 @@ OptionParser.new.instance_eval do
40
40
  # on "-r", "--repeats" , "Show field repeats on their own line"
41
41
  on "-s", "--spacer" , "Show an empty line between messages"
42
42
  # on "-t", "--tsv" , "Tab-delimit output (tsv format)"
43
+ on "-v", "--version" , "Show version" do abort "v#{::X12::VERSION}"; end
43
44
  # on "-w", "--width <width>", "Width of segment names", Integer
44
45
 
45
46
  Kernel.abort to_s if ARGV.empty?
data/lib/x12-lite.rb CHANGED
@@ -45,7 +45,7 @@ end
45
45
  # ==[ X12 ]=====================================================================
46
46
 
47
47
  class X12
48
- VERSION="0.3.0"
48
+ VERSION="0.3.2"
49
49
 
50
50
  include Enumerable
51
51
 
@@ -183,7 +183,7 @@ class X12
183
183
  end
184
184
  end
185
185
  tag = "#{seg}%s-#{j}" % [num > 1 && !only ? "(#{num})" : ""]
186
- out << (tag.ljust(left) + wrap(fld, "fff", "369"))
186
+ out << (tag.ljust(left) + ansi(fld, "fff", "369"))
187
187
  end
188
188
  end
189
189
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: x12-lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-10 00:00:00.000000000 Z
11
+ date: 2024-10-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby gem to parse and generate X.12 transactions
14
14
  email: steve.shreeve@gmail.com