metanorma 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcc404bc49c5430dc6d35a87f0b09c281fddc0e7
4
- data.tar.gz: a7541af56c0e18246d3d5187dcef6ee2365c1406
3
+ metadata.gz: 3afda147aa1490bff868f52c5e8f8e411028b0d0
4
+ data.tar.gz: a52450e9374de20040c6565d9bc0dd5eaf5bb6b2
5
5
  SHA512:
6
- metadata.gz: 39142717ffe33f72fa948ba5ab748643f2b61454f93dff1e97561bafa6e6508a62c6ba1f32682c6f8ad87d9d9e5b5db749df6d4fbdb15e9ec1b3425ed9aab494
7
- data.tar.gz: 64456db2d03469a3e86ee1758ba5b5cf8b7be0f6f5114c3136f970f73f82791978a713de630635f9ff14273202eb880e825b183b1a5d30405bf9e3b7667ebbe4
6
+ metadata.gz: fd8d262d7a5bdbfe8338babf1077f3a91e4f1cd5e017fd53f4cb8c90c2603bfba954bc01d3b491f0a821df23e07cb984ad1660ee09249bf82058bf40e99f2dcb
7
+ data.tar.gz: 56668430b1744adc075e49ee4a095d65b1dc27ffed175c8dc8a3818df080384a4b446cdede0a2cb812e3c6c5777203187f9f75549f7ecddedbfc0c0ece6b38f5
data/README.adoc CHANGED
@@ -44,6 +44,7 @@ $ metanorma -h
44
44
  Usage: metanorma [options] <file>
45
45
  -t, --type TYPE Type of standard to generate: rfc2, rfc3, iso, gb, csd
46
46
  -f, --format FORMAT Format of source file: asciidoc (current default, only format supported)
47
+ -r, --require LIBRARY Require LIBRARY prior to execution
47
48
  -h, --help Show this message
48
49
  ----
49
50
 
@@ -58,7 +59,7 @@ Options:
58
59
 
59
60
  //, `rsd`
60
61
  `type`:: (mandatory, specified via `--type` or `-t`) takes one of the following types:
61
- `rfc2`, `rfc3`, `iso`, `gb`, `csd`
62
+ `rfc2`, `rfc3`, `iso`, `gb`, `csd`, `csand`
62
63
 
63
64
  `format`:: (specified via `--format` or `-f`) only accepts `asciidoc` for now
64
65
 
data/exe/metanorma CHANGED
@@ -80,6 +80,15 @@ opt_parser = OptionParser.new do |opts|
80
80
  'Format of source file: asciidoc (current default, only format supported)'
81
81
  ) { |v| options[:format] = v }
82
82
 
83
+ opts.on(
84
+ '-r',
85
+ '--require LIBRARY',
86
+ 'Require LIBRARY prior to execution'
87
+ ) { |v|
88
+ options[:require] ||= []
89
+ options[:require] << v
90
+ }
91
+
83
92
  opts.on_tail("-h", "--help", "Show this message") do
84
93
  puts opts
85
94
  exit
@@ -111,6 +120,12 @@ unless options[:filename]
111
120
  exit 0
112
121
  end
113
122
 
123
+ if options[:require]
124
+ options[:require].each do |r|
125
+ require r
126
+ end
127
+ end
128
+
114
129
  asciidoc_options = Asciidoctor::Cli::Options.new(
115
130
  backend: options[:type],
116
131
  header_footer: true
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-17 00:00:00.000000000 Z
11
+ date: 2018-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler