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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/x12 +5 -5
  3. data/lib/x12-lite.rb +2 -2
  4. data/x12-lite.gemspec +14 -13
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0dda270782d3da6aa8372f5e723020f80307bb7b79863adad4395f37181d6ea
4
- data.tar.gz: 07f4bd9ff342f3e1a10744eed0ddc1e457002f2d7b997acbe6e13aaa852cb153
3
+ metadata.gz: 46fed1553926d9a531e8000d0ee20f8151d0f95d0ceea6785175df6cf43078d8
4
+ data.tar.gz: 2f94d9aa67fe31a3afd1d91af81ef8f4308760371842ae780cca7e6f79960a8f
5
5
  SHA512:
6
- metadata.gz: 4bb1cfab0e81e8ac3ac4ef44908502480287f4d93fab64d3447d01770fdade114d706c99df7a8085f35f46dac9bf1cd2c7e44bb5236c594d867f69b922221903
7
- data.tar.gz: ac5eca285b4671120d79dbeed83502ef8959501344d8a1575ea97954194256c72593b99e1ad21e17dc6df104808bfe60fd3305009530cb579800d927240562c3
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
- # on "-f", "--fields" , "Show fields"
33
- # on "-F", "--fields-only" , "Show fields only, not repeat indicators"
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
- # only = opts["fields-only"] and opts["fields"] = true
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
- # args << :hide if !opts["fields"]
67
- # args << :only if only
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, 2024
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.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 |s|
4
- s.name = "x12-lite"
5
- s.version = `grep -m 1 '^\s*VERSION' lib/x12-lite.rb | head -1 | cut -f 2 -d '"'`
6
- s.author = "Steve Shreeve"
7
- s.email = "steve.shreeve@gmail.com"
8
- s.summary = "A " +
9
- s.description = "Ruby gem to parse and generate X.12 transactions"
10
- s.homepage = "https://github.com/shreeve/x12-lite"
11
- s.license = "MIT"
12
- s.platform = Gem::Platform::RUBY
13
- s.files = `git ls-files`.split("\n") - %w[.gitignore]
14
- s.executables = `cd bin && git ls-files .`.split("\n")
15
- s.required_ruby_version = Gem::Requirement.new(">= 3.0") if s.respond_to? :required_ruby_version=
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.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-15 00:00:00.000000000 Z
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