Project

mnconvert

0.0
The project is in a healthy, maintained state
mnconvert converts Metanorma XML into NISO STS XML. This gem is a wrapper around mnconvert.jar available from https://github.com/metanorma/mnconvert, with versions matching the JAR file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

mnconvert Ruby gem

Gem Version Ubuntu Build Status Code Climate Pull Requests Commits since latest

Purpose

The mnconvert Ruby gem is a wrapper around the Java mnconvert which:

  • converts Metanorma presentational XML into various output formats, including ISOSTS;

  • converts other formats to Metanorma AsciiDoc or Metanorma XML.

This gem is used to provide mnconvert.jar with mirrored version numbers, to allow Ruby code to easily refer to the desired mnconvert version as dependencies.

Installation

gem install mnconvert

Or include it in your gemspec.

Usage

require 'mnconvert'
MnConvert.convert(sample_xml_path, output_pdf_path)

Updating the gem

Update lib/mnconvert/version.rb to the desired version of mnconvert.

Run rake to download the bin/mnconvert.jar file:

rm -f bin/mnconvert.jar
rake bin/mnconvert.jar

Then release the gem with rake release.