Skip to content

Commit

Permalink
fix: Update font-test for new module names #343
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP authored Oct 15, 2024
1 parent 676f966 commit 27562e2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions bin/font-test
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,7 @@ flavors.each do |flavor|
gem_name = "metanorma-#{flavor}"
require gem_name

submodule = case flavor
when "iso", "iec", "ietf", "ogc", "csa", "ribose", "plateau"
flavor.capitalize
when "jcgm"
"BIPM"
else
flavor.upcase
end
processor_class = "Metanorma::#{submodule}::Processor"
processor_class = "Metanorma::#{flavor.capitalize}::Processor"

processor = Object
.const_get(processor_class)
Expand Down Expand Up @@ -55,4 +47,4 @@ flavors.each do |flavor|
end
exit(1)
end
end
end

0 comments on commit 27562e2

Please sign in to comment.