mn2sts Ruby gem
Purpose
The mn2sts Ruby gem is a wrapper around the Java mn2sts which converts Metanorma XML files into native PDFs.
This gem is used to provide mn2sts.jar with mirrored version numbers, to allow Ruby code to easily refer to the desired mn2sts version as dependencies.
Installation
gem install mn2sts
Or include it in your gemspec.
Usage
require 'mn2sts'
Mn2sts.convert(sample_xml_path, output_pdf_path)
Updating the gem
Update lib/mn2sts/version.rb
to the desired version of mn2sts.
Run rake
to download the bin/mn2sts.jar
file:
rm -f bin/mn2sts.jar
rake bin/mn2sts.jar
Then release the gem with rake release
.