Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Reorganization #164

Merged
merged 98 commits into from
Mar 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
abf8148
Reorganize/rename modules for interchanges and X12 versions
kputnam Jan 2, 2019
85a94fa
Reorganize and reduce code/definition duplication
kputnam Jan 3, 2019
cee9d37
Merge remote-tracking branch 'github/master' into pr-reorganize
kputnam Jan 3, 2019
358a318
Fix 5010 BE834 standard
kputnam Jan 4, 2019
193de45
Rename Stupidedi::Builder to Stupidedi::Parser
kputnam Jan 4, 2019
a9d81aa
Define stub segments and uncomment references to them in X12 standard…
kputnam Jan 4, 2019
831c7e3
Fix incorrect nesting in 837I (fix #155)
kputnam Jan 6, 2019
88d553d
Fix incorrect nesting in RA820
kputnam Jan 6, 2019
5f97b48
Fix incorrect nesting in HB271
kputnam Jan 6, 2019
34930b7
Replace rspec should syntax, impose more consistent formatting
kputnam Jan 7, 2019
9ec0e21
Improve code coverage reporting
kputnam Jan 7, 2019
480ca05
Make sure #to_d fails on invalid input (unlike bigdecimal/utilsimplem…
kputnam Jan 7, 2019
dad95ab
Remove JRuby hack, we'll check if build passes on TravisCI
kputnam Jan 7, 2019
4feea07
More formatting changes
kputnam Jan 7, 2019
cf73ccd
Detect (hypothetical?) new case of ambiguity; Cleanup error-reporting…
kputnam Jan 10, 2019
a11c9b5
Deprecate Stupidedi::Builder
kputnam Jan 10, 2019
de099e5
Reorganize fixtures for increased automation of specs
kputnam Jan 11, 2019
290a6aa
Deprecate (rename) HC837P and HC837I to X222::HC837 and X223::HC837
kputnam Jan 11, 2019
fb724ba
Add missing segment terminator after IEA; change segment terminator f…
kputnam Jan 11, 2019
02bb38d
Further obfuscation
kputnam Jan 12, 2019
80c63f3
New examples
kputnam Jan 12, 2019
3f55671
Deprecate Stupidedi::Contrib, Stupidedi::Guides, Stupidedi::Versions:…
kputnam Jan 12, 2019
8f4f57c
Remove old cruft from notes/
kputnam Jan 12, 2019
bfe71a4
Comment-out problematic loop in Standards::HB271 (implementation is f…
kputnam Jan 13, 2019
933e29b
Remove Symbol#call refinement
kputnam Jan 13, 2019
37dc152
Tell Code Climate to ignore large definitions files
kputnam Jan 13, 2019
953dafa
Fix Travis CI build for older versions of Ruby
kputnam Jan 13, 2019
771db19
Load SimpleCov first so lib/ruby and others are tracked
kputnam Jan 13, 2019
3e5d5f8
Merge branch 'master' into pr-reorganize
kputnam Jan 13, 2019
b806f1b
Make TableDef.detail not repeatable, only the table's child loop can …
kputnam Jan 14, 2019
3819e03
Many more 005010 HIPAA fixture files
kputnam Jan 15, 2019
3daab21
- Made TableDef.detail not repeatable, and changed each table's direct
kputnam Jan 16, 2019
71dc482
Use new set of 005010 fixtures
kputnam Jan 17, 2019
c5ed718
Add placeholderss for missing 005010 qualifier values for RA820
kputnam Jan 17, 2019
d0d37ae
Fix errors in FiftyTen::Standards::HP835 (incorrect parentheses,
kputnam Jan 17, 2019
e0dc2cd
Add missing qualifier code values for HI278
kputnam Jan 17, 2019
cb625ef
Add missing qualifier codes for HC837s, fix X291 HC837 fixture file that
kputnam Jan 17, 2019
9d9db98
Disable FiftyTen::Standards::HB-271 for now, see #173
kputnam Jan 17, 2019
4c3d0a3
Add missing quailfier code values for BE834
kputnam Jan 18, 2019
7a26278
Implement FiftyTen::Standards::FA997, add missing qualifier codes
kputnam Jan 18, 2019
f5fb835
Add missing qualifier codes for BE834 (for X307 which is not
kputnam Jan 18, 2019
b67bea0
Fix wrong GS01 value for HN277 fixture files
kputnam Jan 18, 2019
51d4b3d
Merge detail tables of X212 HR276 into one table, to avoid issues caused
kputnam Jan 18, 2019
72fa58f
Remove extraneous periods at end of description strings (cosmetic
kputnam Jan 18, 2019
36b6114
Squash me! X214-HN277 with * 51d4b3d Merge detail tables of X212 HR2…
kputnam Jan 18, 2019
330a46f
Fix deprecation warnings for X221::HP835, X222::HC837, X222::HC837P,
kputnam Jan 18, 2019
973c1c7
Remove Ruby 1.9 shims for #instance_exec (was only used in QuickCheck)
kputnam Jan 18, 2019
ef8d391
Use Stupidedi::Parser.build as a shortcut for Stupidedi::Parser::Stat…
kputnam Jan 18, 2019
05a8edd
Improve error messages
kputnam Jan 18, 2019
f09821b
Specs to ensure ElementDefs and SegmentDefs have correct id
kputnam Jan 18, 2019
32e75cf
Swap confusing names Deepest/Shallowest, fix a couple broken specs
kputnam Jan 18, 2019
36519a6
Merge remote-tracking branch 'github/master' into pr-reorganize
kputnam Jan 18, 2019
084cdeb
Use 005010X223A2 (see #174); disable broken implementation guides
kputnam Jan 21, 2019
b5d4462
Deprecate IdentifierStack#pop in favor of more explicit #pop_isa,
kputnam Jan 21, 2019
a849b04
Implement Reader::Position#to_s and better handle missing column number;
kputnam Jan 21, 2019
e5f6a03
Disable broken implementation 002001 FA999
kputnam Jan 21, 2019
fbce21a
Make sure InvalidSegmentVal#descriptor says "segment" to be consistent
kputnam Jan 21, 2019
788ec98
Improved Parser::BuilderDsl specs that more closely match how it's used
kputnam Jan 21, 2019
3925732
Fix RSpec warnings about false positives with raise_error()
kputnam Jan 21, 2019
f8e211f
Fix a few issues with SegmentTok#to_s and friends
kputnam Jan 21, 2019
1dd0009
Update BuilderDsl specs to account for validations that happen "late",
kputnam Jan 21, 2019
1c32117
Enable ruby warnings (-w) in `rake spec` and clear up all existing
kputnam Jan 22, 2019
72adb03
Make deprecation warnings more notiable
kputnam Jan 22, 2019
698ff6e
Print code coverage summary on the console, generate one single HTML …
kputnam Jan 25, 2019
32cfb28
Use InvalidSchemaError, instead of ArgumentError, in SimpleElementDef
kputnam Jan 25, 2019
ba4417f
Deprecate 005010X231 FA999 because 005010X31A1 supercedes it and is
kputnam Jan 25, 2019
e210699
Address questions in #172 regarding tables: if a table begins with a
kputnam Jan 25, 2019
26211e5
Update specs for specific TransactionSetDefs
kputnam Jan 25, 2019
0ec0592
Oops, simplecov-* requires Ruby 2.4+
kputnam Jan 25, 2019
e845fb8
Merge remote-tracking branch 'github/master' into pr-reorganize
kputnam Jan 25, 2019
2657bdf
Write many more specs; improve readability of existing specs
kputnam Jan 29, 2019
6020930
Temporarily ignore test coverage stats on Stupidedi::Editor; print a
kputnam Jan 29, 2019
740814e
Add --format <html|tree|x12> argument to edi-pp
kputnam Jan 29, 2019
ed3f78f
Remove dead code; when an ID value is part of the entire CodeList, but
kputnam Jan 29, 2019
ac662be
Improve the appearance of Claredi (HTML) writer
kputnam Jan 29, 2019
36a3976
Fix various issues revealed by new specs
kputnam Jan 29, 2019
3accf50
Fix build issues
kputnam Jan 29, 2019
7a5e5ee
Fix build issues
kputnam Jan 29, 2019
a84ba7a
Fix missing images in simplecov report
kputnam Feb 8, 2019
a1b4350
Print timing info to STDERR instead of STDOUT
kputnam Feb 8, 2019
da5f9d7
Improve #find error message when segment cannot or does not occur
kputnam Feb 8, 2019
431272b
Make clearer how GS001, GS08, ST01, and ST03 are used to identify a T…
kputnam Feb 8, 2019
0d61a05
Implement be_failure matcher, deprecate
kputnam Feb 8, 2019
efa91e2
Give reason for pending specs
kputnam Feb 8, 2019
8561945
Improve support for composite and repeated elements in specs (by usin…
kputnam Feb 8, 2019
4b0f899
Merge branch 'pr-reorganize' of https://github.com/irobayna/stupidedi…
kputnam Feb 8, 2019
f242765
Fix build error
kputnam Feb 9, 2019
5dd1c39
Put all build artifacts in build/generated, fix some YARD configurati…
kputnam Feb 9, 2019
ec7e464
Fix another build error
kputnam Feb 10, 2019
1235c80
Improve error message consistency in BuilderDsl-adjacent code; Write
kputnam Feb 12, 2019
7648764
Make SimpleElementVals behave more consistently across types (AN, DT,…
kputnam Feb 15, 2019
e3fd1b1
Implement specs for BuilderDsl regarding validation of tables, and
kputnam Feb 15, 2019
1ea33ca
Remove dead code
kputnam Feb 15, 2019
5876e7f
Check number of occurences for repeated elements when BuilderDsl is
kputnam Feb 18, 2019
1075436
Trim crud at the end of numbers in Nn#inspect and Nn#to_s
kputnam Feb 18, 2019
fed3dee
Fix YARD complaints
kputnam Feb 18, 2019
dbb229f
Comments for formatters in .simplecov
kputnam Feb 18, 2019
7b887e9
Fix a regression in Navigation#element
kputnam Mar 9, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "2"
exclude_patterns:
- "spec/"
- "**/segment_defs/*.rb"
- "**/element_defs.rb"
- "**/implementations/*.rb"
- "**/standards/*.rb"
- "lib/stupidedi/editor/"
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.yardoc
doc/generated
coverage
build/generated
.bundle
.ruby-version
144 changes: 144 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
require "base64"
require "simplecov-inline-html"
require "term/ansicolor"

SimpleCov.start do
coverage_dir "build/generated/coverage"

add_filter %r{/spec}
add_filter %r{/segment_defs}
add_filter %r{/element_defs}
add_filter %r{/transaction_sets/[0-9]+/[A-Z0-9-]+\.rb}
add_filter %r{/stupidedi/editor}

add_group "Refinements", "lib/ruby"
add_group "Config", "lib/stupidedi/config"
add_group "Editor", "lib/stupidedi/editor"
add_group "Exceptions", "lib/stupidedi/exceptions"
add_group "Interchanges", "lib/stupidedi/interchanges"
add_group "Parser", "lib/stupidedi/parser"
add_group "Reader", "lib/stupidedi/reader"
add_group "Schema", "lib/stupidedi/schema"
add_group "TransactionSets", "lib/stupidedi/transaction_sets"
add_group "Values", "lib/stupidedi/values"
add_group "Versions", "lib/stupidedi/versions"
add_group "Writer", "lib/stupidedi/writer"
add_group "Zipper", "lib/stupidedi/zipper"
end

# Based on https://github.com/inossidabile/simplecov-summary/edit/master/lib/simplecov-summary.rb
class SimpleCov::Formatter::SummaryFormatter
def format(result)
puts "SimpleCov summary:"
name_width = (result.groups.keys + ["SUMMARY"]).map(&:length).max
count_width = result.groups.values.map(&:missed_lines).max.to_i.to_s.length

result.groups.sort.each do |name, files|
print_group(name, files, name_width, count_width)
end

print_group("SUMMARY", result.files, name_width, count_width)
end

def print_group(name, files, name_width, count_width)
pct = files.covered_percent
clr = case pct
when 90..100 then :green
when 80..90 then :yellow
else :red
end
puts Term::ANSIColor.send(clr,
(" % #{name_width}s: % 5s%% " +
"% #{count_width}s missed lines, " +
"% #{count_width + 2}s lines total") %
[name, pct.round(1), files.missed_lines.to_i, files.lines_of_code.to_i])
end
end

class SimpleCov::Formatter::CustomHtmlFormatter < SimpleCov::Formatter::InlineHTMLFormatter
def output_message(result)
end

# This image is missing from simplecov-inline-html
BORDER = <<-EOF.gsub(/\s/, '')
iVBORw0KGgoAAAANSUhEUgAAAAEAAABLCAIAAAA+tHrUAAAAUklEQVR4AcXH
sQ3AIAwFUfuDYADSMQkrMiVdqKGzLDnCRTaIUjzpjnvvodaKtRbM7KWqTkT4
PBF9Yu+NMQauUvx/Eu45Q0oJOWd3OsbomBmttQc0NiOlCz/4pgAAAABJRU5E
rkJggg==
EOF

# This image is missing from simplecov-inline-html
CONTROLS = <<-EOF.gsub(/\s/, '')
iVBORw0KGgoAAAANSUhEUgAAAOEAAABLCAMAAACx6hDAAAABj1BMVEVPT0/e
3t7b29vS0tK7urq5uLjq6uqZmZmSkpJaWlrU1NTj4+PFxcWvr6+goKBbW1u3
t7c9PT27u7vCwsKsrKxiYWGqqqq5ublbWlpeXV2Xl5fExMSbmpq6ubmNjY18
fHzy8vIrKystLS0sLCxNTU0uLi4wMDDNzc05OTns6+vl5eUvLy/q6ekqKipM
TExDQ0M4ODgyMjI2NjbZ2dk6OjrY2NjMzMxLS0vAwMBCQkLo5+dHR0cxMTFK
SkpBQUHv7u43NzdISEhFRUVRUVHx8fE7Ozs8PDwzMzNJSUnp6elGRkZQUFDr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vE0ULj1/vzt8LDvzwzDaxr36xgqTreytk607Pz+f1u9fL6Re
P31wEkZD7LcwVJjepq9ftUZRY3P87mLGB2EjGh4ll9Bg4RISj3ZGa93uVjHd
brQ22uFAI4WK1i7s69rFxq7j3htzhfL2vKQ37yU25+ElNFJIWiwxgv7KY95g
aaaQG3vyHlkEmitEI0bV52yikOe7KnygYcK/0sK5wtrjpuMAAAAASUVORK5C
YII=
EOF

def file(path)
if path.end_with?("application.css")
css = super(path)
css.gsub!("url(colorbox/border.png)", "url(data:image/png;base64,#{BORDER})")
css.gsub!("url(colorbox/controls.png)", "url(data:image/png;base64,#{CONTROLS})")

# Fit more stuff without scroll bars, don't linewrap filenames
css << <<-EOF
body { padding:0 !important; }
.src_link { white-space:nowrap; }
.file_list { font-size: .8rem; }
.ui-icon { width:0px !important; height:0px !important; }
th { font-size:.7rem; overflow:hidden; white-space:normal !important; }
EOF
css
else
super(path)
end
end
end

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::SummaryFormatter,
SimpleCov::Formatter::CustomHtmlFormatter
])
37 changes: 20 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
language: ruby
before_install:
gem install bundler
before_install:
- if [[ $(ruby -v) < "ruby 2.3" ]];
then
gem install bundler -v "< 2";
else
gem update --system;
gem install bundler;
fi

rvm:
# 1.9.3
# 1.9.2
# 2.0.0
# 2.1.0
# 2.1.1
# 2.1.2
# 2.1.3
# 2.1.4
# 2.1.5
# 2.1.6
# 2.1.7
- 2.1.0
- 2.1.1
- 2.1.2
- 2.1.3
- 2.1.4
- 2.1.5
- 2.1.6
- 2.1.7
- 2.1.8
# 2.2.0
# 2.2.1
# 2.2.2
# 2.2.3
- 2.2.0
- 2.2.1
- 2.2.2
- 2.2.3
- 2.2.4
- 2.3.0
- 2.3.1
Expand All @@ -29,5 +33,4 @@ rvm:
- 2.5.0
- 2.5.1
- 2.5.3
# jruby
- 2.6.0
17 changes: 10 additions & 7 deletions .yardopts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
--default-return ''
--hide-void-return
--no-private
--output-dir doc/generated
--asset doc/images:images
--load ./yard/rspec-plugin/lib/yard-rspec.rb
--load ./yard/meta-plugin/lib/yard-meta.rb
--db build/generated/.yardoc
--output-dir build/generated/doc
--load ./build/doc/lib/rspec-plugin/lib/yard-rspec.rb
--load ./build/doc/lib/meta-plugin/lib/yard-meta.rb
--asset doc/images:images
--files doc/**/*.md
--exclude 'element_defs\.rb'
--exclude 'segment_defs\.rb'
--exclude 'segment_defs\/'

lib/**/*.rb
spec/examples/**/*.example

- doc/*.md
spec/examples/**/*_spec.rb
22 changes: 13 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ gem "cantor", "~> 1.2.1"

group :development do
gem "rake"
gem "rspec" , "3.8.0"
gem "term-ansicolor"

gem "rspec", "3.8.0"
gem "rspec-collection_matchers"
gem "yard" ,"~> 0.9.12"
gem "redcarpet" ,"~> 3.4.0", :platforms => [:mri]


gem "term-ansicolor"
gem "blankslate" ,:platforms => [:ruby_18, :mri_18, :mingw_18]

gem "rcov" ,"~> 1.0.0" ,:platforms => [:mri_18]
gem "yard","~> 0.9.12"
# gem "redcarpet","~> 3.4.0", :platforms => [:mri]

# https://github.com/colszowka/simplecov#ruby-version-compatibility
gem "simplecov" ,:platforms => [:ruby_25]
gem "simplecov", :platforms => [:ruby_24, :ruby_25]
gem "simplecov-inline-html", :platforms => [:ruby_24, :ruby_25]

# gem "stackprof"
# gem "fasterer"
# gem "benchmark-ips"
# gem "memory_profiler"
# gem "allocation_stats"
# gem "heapy"

# We're using a patched version installed in yard/ until the
# maintainer improves the plugin. The patch has been submitted
Expand Down
12 changes: 4 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
GEM
remote: http://rubygems.org/
specs:
blankslate (3.1.3)
cantor (1.2.1)
diff-lcs (1.3)
docile (1.3.1)
json (2.1.0)
rake (12.3.2)
rcov (1.0.0)
redcarpet (3.4.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
Expand All @@ -29,7 +26,8 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
term-ansicolor (1.7.0)
simplecov-inline-html (0.0.1)
term-ansicolor (1.7.1)
tins (~> 1.0)
tins (1.20.2)
yard (0.9.16)
Expand All @@ -39,16 +37,14 @@ PLATFORMS
ruby

DEPENDENCIES
blankslate
cantor (~> 1.2.1)
rake
rcov (~> 1.0.0)
redcarpet (~> 3.4.0)
rspec (= 3.8.0)
rspec-collection_matchers
simplecov
simplecov-inline-html
term-ansicolor
yard (~> 0.9.12)

BUNDLED WITH
1.16.6
1.17.2
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ memory allocation. The steady increase in throughput on JRuby and Rubinus is
probably attributable optimizations performed by the JIT compiler.

Lastly, these results should approximate the performance of document generation
with BuilderDSL, except BuilderDSL API should have less overhead, as it skips
the tokenizer. On the other hand, BuilderDSL frequently queries the call stack
with BuilderDsl, except BuilderdsL API should have less overhead, as it skips
the tokenizer. On the other hand, BuilderDsl frequently queries the call stack
to track provenance of elements in the parse tree. In common real-world use,
custom application logic and database access are going to bottleneck performance,
rather than Stupidedi.
Expand Down Expand Up @@ -241,7 +241,7 @@ require "stupidedi"
# You can customize this to delegate to your own grammar definitions, if needed.
config = Stupidedi::Config.hipaa

b = Stupidedi::Builder::BuilderDsl.build(config)
b = Stupidedi::Parser::BuilderDsl.build(config)

# These methods perform error checking: number of elements, element types, min/max
# length requirements, conditionally required elements, valid segments, number of
Expand Down Expand Up @@ -333,7 +333,7 @@ Please refer to [this readme](https://github.com/irobayna/stupidedi/blob/master/
require "stupidedi"

config = Stupidedi::Config.hipaa
parser = Stupidedi::Builder::StateMachine.build(config)
parser = Stupidedi::Parser.build(config)

input = if RUBY_VERSION > "1.8"
File.open("spec/fixtures/X221-HP835/1-good.txt", :encoding => "ISO-8859-1")
Expand Down
Loading