metanorma-cli 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/Gemfile.lock +36 -27
- data/README.adoc +18 -3
- data/a +2 -1
- data/appveyor.yml +51 -0
- data/lib/metanorma/cli.rb +2 -0
- data/lib/metanorma/cli/version.rb +1 -1
- data/metanorma-cli.gemspec +3 -1
- metadata +33 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea9f4087153eaee967484367a8d5f05ba8b9b9065c6f67715c852a78166a74c
|
4
|
+
data.tar.gz: d96fb752b9791ae57ed3f23720e8bc80dd7aab9dd8dd8151fc0b5efb79636e3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 834ca08f7fd0843da0a6639cf4579dada45e148caf6939889eda866b564d8200e567ce6e0451e327eb128a68773b70bdca2dba7ce9023b1e33b5558a8ab7a3f5
|
7
|
+
data.tar.gz: 0b2c22fb8c394dfd711ddeb85ac34b62874bcd606b21413b32ae8c9e6ee3b176a13d3f408212ee0e4a8fc9182118a12c770c90a99f3210501171ae0af8858661
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,7 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/asciidoctor/asciimath.git
|
3
|
-
revision: c4b00e4667fd68ab7d169fd5204e4a17d1707163
|
4
|
-
specs:
|
5
|
-
asciimath (1.0.7.pre1)
|
6
|
-
|
7
1
|
PATH
|
8
2
|
remote: .
|
9
3
|
specs:
|
10
|
-
metanorma-cli (1.
|
4
|
+
metanorma-cli (1.1.1)
|
11
5
|
isodoc (~> 0.9.0)
|
12
6
|
metanorma (~> 0.3.5)
|
13
7
|
metanorma-acme (~> 1.0.1)
|
@@ -18,6 +12,8 @@ PATH
|
|
18
12
|
metanorma-iso (~> 1.0.6)
|
19
13
|
metanorma-m3d (~> 1.0.6)
|
20
14
|
metanorma-mpfd (~> 0.1.0)
|
15
|
+
metanorma-nist (~> 0.0.1)
|
16
|
+
metanorma-ogc (~> 0.0.1)
|
21
17
|
metanorma-rsd (~> 1.0.5)
|
22
18
|
metanorma-standoc (~> 1.0.6)
|
23
19
|
metanorma-unece (~> 0.0.1)
|
@@ -32,6 +28,7 @@ GEM
|
|
32
28
|
httpclient (~> 2.8, >= 2.8.3)
|
33
29
|
json (>= 1.5.1)
|
34
30
|
asciidoctor (1.5.8)
|
31
|
+
asciimath (1.0.7)
|
35
32
|
byebug (10.0.2)
|
36
33
|
camertron-eprun (1.1.1)
|
37
34
|
cldr-plurals-runtime-rb (1.0.1)
|
@@ -46,8 +43,8 @@ GEM
|
|
46
43
|
cnccs (~> 0.1.1)
|
47
44
|
gb-agencies (~> 0.0.1)
|
48
45
|
iso-bib-item (~> 0.4.2)
|
49
|
-
html2doc (0.8.
|
50
|
-
asciimath
|
46
|
+
html2doc (0.8.8)
|
47
|
+
asciimath (~> 1.0.7)
|
51
48
|
htmlentities (~> 4.3.4)
|
52
49
|
image_size
|
53
50
|
mime-types
|
@@ -70,11 +67,11 @@ GEM
|
|
70
67
|
isoics (~> 0.1.6)
|
71
68
|
nokogiri (~> 1.8.4)
|
72
69
|
ruby_deep_clone (~> 0.8.0)
|
73
|
-
isobib (0.4.
|
70
|
+
isobib (0.4.3)
|
74
71
|
algoliasearch
|
75
72
|
iecbib (~> 0.2.1)
|
76
73
|
iso-bib-item (~> 0.4.2)
|
77
|
-
isodoc (0.9.
|
74
|
+
isodoc (0.9.14)
|
78
75
|
asciimath
|
79
76
|
html2doc (~> 0.8.6)
|
80
77
|
htmlentities (~> 4.3.4)
|
@@ -92,13 +89,13 @@ GEM
|
|
92
89
|
liquid (4.0.1)
|
93
90
|
metanorma (0.3.5)
|
94
91
|
asciidoctor
|
95
|
-
metanorma-acme (1.0.
|
92
|
+
metanorma-acme (1.0.9)
|
96
93
|
asciidoctor (~> 1.5.7)
|
97
94
|
htmlentities (~> 4.3.4)
|
98
95
|
isodoc (~> 0.9.0)
|
99
96
|
metanorma-standoc (~> 1.0.8)
|
100
97
|
ruby-jing
|
101
|
-
metanorma-csand (1.0.
|
98
|
+
metanorma-csand (1.0.12)
|
102
99
|
asciidoctor (~> 1.5.7)
|
103
100
|
asciimath
|
104
101
|
htmlentities (~> 4.3.4)
|
@@ -111,10 +108,10 @@ GEM
|
|
111
108
|
ruby-xslt
|
112
109
|
thread_safe
|
113
110
|
uuidtools
|
114
|
-
metanorma-csd (1.0.
|
111
|
+
metanorma-csd (1.0.14)
|
115
112
|
isodoc (~> 0.9.6)
|
116
113
|
metanorma-standoc (~> 1.0.0)
|
117
|
-
metanorma-gb (1.0.
|
114
|
+
metanorma-gb (1.0.12)
|
118
115
|
gb-agencies (~> 0.0.4)
|
119
116
|
isodoc (~> 0.9.1)
|
120
117
|
metanorma-iso (~> 1.0.1)
|
@@ -122,13 +119,13 @@ GEM
|
|
122
119
|
metanorma-ietf (1.0.0)
|
123
120
|
isodoc (~> 0.9.6)
|
124
121
|
metanorma-standoc (~> 1.0.0)
|
125
|
-
metanorma-iso (1.0.
|
122
|
+
metanorma-iso (1.0.13)
|
126
123
|
asciidoctor (~> 1.5.7)
|
127
124
|
iev (~> 0.2.0)
|
128
125
|
isodoc (~> 0.9.8)
|
129
126
|
metanorma-standoc (~> 1.0.0)
|
130
127
|
ruby-jing
|
131
|
-
metanorma-m3d (1.0.
|
128
|
+
metanorma-m3d (1.0.13)
|
132
129
|
asciidoctor (~> 1.5.7)
|
133
130
|
asciimath
|
134
131
|
htmlentities (~> 4.3.4)
|
@@ -141,28 +138,41 @@ GEM
|
|
141
138
|
ruby-xslt
|
142
139
|
thread_safe
|
143
140
|
uuidtools
|
144
|
-
metanorma-mpfd (0.1.
|
141
|
+
metanorma-mpfd (0.1.5)
|
145
142
|
asciidoctor (~> 1.5.7)
|
146
143
|
htmlentities (~> 4.3.4)
|
147
144
|
isodoc (~> 0.9.0)
|
148
145
|
metanorma-standoc (~> 1.0.0)
|
149
146
|
nokogiri
|
150
147
|
twitter_cldr
|
151
|
-
metanorma-
|
148
|
+
metanorma-nist (0.0.1)
|
149
|
+
asciidoctor (~> 1.5.7)
|
150
|
+
htmlentities (~> 4.3.4)
|
151
|
+
isodoc (~> 0.9.0)
|
152
|
+
metanorma-standoc (~> 1.0.0)
|
153
|
+
ruby-jing
|
154
|
+
metanorma-ogc (0.0.3)
|
155
|
+
asciidoctor (~> 1.5.7)
|
156
|
+
htmlentities (~> 4.3.4)
|
157
|
+
iso-639
|
158
|
+
isodoc (~> 0.9.0)
|
159
|
+
metanorma-standoc (~> 1.0.8)
|
160
|
+
ruby-jing
|
161
|
+
metanorma-rsd (1.0.13)
|
152
162
|
asciidoctor (~> 1.5.7)
|
153
163
|
htmlentities (~> 4.3.4)
|
154
164
|
isodoc (~> 0.9.0)
|
155
165
|
metanorma-standoc (~> 1.0.0)
|
156
166
|
nokogiri
|
157
|
-
metanorma-standoc (1.0.
|
167
|
+
metanorma-standoc (1.0.14)
|
158
168
|
asciidoctor (~> 1.5.7)
|
159
169
|
concurrent-ruby
|
160
170
|
iev (~> 0.2.0)
|
161
171
|
isodoc (~> 0.9.0)
|
162
172
|
relaton (~> 0.3.1)
|
163
173
|
ruby-jing
|
164
|
-
sterile
|
165
|
-
metanorma-unece (0.0.
|
174
|
+
sterile (~> 1.0.14)
|
175
|
+
metanorma-unece (0.0.8)
|
166
176
|
asciidoctor (~> 1.5.7)
|
167
177
|
htmlentities (~> 4.3.4)
|
168
178
|
iso-639
|
@@ -216,7 +226,7 @@ GEM
|
|
216
226
|
optout (>= 0.0.2)
|
217
227
|
ruby-xslt (0.9.10)
|
218
228
|
ruby_deep_clone (0.8.0)
|
219
|
-
sass (3.7.
|
229
|
+
sass (3.7.3)
|
220
230
|
sass-listen (~> 4.0.0)
|
221
231
|
sass-listen (4.0.0)
|
222
232
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
@@ -224,7 +234,7 @@ GEM
|
|
224
234
|
sassc (1.12.1)
|
225
235
|
ffi (~> 1.9.6)
|
226
236
|
sass (>= 3.3.0)
|
227
|
-
sterile (1.0.
|
237
|
+
sterile (1.0.14)
|
228
238
|
nokogiri
|
229
239
|
thread_safe (0.3.6)
|
230
240
|
twitter_cldr (4.4.3)
|
@@ -239,8 +249,7 @@ PLATFORMS
|
|
239
249
|
ruby
|
240
250
|
|
241
251
|
DEPENDENCIES
|
242
|
-
|
243
|
-
bundler (~> 1.16)
|
252
|
+
bundler (~> 2.0.1)
|
244
253
|
byebug (~> 10.0)
|
245
254
|
equivalent-xml (~> 0.6)
|
246
255
|
metanorma-cli!
|
@@ -250,4 +259,4 @@ DEPENDENCIES
|
|
250
259
|
rspec-core (~> 3.4)
|
251
260
|
|
252
261
|
BUNDLED WITH
|
253
|
-
|
262
|
+
2.0.1
|
data/README.adoc
CHANGED
@@ -1,9 +1,24 @@
|
|
1
|
-
=
|
2
|
-
Command line script for Metanorma
|
1
|
+
= Metanorma's command-line interface (CLI)
|
3
2
|
|
4
3
|
image:https://img.shields.io/gem/v/metanorma-cli.svg["Gem Version", link="https://rubygems.org/gems/metanorma-cli"]
|
5
4
|
image:https://img.shields.io/travis/riboseinc/metanorma-cli/master.svg["Build Status", link="https://travis-ci.org/riboseinc/metanorma-cli"]
|
6
5
|
image:https://codeclimate.com/github/riboseinc/metanorma-cli/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/riboseinc/metanorma-cli"]
|
6
|
+
image:https://ci.appveyor.com/api/projects/status/vqo2221uwcaov8kx?svg=true["Build Status", link="https://ci.appveyor.com/project/ribose/metanorma-cli"]
|
7
7
|
|
8
|
+
== Installation
|
8
9
|
|
9
|
-
|
10
|
+
[TIP]
|
11
|
+
====
|
12
|
+
To use Metanorma, normally you *don’t manually install this gem*.
|
13
|
+
Depending on your setup, you may find quicker ways to get started:
|
14
|
+
please refer to https://www.metanorma.com/docs/getting-started/[Getting Started] instead.
|
15
|
+
====
|
16
|
+
|
17
|
+
At its core, installing this gem is as easy as `gem install metanorma-cli`.
|
18
|
+
That will install the `metanorma` executable, which you can use with all
|
19
|
+
officially supported Metanorma flavors (such as ISO, CalConnect, IETF, etc).
|
20
|
+
However, certain dependencies such as Puppeteer may have to be installed separately,
|
21
|
+
and the process is a little more complex if you’re using Windows.
|
22
|
+
|
23
|
+
For advanced details regarding dependencies and Windows installation notes,
|
24
|
+
refer to the link:docs/installation.adoc[full installation manual].
|
data/a
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
git add
|
1
|
+
git add .travis.yml Gemfile.lock
|
2
|
+
|
data/appveyor.yml
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
version: '{build}'
|
2
|
+
|
3
|
+
environment:
|
4
|
+
matrix:
|
5
|
+
- RUBY_VERSION: 25
|
6
|
+
- RUBY_VERSION: 24
|
7
|
+
- RUBY_VERSION: 23
|
8
|
+
- RUBY_VERSION: _trunk
|
9
|
+
|
10
|
+
matrix:
|
11
|
+
allow_failures:
|
12
|
+
- RUBY_VERSION: _trunk
|
13
|
+
|
14
|
+
install:
|
15
|
+
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
16
|
+
- gem install bundler -v 1.17.3
|
17
|
+
- npm install -g puppeteer
|
18
|
+
- npm install
|
19
|
+
# install libxml2 & libxslt
|
20
|
+
- ps: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
21
|
+
- refreshenv
|
22
|
+
- cinst --x86 xsltproc
|
23
|
+
- set XSLT_PROC=%ChocolateyInstall%\lib\xsltproc\dist
|
24
|
+
# RUBY_DLL_PATH looks broken in ruby23
|
25
|
+
- if "%RUBY_VERSION%" == "23" (
|
26
|
+
XCOPY /Y %XSLT_PROC%\bin\lib*.dll C:\Ruby%RUBY_VERSION%\bin\*
|
27
|
+
) else (
|
28
|
+
XCOPY /Y %XSLT_PROC%\bin\libxml2*.dll %XSLT_PROC%\bin\libxml2.dll* &
|
29
|
+
XCOPY /Y %XSLT_PROC%\bin\libxslt*.dll %XSLT_PROC%\bin\libxslt.dll* &
|
30
|
+
XCOPY /Y %XSLT_PROC%\bin\libexslt*.dll %XSLT_PROC%\bin\libexslt.dll*
|
31
|
+
)
|
32
|
+
- echo @ECHO OFF > %ChocolateyInstall%\bin\xml2-config.bat
|
33
|
+
- echo @ECHO OFF > %ChocolateyInstall%\bin\xslt-config.bat
|
34
|
+
|
35
|
+
build_script:
|
36
|
+
# RUBY_DLL_PATH looks broken in ruby23
|
37
|
+
- if NOT "%RUBY_VERSION%" == "23" setx /M RUBY_DLL_PATH "%ChocolateyInstall%\lib\xsltproc\dist\bin;%RUBY_DLL_PATH%"
|
38
|
+
- refreshenv
|
39
|
+
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
40
|
+
- set XSLT_PROC=%ChocolateyInstall%\lib\xsltproc\dist
|
41
|
+
- bundle config build.ruby-xslt --with-xml2-include=%XSLT_PROC%\include\libxml2 --with-xslt-include=%XSLT_PROC%\include --with-xml2-lib=%XSLT_PROC%\lib --with-xslt-lib=%XSLT_PROC%\lib
|
42
|
+
- bundle update
|
43
|
+
- bundle install
|
44
|
+
|
45
|
+
before_test:
|
46
|
+
- ruby -v
|
47
|
+
- gem -v
|
48
|
+
- bundle -v
|
49
|
+
|
50
|
+
test_script:
|
51
|
+
- bundle exec rake
|
data/lib/metanorma/cli.rb
CHANGED
data/metanorma-cli.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.required_ruby_version = '>= 2.3.0'
|
26
26
|
|
27
|
-
spec.add_development_dependency "bundler", "~> 1
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.0.1"
|
28
28
|
spec.add_development_dependency "rake", "~> 12.0"
|
29
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
30
30
|
spec.add_development_dependency "byebug", "~> 10.0"
|
@@ -44,6 +44,8 @@ Gem::Specification.new do |spec|
|
|
44
44
|
spec.add_runtime_dependency 'metanorma-standoc', "~> 1.0.6"
|
45
45
|
spec.add_runtime_dependency 'metanorma-mpfd', "~> 0.1.0"
|
46
46
|
spec.add_runtime_dependency 'metanorma-unece', "~> 0.0.1"
|
47
|
+
spec.add_runtime_dependency 'metanorma-ogc', "~> 0.0.1"
|
48
|
+
spec.add_runtime_dependency 'metanorma-nist', "~> 0.0.1"
|
47
49
|
spec.add_runtime_dependency 'isodoc', "~> 0.9.0"
|
48
50
|
spec.add_runtime_dependency 'metanorma', "~> 0.3.5"
|
49
51
|
spec.add_runtime_dependency 'nokogiri'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.1
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,6 +262,34 @@ dependencies:
|
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: 0.0.1
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: metanorma-ogc
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - "~>"
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 0.0.1
|
272
|
+
type: :runtime
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - "~>"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 0.0.1
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: metanorma-nist
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - "~>"
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: 0.0.1
|
286
|
+
type: :runtime
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - "~>"
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 0.0.1
|
265
293
|
- !ruby/object:Gem::Dependency
|
266
294
|
name: isodoc
|
267
295
|
requirement: !ruby/object:Gem::Requirement
|
@@ -324,6 +352,7 @@ files:
|
|
324
352
|
- Rakefile
|
325
353
|
- a
|
326
354
|
- a.rb
|
355
|
+
- appveyor.yml
|
327
356
|
- bin/console
|
328
357
|
- bin/setup
|
329
358
|
- csd-tofix 2.zip
|