metanorma-cli 1.4.12 → 1.4.13pre
Sign up to get free protection for your applications and to get access to all the features.
- 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 +1 -1
- 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: 027a85f83c8fd26727b311c10cbee32620d98bd8f821bca87620c0d706cedec4
|
4
|
+
data.tar.gz: 298ea03653a6432b3a0a5d809c03fd86f3374a16c1da8c709a3da69976f0d0ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fce906910a0a4ef89c049ee941a9589354808385ccdb33cbeb9bf81ba472d4fb86b4dc1d877d58ca7fa48eaba994f8b8a2a2a837b96277021b734ad376c3646
|
7
|
+
data.tar.gz: 9de3e7a5747e7f4464bb4412f811c6a6285485fd15a8008af766972c39c8784c2515870b6a017bae1ec0b479b5ca67614ed47d58e436319a6cf482dc1e9d660f
|
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"
|
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.13pre
|
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-03 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
|
@@ -509,9 +509,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
509
509
|
version: 2.5.0
|
510
510
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
511
511
|
requirements:
|
512
|
-
- - "
|
512
|
+
- - ">"
|
513
513
|
- !ruby/object:Gem::Version
|
514
|
-
version:
|
514
|
+
version: 1.3.1
|
515
515
|
requirements: []
|
516
516
|
rubygems_version: 3.1.4
|
517
517
|
signing_key:
|