x12-lite 0.3.3 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/x12 +5 -5
- data/lib/x12-lite.rb +2 -2
- data/x12-lite.gemspec +14 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46fed1553926d9a531e8000d0ee20f8151d0f95d0ceea6785175df6cf43078d8
|
4
|
+
data.tar.gz: 2f94d9aa67fe31a3afd1d91af81ef8f4308760371842ae780cca7e6f79960a8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c52c251741555b8b735ba71038d013f71b9f9093a78da7f126eee32f9fc396aa903715f422171cfd95bed75a4da35403bf40fa1f11b9208a33a59618a7dac795
|
7
|
+
data.tar.gz: 415451cfbf2543b934983ae34c19894becd5bf057d30024646c339aceda8459752872a83cdbd91f0a9bce20ff97575bfa2acfd1cae12a640b18837262564efe4
|
data/bin/x12
CHANGED
@@ -29,8 +29,8 @@ OptionParser.new.instance_eval do
|
|
29
29
|
on "-c", "--count" , "Count messages at the end"
|
30
30
|
on "-d", "--dive" , "Dive into directories recursively"
|
31
31
|
# on "--delim <char>" , "Delimiter to use"
|
32
|
-
|
33
|
-
|
32
|
+
on "-f", "--fields" , "Show fields"
|
33
|
+
on "-F", "--fields-only" , "Show fields only, not repeat indicators"
|
34
34
|
on "-h", "--help" , "Show help and command usage" do Kernel.abort to_s; end
|
35
35
|
on "-i", "--ignore" , "Ignore malformed X12 files"
|
36
36
|
on "-l", "--lower" , "Show segment names in lowercase"
|
@@ -53,7 +53,7 @@ require "time" if opts["after"]
|
|
53
53
|
|
54
54
|
time = Time.parse(opts["after"]) if opts["after"]
|
55
55
|
dive = opts["dive"]
|
56
|
-
|
56
|
+
only = opts["fields-only"] and opts["fields"] = true
|
57
57
|
# quer = opts["query"].split(',').map(&:strip) if opts["query"]
|
58
58
|
# from = quer.delete("-") if quer.is_a?(Array)
|
59
59
|
# delm = opts["tsv"] ? "\t" : (opts["delim"] || "|")
|
@@ -63,8 +63,8 @@ args = []
|
|
63
63
|
# args << :deep if opts["repeats"]
|
64
64
|
args << :down if opts["lower"]
|
65
65
|
args << :full if opts["message"] || opts.empty?
|
66
|
-
|
67
|
-
|
66
|
+
args << :hide if !opts["fields"]
|
67
|
+
args << :only if only
|
68
68
|
# args << (opts["width"].to_i.between?(1, 50) ? opts["width"].to_i : 12) if opts["width"]
|
69
69
|
|
70
70
|
msgs = 0
|
data/lib/x12-lite.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# x12-lite.rb: X12 library for Ruby
|
5
5
|
#
|
6
6
|
# Author: Steve Shreeve <steve.shreeve@gmail.com>
|
7
|
-
# Date: October
|
7
|
+
# Date: October 16, 2024
|
8
8
|
#
|
9
9
|
# Legal: All rights reserved.
|
10
10
|
# ==============================================================================
|
@@ -45,7 +45,7 @@ end
|
|
45
45
|
# ==[ X12 ]=====================================================================
|
46
46
|
|
47
47
|
class X12
|
48
|
-
VERSION="0.3.
|
48
|
+
VERSION="0.3.5"
|
49
49
|
|
50
50
|
include Enumerable
|
51
51
|
|
data/x12-lite.gemspec
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
Gem::Specification.new do |
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
3
|
+
Gem::Specification.new do |gem|
|
4
|
+
gem.name = "x12-lite"
|
5
|
+
gem.version = `grep -m 1 '^\s*VERSION' lib/x12-lite.rb | head -1 | cut -f 2 -d '"'`
|
6
|
+
gem.author = "Steve Shreeve"
|
7
|
+
gem.email = "steve.shreeve@gmail.com"
|
8
|
+
gem.summary = "A " +
|
9
|
+
gem.description = "Ruby gem to parse and generate X.12 transactions"
|
10
|
+
gem.homepage = "https://github.com/shreeve/x12-lite"
|
11
|
+
gem.license = "MIT"
|
12
|
+
gem.platform = Gem::Platform::RUBY
|
13
|
+
gem.files = `git ls-files`.split("\n") - %w[.gitignore]
|
14
|
+
gem.executables = `cd bin && git ls-files .`.split("\n")
|
15
|
+
gem.required_ruby_version = Gem::Requirement.new(">= 3.0") if gem.respond_to? :required_ruby_version=
|
16
|
+
# gem.add_dependency "nokogiri"
|
16
17
|
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.
|
4
|
+
version: 0.3.5
|
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-
|
11
|
+
date: 2024-10-18 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
|