metanorma-cli 1.4.12pre → 1.4.14pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.adoc +17 -2
- data/exe/metanorma +5 -0
- data/lib/metanorma/cli/version.rb +1 -1
- data/metanorma-cli.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b2aa49d1cee395d0d64f51e34507f54ecbc0dbd1769d4dc6b7ea97676b25248
|
4
|
+
data.tar.gz: a2b0f92415872bd9eec096601fbc8d2208d6fd40c02af61e8c845934e3a35997
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c34d23ae97cd7978cab3c3fcd4a4af837e56b5db75019be34c3b4a5f4bbc1e3d9b28ed01b147d422114125bb14071e25c07633aa20eb18752c6da6eeed049e99
|
7
|
+
data.tar.gz: 04ced7db3c0fffdbafb1edd99297818410b76eb0d8a593ffa3ed9b6347957e935b9fba1f56246ce1780ca8e854788186ddc113cf037ce81137ba2c1252a9ff63
|
data/README.adoc
CHANGED
@@ -185,7 +185,7 @@ are `ietf`, `iso`, `gb`, `csd`, `csand`, `m3d` and `rsd`.
|
|
185
185
|
|
186
186
|
This functionality compiles collections of Metanorma documents. It compiles
|
187
187
|
the individual documents comprising the collection; then it compiles a document
|
188
|
-
acting as a container for those collections. See
|
188
|
+
acting as a container for those collections. See
|
189
189
|
https://github.com/metanorma/metanorma/wiki/Metanorma-collections[],
|
190
190
|
https://github.com/metanorma/metanorma-cli/blob/master/spec/fixtures/collection1.yml[]
|
191
191
|
|
@@ -199,7 +199,7 @@ which contains:
|
|
199
199
|
* Content to put at the ending of the collection container
|
200
200
|
|
201
201
|
Documents within a collection
|
202
|
-
may cross-reference each other using the syntax
|
202
|
+
may cross-reference each other using the syntax
|
203
203
|
`* [[[myanchor,repo:(current-metanorma-collection/mydoc)]]]`,
|
204
204
|
as proposed in https://github.com/metanorma/metanorma/issues/57, where
|
205
205
|
`mydoc` is be the value of docref/identifier corresponding to the target document,
|
@@ -324,6 +324,21 @@ the site generation process. You can check more details here: link:./spec/fixtur
|
|
324
324
|
metanorma site generate SOURCE_PATH -o OUTPUT_PATH -c metanorma.yml
|
325
325
|
----
|
326
326
|
|
327
|
+
=== Using with proxy
|
328
|
+
|
329
|
+
The `metanorma` command can read proxy settings from the following
|
330
|
+
environment variables:
|
331
|
+
|
332
|
+
* `HTTP_PROXY` for HTTPS and HTTP proxies
|
333
|
+
* `SOCKS_PROXY` for SOCKS proxies
|
334
|
+
|
335
|
+
Please refer to our https://www.metanorma.org/blog/2021-07-20/metanorma-with-proxies/[announcement on proxy support] for details.
|
336
|
+
|
337
|
+
NOTE: Since `metanorma` uses Git for templates (and fonts via Fontist, which also relies on Git),
|
338
|
+
Git must also be configured to use proxies. Please refer to
|
339
|
+
https://gist.github.com/evantoli/f8c23a37eb3558ab8765[this Gist by evantoli] for details.
|
340
|
+
|
341
|
+
|
327
342
|
== Credits
|
328
343
|
|
329
344
|
This gem is developed, maintained and funded by https://www.metanorma.com/docs/getting-started/[Ribose Inc.]
|
data/exe/metanorma
CHANGED
@@ -25,6 +25,11 @@ if ENV["SOCKS_PROXY"]
|
|
25
25
|
require "uri"
|
26
26
|
begin
|
27
27
|
proxy = URI.parse(ENV["SOCKS_PROXY"])
|
28
|
+
if proxy.userinfo
|
29
|
+
user, pass = proxy.userinfo.split(":")
|
30
|
+
TCPSocket::socks_username = user
|
31
|
+
TCPSocket::socks_password = pass
|
32
|
+
end
|
28
33
|
Socksify::proxy(proxy.host, proxy.port, &metanorma_cli)
|
29
34
|
rescue URI::InvalidURIError
|
30
35
|
warn "Value of ENV.SOCKS_PROXY=#{ENV['SOCKS_PROXY']} is invalid! Droping it"
|
data/metanorma-cli.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency "rubocop", "~> 1.5.2"
|
37
37
|
spec.add_development_dependency "sassc"
|
38
38
|
|
39
|
-
spec.add_runtime_dependency "metanorma-ietf", "~> 2.
|
39
|
+
spec.add_runtime_dependency "metanorma-ietf", "~> 2.4.0"
|
40
40
|
spec.add_runtime_dependency "metanorma-iso", "~> 1.9.0"
|
41
41
|
spec.add_runtime_dependency "thor", "~> 1.0"
|
42
42
|
# spec.add_runtime_dependency "metanorma-gb", "~> 1.5.0"
|
@@ -55,7 +55,7 @@ Gem::Specification.new do |spec|
|
|
55
55
|
spec.add_runtime_dependency "metanorma-iho", "~> 0.3.0"
|
56
56
|
spec.add_runtime_dependency "metanorma-itu", "~> 1.3.0"
|
57
57
|
# spec.add_runtime_dependency "metanorma-nist", "~> 1.3.0"
|
58
|
-
spec.add_runtime_dependency "metanorma-ogc", "~> 1.
|
58
|
+
spec.add_runtime_dependency "metanorma-ogc", "~> 1.4.0"
|
59
59
|
spec.add_runtime_dependency "metanorma-un", "~> 0.6.0"
|
60
60
|
spec.add_runtime_dependency "relaton-cli", ">= 0.8.2"
|
61
61
|
|
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.4.
|
4
|
+
version: 1.4.14pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 2.
|
173
|
+
version: 2.4.0
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 2.
|
180
|
+
version: 2.4.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: metanorma-iso
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -380,14 +380,14 @@ dependencies:
|
|
380
380
|
requirements:
|
381
381
|
- - "~>"
|
382
382
|
- !ruby/object:Gem::Version
|
383
|
-
version: 1.
|
383
|
+
version: 1.4.0
|
384
384
|
type: :runtime
|
385
385
|
prerelease: false
|
386
386
|
version_requirements: !ruby/object:Gem::Requirement
|
387
387
|
requirements:
|
388
388
|
- - "~>"
|
389
389
|
- !ruby/object:Gem::Version
|
390
|
-
version: 1.
|
390
|
+
version: 1.4.0
|
391
391
|
- !ruby/object:Gem::Dependency
|
392
392
|
name: metanorma-un
|
393
393
|
requirement: !ruby/object:Gem::Requirement
|