metanorma-cli 1.4.12 → 1.4.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d1fb69529c7e139d15bdaa3135a5c34aee0fc5ac65ae1b866f2e979dcc9b07a
4
- data.tar.gz: bdd7054b9db2616b748a1e7cb22802c7931a43c136a2fa71c0a3f42fdaf05dd5
3
+ metadata.gz: 8e6336cbea42f724106ef2d81a1a742526f713e843718861a3388d3e20c3148e
4
+ data.tar.gz: 89577c835bb93e9f2adb29a441481686ea85421af5149675eabc8fb3e01e1561
5
5
  SHA512:
6
- metadata.gz: 8f96d4d073ad59edf73961e5cec32233e277d3887ddab949f9cbec55f2c0248577f8b05b548c481079dc8499436c4d31915d2fc77cb5161c72ecaf21e6da5e2d
7
- data.tar.gz: 74016d55cf24c7f23039a7e8558081c58e15fd292b50f5a45795cb0fc9502e4a779b3a8f772b923a1260cb800080469af925def8491ead606c0af9ca0b0c96f1
6
+ metadata.gz: b33354642e93dd60bbec2a596d4197a53ff738106d73e9552f25dc8e7169c942891cd09d93c8d7124463764955da5b2520bd51fc361e12b849d621b241f7aae6
7
+ data.tar.gz: 6ed35b3dea41caaa1e6c519ffcc9626e817a230923ea10864c168cabbffa8000d09d613881e76a6ba33800558aae05bce46c09ff0175f4a4f645665badc3b37e
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"
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cli
3
- VERSION = "1.4.12".freeze
3
+ VERSION = "1.4.14".freeze
4
4
  end
5
5
  end
@@ -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.3.0"
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.3.0"
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.12
4
+ version: 1.4.14
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-07-19 00:00:00.000000000 Z
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.3.0
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.3.0
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.3.0
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.3.0
390
+ version: 1.4.0
391
391
  - !ruby/object:Gem::Dependency
392
392
  name: metanorma-un
393
393
  requirement: !ruby/object:Gem::Requirement