-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
130 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,6 @@ | |
Gemfile.lock | ||
.tebako | ||
*-test-package | ||
site-* | ||
relaton/ | ||
iev/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
# rubocop:disable Gemspec/DevelopmentDependencies | ||
gem "iso-639", "<= 0.2.10" # https://github.com/metanorma/packed-mn/issues/26 | ||
|
||
gem "ffi" | ||
# nokogiry asks for psych >= 4 | ||
# psych 5 does not support --enable-bundled-libyaml configuration option | ||
# that is required by tebako | ||
# we set "psych ~> 4" temporarily until | ||
# https://github.com/tamatebako/tebako/issues/93 is fixed | ||
gem "psych", "~> 4" | ||
gem "rake" | ||
gem "sassc" | ||
gem "seven-zip" | ||
|
||
group :development do | ||
gem "byebug" | ||
end | ||
|
||
gem "metanorma-cli", "= 1.8.8" | ||
|
||
# rubocop:enable Gemspec/DevelopmentDependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require "rubygems" | ||
require "openssl" | ||
require "open-uri" | ||
require "net/https" | ||
|
||
require "jing" | ||
require "optout" | ||
|
||
# Limit Relaton to concurrent fetches of 1 | ||
ENV["RELATON_FETCH_PARALLEL"] = "1" | ||
|
||
unless Gem.win_platform? # because on windows we use aibika | ||
# This code was bundled with ruby-packer/tebako hack but is not related | ||
class Jing | ||
def self.option_builder | ||
@@option_builder | ||
end | ||
end | ||
|
||
class Optout | ||
def []=(name, value) | ||
@options[name] = value | ||
end | ||
end | ||
|
||
Jing.option_builder[:jar] = Optout::Option.create(:jar, "-jar", | ||
index: 1, | ||
validator: Optout::File.exists, | ||
default: Jing::DEFAULT_JAR) | ||
end | ||
|
||
# explicitly load all dependent gems | ||
# ruby packer cannot use gem load path correctly. | ||
require "metanorma/cli" | ||
|
||
# start up the CLI | ||
Metanorma::Cli.start(ARGV) |