metanorma-cli 1.2.4 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -6
- data/Gemfile.lock +46 -42
- data/a +1 -1
- data/lib/metanorma/cli.rb +1 -0
- data/lib/metanorma/cli/command.rb +5 -4
- data/lib/metanorma/cli/version.rb +1 -1
- data/metanorma-cli.gemspec +2 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 115b41fec9c2ee6eddecf6b033390bd8edb969081d10aa1ff41c9fb816e9a10c
|
4
|
+
data.tar.gz: 04ad789b4a309a8ef01a296c76585d3605ac2b08b4f7e0403af7fde0a3931efa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb341aaa3a08d9a0d7179a88d48fd634f957e4736904c586ce9a993af09f123e22804f01cad15ae1005c4c4eed60266906a9ff49261f3192cf36a498c2c7ed7
|
7
|
+
data.tar.gz: 31d1441d7517bab74a00d7539078c4cc8e67ea71cbf108614496108de5decbc693fabe2415c85957cdcc1b1f7dd6943b4cef4948c1b68024ba4b28fd931253da
|
data/Gemfile
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
|
1
|
+
Encoding.default_external = Encoding::UTF_8
|
2
|
+
Encoding.default_internal = Encoding::UTF_8
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
#gem "metanorma-nist", github: "metanorma/metanorma-nist"
|
6
|
-
#
|
4
|
+
source "https://rubygems.org"
|
5
|
+
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
7
6
|
|
8
|
-
# Specify your gem's dependencies in gemspec
|
9
7
|
gemspec
|
10
8
|
|
9
|
+
if File.exist? 'Gemfile.devel'
|
10
|
+
eval File.read('Gemfile.devel'), nil, 'Gemfile.devel' # rubocop:disable Security/Eval
|
11
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
metanorma-cli (1.2.
|
4
|
+
metanorma-cli (1.2.5)
|
5
5
|
git (~> 1.5)
|
6
6
|
isodoc (~> 1.0.0)
|
7
7
|
metanorma (~> 0.3.9)
|
@@ -9,6 +9,7 @@ PATH
|
|
9
9
|
metanorma-csand (~> 1.3.0)
|
10
10
|
metanorma-csd (~> 1.3.0)
|
11
11
|
metanorma-gb (~> 1.3.0)
|
12
|
+
metanorma-iec (~> 0.0.5)
|
12
13
|
metanorma-ietf (~> 1.0.1)
|
13
14
|
metanorma-iso (~> 1.3.0)
|
14
15
|
metanorma-itu (~> 0.2.0)
|
@@ -17,17 +18,13 @@ PATH
|
|
17
18
|
metanorma-ogc (~> 0.2.0)
|
18
19
|
metanorma-standoc (~> 1.3.0)
|
19
20
|
metanorma-unece (~> 0.2.0)
|
20
|
-
nokogiri (>= 1)
|
21
21
|
thor (~> 0.20.3)
|
22
22
|
|
23
23
|
GEM
|
24
24
|
remote: https://rubygems.org/
|
25
25
|
specs:
|
26
|
-
addressable (2.
|
27
|
-
public_suffix (>= 2.0.2, <
|
28
|
-
algoliasearch (1.26.1)
|
29
|
-
httpclient (~> 2.8, >= 2.8.3)
|
30
|
-
json (>= 1.5.1)
|
26
|
+
addressable (2.7.0)
|
27
|
+
public_suffix (>= 2.0.2, < 5.0)
|
31
28
|
asciidoctor (1.5.8)
|
32
29
|
asciimath (1.0.8)
|
33
30
|
byebug (10.0.2)
|
@@ -38,6 +35,8 @@ GEM
|
|
38
35
|
diff-lcs (1.3)
|
39
36
|
equivalent-xml (0.6.0)
|
40
37
|
nokogiri (>= 1.4.3)
|
38
|
+
faraday (0.15.4)
|
39
|
+
multipart-post (>= 1.2, < 3)
|
41
40
|
ffi (1.11.1)
|
42
41
|
gb-agencies (0.0.5)
|
43
42
|
git (1.5.0)
|
@@ -50,36 +49,34 @@ GEM
|
|
50
49
|
thread_safe
|
51
50
|
uuidtools
|
52
51
|
htmlentities (4.3.4)
|
53
|
-
httpclient (2.8.3)
|
54
52
|
iev (0.2.2)
|
55
53
|
nokogiri
|
56
54
|
image_size (2.0.2)
|
57
55
|
iso-639 (0.2.8)
|
58
|
-
isodoc (1.0.
|
56
|
+
isodoc (1.0.2)
|
59
57
|
asciimath
|
60
58
|
html2doc (~> 0.8.11)
|
61
59
|
htmlentities (~> 4.3.4)
|
62
60
|
liquid
|
63
61
|
metanorma (~> 0.3.0)
|
64
|
-
nokogiri (>= 1)
|
62
|
+
nokogiri (>= 1.10.4)
|
65
63
|
rake (~> 12.0)
|
66
64
|
roman-numerals
|
67
65
|
sassc (~> 2)
|
68
66
|
thread_safe
|
69
67
|
uuidtools
|
70
68
|
isoics (0.1.7)
|
71
|
-
json (2.2.0)
|
72
69
|
liquid (4.0.3)
|
73
70
|
metanorma (0.3.14)
|
74
71
|
asciidoctor
|
75
72
|
htmlentities
|
76
|
-
metanorma-acme (1.3.
|
73
|
+
metanorma-acme (1.3.1)
|
77
74
|
asciidoctor (~> 1.5.7)
|
78
75
|
htmlentities (~> 4.3.4)
|
79
76
|
isodoc (~> 1.0.0)
|
80
77
|
metanorma-standoc (~> 1.3.0)
|
81
78
|
ruby-jing
|
82
|
-
metanorma-csand (1.3.
|
79
|
+
metanorma-csand (1.3.1)
|
83
80
|
asciidoctor (~> 1.5.7)
|
84
81
|
asciimath
|
85
82
|
htmlentities (~> 4.3.4)
|
@@ -87,34 +84,38 @@ GEM
|
|
87
84
|
isodoc (~> 1.0.0)
|
88
85
|
metanorma-standoc (~> 1.3.0)
|
89
86
|
mime-types
|
90
|
-
nokogiri
|
91
87
|
ruby-jing
|
92
88
|
thread_safe
|
93
89
|
uuidtools
|
94
|
-
metanorma-csd (1.3.
|
90
|
+
metanorma-csd (1.3.1)
|
95
91
|
isodoc (~> 1.0.0)
|
96
92
|
metanorma-standoc (~> 1.3.0)
|
97
|
-
metanorma-gb (1.3.
|
93
|
+
metanorma-gb (1.3.2)
|
98
94
|
gb-agencies (~> 0.0.4)
|
99
95
|
htmlentities (~> 4.3.4)
|
100
96
|
isodoc (~> 1.0.0)
|
101
97
|
metanorma-iso (~> 1.3.0)
|
102
98
|
twitter_cldr (~> 4.4.4)
|
99
|
+
metanorma-iec (0.0.5)
|
100
|
+
asciidoctor (~> 1.5.7)
|
101
|
+
isodoc (~> 1.0.0)
|
102
|
+
metanorma-iso (~> 1.3.0)
|
103
|
+
ruby-jing
|
103
104
|
metanorma-ietf (1.0.6)
|
104
105
|
isodoc (~> 1.0.0)
|
105
106
|
metanorma-standoc (~> 1.3.0)
|
106
|
-
metanorma-iso (1.3.
|
107
|
+
metanorma-iso (1.3.2)
|
107
108
|
asciidoctor (~> 1.5.7)
|
108
109
|
isodoc (~> 1.0.0)
|
109
110
|
metanorma-standoc (~> 1.3.0)
|
110
111
|
ruby-jing
|
111
|
-
metanorma-itu (0.2.
|
112
|
+
metanorma-itu (0.2.4)
|
112
113
|
asciidoctor (~> 1.5.7)
|
113
114
|
htmlentities (~> 4.3.4)
|
114
115
|
isodoc (~> 1.0.0)
|
115
116
|
metanorma-standoc (~> 1.3.0)
|
116
117
|
ruby-jing
|
117
|
-
metanorma-m3d (1.3.
|
118
|
+
metanorma-m3d (1.3.1)
|
118
119
|
asciidoctor (~> 1.5.7)
|
119
120
|
asciimath
|
120
121
|
htmlentities (~> 4.3.4)
|
@@ -122,11 +123,10 @@ GEM
|
|
122
123
|
isodoc (~> 1.0.0)
|
123
124
|
metanorma-standoc (~> 1.3.0)
|
124
125
|
mime-types
|
125
|
-
nokogiri
|
126
126
|
ruby-jing
|
127
127
|
thread_safe
|
128
128
|
uuidtools
|
129
|
-
metanorma-nist (0.2.
|
129
|
+
metanorma-nist (0.2.2)
|
130
130
|
asciidoctor (~> 1.5.7)
|
131
131
|
htmlentities (~> 4.3.4)
|
132
132
|
isodoc (~> 1.0.0)
|
@@ -134,14 +134,14 @@ GEM
|
|
134
134
|
ruby-jing
|
135
135
|
twitter_cldr
|
136
136
|
tzinfo-data
|
137
|
-
metanorma-ogc (0.2.
|
137
|
+
metanorma-ogc (0.2.2)
|
138
138
|
asciidoctor (~> 1.5.7)
|
139
139
|
htmlentities (~> 4.3.4)
|
140
140
|
iso-639
|
141
141
|
isodoc (~> 1.0.0)
|
142
142
|
metanorma-standoc (~> 1.3.0)
|
143
143
|
ruby-jing
|
144
|
-
metanorma-standoc (1.3.
|
144
|
+
metanorma-standoc (1.3.2)
|
145
145
|
asciidoctor (~> 1.5.7)
|
146
146
|
concurrent-ruby
|
147
147
|
html2doc (~> 0.8.11)
|
@@ -152,7 +152,7 @@ GEM
|
|
152
152
|
ruby-jing
|
153
153
|
sterile (~> 1.0.14)
|
154
154
|
unicode2latex (~> 0.0.1)
|
155
|
-
metanorma-unece (0.2.
|
155
|
+
metanorma-unece (0.2.2)
|
156
156
|
asciidoctor (~> 1.5.7)
|
157
157
|
htmlentities (~> 4.3.4)
|
158
158
|
iso-639
|
@@ -161,50 +161,54 @@ GEM
|
|
161
161
|
roman-numerals
|
162
162
|
ruby-jing
|
163
163
|
twitter_cldr
|
164
|
-
mime-types (3.
|
164
|
+
mime-types (3.3)
|
165
165
|
mime-types-data (~> 3.2015)
|
166
|
-
mime-types-data (3.2019.
|
166
|
+
mime-types-data (3.2019.0904)
|
167
167
|
mini_portile2 (2.4.0)
|
168
168
|
mixlib-shellout (2.4.4)
|
169
|
+
multipart-post (2.1.1)
|
169
170
|
nokogiri (1.10.4)
|
170
171
|
mini_portile2 (~> 2.4.0)
|
171
172
|
optout (0.0.2)
|
172
|
-
public_suffix (
|
173
|
+
public_suffix (4.0.1)
|
173
174
|
rake (12.3.3)
|
174
|
-
relaton (0.5.
|
175
|
-
algoliasearch
|
175
|
+
relaton (0.5.4)
|
176
176
|
relaton-gb (~> 0.6.0)
|
177
177
|
relaton-iec (~> 0.4.0)
|
178
178
|
relaton-ietf (~> 0.6.0)
|
179
179
|
relaton-iso (~> 0.6.0)
|
180
180
|
relaton-itu (~> 0.3.0)
|
181
181
|
relaton-nist (~> 0.3.0)
|
182
|
-
|
182
|
+
relaton-ogc (~> 0.1.0)
|
183
|
+
relaton-bib (0.3.6)
|
183
184
|
addressable
|
184
|
-
nokogiri
|
185
|
-
relaton-gb (0.6.
|
185
|
+
nokogiri
|
186
|
+
relaton-gb (0.6.3)
|
186
187
|
cnccs (~> 0.1.1)
|
187
188
|
gb-agencies (~> 0.0.1)
|
188
189
|
relaton-iso-bib (~> 0.3.0)
|
189
|
-
relaton-iec (0.4.
|
190
|
+
relaton-iec (0.4.4)
|
190
191
|
addressable
|
191
192
|
relaton-iso-bib (~> 0.3.0)
|
192
|
-
relaton-ietf (0.6.
|
193
|
+
relaton-ietf (0.6.4)
|
193
194
|
relaton-bib (~> 0.3.0)
|
194
195
|
relaton-iev (0.1.1)
|
195
196
|
relaton (~> 0.5.0)
|
196
|
-
relaton-iso (0.6.
|
197
|
+
relaton-iso (0.6.5)
|
197
198
|
relaton-iec (~> 0.4.0)
|
198
199
|
relaton-iso-bib (~> 0.3.0)
|
199
|
-
relaton-iso-bib (0.3.
|
200
|
+
relaton-iso-bib (0.3.5)
|
200
201
|
isoics (~> 0.1.6)
|
201
202
|
relaton-bib (~> 0.3.0)
|
202
203
|
ruby_deep_clone (~> 0.8.0)
|
203
|
-
relaton-itu (0.3.
|
204
|
+
relaton-itu (0.3.3)
|
204
205
|
relaton-iso-bib (~> 0.3.0)
|
205
|
-
relaton-nist (0.3.
|
206
|
+
relaton-nist (0.3.4)
|
206
207
|
relaton-bib (~> 0.3.0)
|
207
208
|
rubyzip
|
209
|
+
relaton-ogc (0.1.0)
|
210
|
+
faraday
|
211
|
+
relaton-iso-bib (~> 0.3.0)
|
208
212
|
roman-numerals (0.3.0)
|
209
213
|
rspec (3.8.0)
|
210
214
|
rspec-core (~> 3.8.0)
|
@@ -229,20 +233,20 @@ GEM
|
|
229
233
|
ruby-jing (0.0.1)
|
230
234
|
optout (>= 0.0.2)
|
231
235
|
ruby_deep_clone (0.8.0)
|
232
|
-
rubyzip (1.2.
|
233
|
-
sassc (2.
|
236
|
+
rubyzip (1.2.4)
|
237
|
+
sassc (2.2.0)
|
234
238
|
ffi (~> 1.9)
|
235
239
|
sterile (1.0.14)
|
236
240
|
nokogiri
|
237
241
|
thor (0.20.3)
|
238
242
|
thread_safe (0.3.6)
|
239
|
-
twitter_cldr (4.4.
|
243
|
+
twitter_cldr (4.4.5)
|
240
244
|
camertron-eprun
|
241
245
|
cldr-plurals-runtime-rb (~> 1.0)
|
242
246
|
tzinfo
|
243
247
|
tzinfo (2.0.0)
|
244
248
|
concurrent-ruby (~> 1.0)
|
245
|
-
tzinfo-data (1.2019.
|
249
|
+
tzinfo-data (1.2019.3)
|
246
250
|
tzinfo (>= 1.0.0)
|
247
251
|
unicode2latex (0.0.2)
|
248
252
|
uuidtools (2.1.5)
|
data/a
CHANGED
@@ -1 +1 @@
|
|
1
|
-
git add
|
1
|
+
git add lib/metanorma/cli/version.rb metanorma-cli.gemspec
|
data/lib/metanorma/cli.rb
CHANGED
@@ -45,13 +45,11 @@ module Metanorma
|
|
45
45
|
end
|
46
46
|
|
47
47
|
desc "version", "Version of the code"
|
48
|
-
option :type, aliases: "-t", desc: "Type of standard to generate"
|
48
|
+
option :type, aliases: "-t", required: false, desc: "Type of standard to generate"
|
49
49
|
option :format, aliases: "-f", default: :asciidoc, desc: "Format of source file: eg. asciidoc"
|
50
50
|
|
51
51
|
def version
|
52
|
-
|
53
|
-
backend_version(options[:type]) || supported_backends
|
54
|
-
end
|
52
|
+
backend_version(options[:type]) || supported_backends
|
55
53
|
rescue NameError => error
|
56
54
|
UI.say(error)
|
57
55
|
end
|
@@ -100,6 +98,9 @@ module Metanorma
|
|
100
98
|
end
|
101
99
|
|
102
100
|
def supported_backends
|
101
|
+
UI.say("Metanorma #{Metanorma::VERSION}")
|
102
|
+
UI.say("Metanorma::Cli #{VERSION}")
|
103
|
+
|
103
104
|
Metanorma::Cli.load_flavors
|
104
105
|
|
105
106
|
Metanorma::Registry.instance.processors.map do |type, processor|
|
data/metanorma-cli.gemspec
CHANGED
@@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_runtime_dependency "metanorma-iso", "~> 1.3.0"
|
36
36
|
spec.add_runtime_dependency 'metanorma-ietf', "~> 1.0.1"
|
37
37
|
spec.add_runtime_dependency 'metanorma-gb', "~> 1.3.0"
|
38
|
+
spec.add_runtime_dependency 'metanorma-iec', "~> 0.0.5"
|
38
39
|
spec.add_runtime_dependency 'metanorma-csd', "~> 1.3.0"
|
39
40
|
spec.add_runtime_dependency 'metanorma-csand', "~> 1.3.0"
|
40
41
|
#spec.add_runtime_dependency 'metanorma-rsd', "~> 1.1.0"
|
@@ -48,6 +49,6 @@ Gem::Specification.new do |spec|
|
|
48
49
|
spec.add_runtime_dependency 'metanorma-itu', "~> 0.2.0"
|
49
50
|
spec.add_runtime_dependency 'isodoc', "~> 1.0.0"
|
50
51
|
spec.add_runtime_dependency 'metanorma', "~> 0.3.9"
|
51
|
-
spec.add_runtime_dependency 'nokogiri', ">= 1"
|
52
|
+
#spec.add_runtime_dependency 'nokogiri', ">= 1"
|
52
53
|
spec.add_runtime_dependency "git", "~> 1.5"
|
53
54
|
end
|
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.2.
|
4
|
+
version: 1.2.6
|
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-
|
11
|
+
date: 2019-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 1.3.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: metanorma-iec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.0.5
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.0.5
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: metanorma-csd
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -318,20 +332,6 @@ dependencies:
|
|
318
332
|
- - "~>"
|
319
333
|
- !ruby/object:Gem::Version
|
320
334
|
version: 0.3.9
|
321
|
-
- !ruby/object:Gem::Dependency
|
322
|
-
name: nokogiri
|
323
|
-
requirement: !ruby/object:Gem::Requirement
|
324
|
-
requirements:
|
325
|
-
- - ">="
|
326
|
-
- !ruby/object:Gem::Version
|
327
|
-
version: '1'
|
328
|
-
type: :runtime
|
329
|
-
prerelease: false
|
330
|
-
version_requirements: !ruby/object:Gem::Requirement
|
331
|
-
requirements:
|
332
|
-
- - ">="
|
333
|
-
- !ruby/object:Gem::Version
|
334
|
-
version: '1'
|
335
335
|
- !ruby/object:Gem::Dependency
|
336
336
|
name: git
|
337
337
|
requirement: !ruby/object:Gem::Requirement
|