metanorma-cli 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '089f63693166f74ba4c49d9d562c20cc4d79a012da3109a5483806ef2fcc43ed'
4
- data.tar.gz: ea4809e6d1b1382565a83eca79ea12806f27800e796244369a16e820bcc2a9a9
3
+ metadata.gz: 5c041e39b531eee6544e00cc8d10ac85222834952eda4d15c1d0b875b41a4e33
4
+ data.tar.gz: b188638a0c28f821541da2d64b808eda9b0dcd10e3b0788a0372bcd18f4ed8b3
5
5
  SHA512:
6
- metadata.gz: 81adac4e4e3ec9efc50f300229cffb185723fdf1fdaf6ca4719fc64b9435a8e1457ebda92a6b83fe69f935821b956541820e2216bdd0180edde6cdba7e9a72ce
7
- data.tar.gz: 87f31a6be12ee8e2771ef8f6f261c54707016bebf266c3b3c195085972d8e3032ef6bcce3b00d640778919876ac51905dbf42c2b6a3647d7283ec75008a24b05
6
+ metadata.gz: 99b4be894e6f0bb8fe1313ebf75ddcee64a64d2cabf673189a15264527aa20916c21b5b8c1e2ec6ea10d5aafe4f06a54bc7d28834dee52917b890848df923c4d
7
+ data.tar.gz: f07152f48aaa984590ffd846a99376f791e4f35af49c3e55cb578a0200c1a6f634f118c24e5d6b234c7b1b22ad26ea6c7c8f1c4288541a1c1e604439cb90c6b6
@@ -51,7 +51,7 @@ GEM
51
51
  ffi-compiler2 (2.0.0)
52
52
  ffi (>= 1.0.0)
53
53
  rake
54
- fontist (1.0.0)
54
+ fontist (1.1.0)
55
55
  down (~> 5.0)
56
56
  libmspack (~> 0.1.0)
57
57
  rubyzip (~> 2.3.0)
@@ -74,7 +74,7 @@ GEM
74
74
  image_size (2.0.2)
75
75
  iso-639 (0.3.5)
76
76
  iso639 (1.3.2)
77
- isodoc (1.1.1)
77
+ isodoc (1.1.2)
78
78
  asciimath
79
79
  html2doc (~> 1.0.0)
80
80
  htmlentities (~> 4.3.4)
@@ -83,7 +83,6 @@ GEM
83
83
  nokogiri (>= 1.10.4)
84
84
  rake (~> 12.0)
85
85
  roman-numerals
86
- sassc (~> 2.4.0)
87
86
  thread_safe
88
87
  uuidtools
89
88
  isoics (0.1.8)
@@ -100,10 +99,10 @@ GEM
100
99
  htmlentities
101
100
  mn2pdf (~> 1)
102
101
  nokogiri
103
- metanorma-cc (1.4.1)
102
+ metanorma-cc (1.4.2)
104
103
  isodoc (~> 1.1.0)
105
104
  metanorma-standoc (~> 1.4.0)
106
- metanorma-csa (1.5.1)
105
+ metanorma-csa (1.5.2)
107
106
  htmlentities (~> 4.3.4)
108
107
  image_size
109
108
  isodoc (~> 1.1.0)
@@ -112,7 +111,7 @@ GEM
112
111
  ruby-jing
113
112
  thread_safe
114
113
  uuidtools
115
- metanorma-gb (1.4.1)
114
+ metanorma-gb (1.4.2)
116
115
  gb-agencies (~> 0.0.4)
117
116
  htmlentities (~> 4.3.4)
118
117
  isodoc (~> 1.1.0)
@@ -123,41 +122,40 @@ GEM
123
122
  isodoc (~> 1.1.0)
124
123
  metanorma-standoc (~> 1.4.0)
125
124
  ruby-jing
126
- metanorma-iec (1.1.1)
125
+ metanorma-iec (1.1.2)
127
126
  isodoc (~> 1.1.0)
128
127
  metanorma-iso (~> 1.4.0)
129
128
  ruby-jing
130
- metanorma-ietf (2.1.2)
129
+ metanorma-ietf (2.1.3)
131
130
  isodoc (~> 1.1.0)
132
131
  mathml2asciimath
133
132
  metanorma-standoc (~> 1.4.0)
134
- metanorma-iho (0.1.0)
133
+ metanorma-iho (0.1.1)
135
134
  htmlentities (~> 4.3.4)
136
135
  isodoc (~> 1.1.0)
137
136
  metanorma-generic (~> 1.5.0)
138
137
  metanorma-standoc (~> 1.4.0)
139
- metanorma-iso (1.4.1)
138
+ metanorma-iso (1.4.2)
140
139
  isodoc (~> 1.1.0)
141
140
  metanorma-standoc (~> 1.4.0)
142
141
  mn2sts (~> 1.2.0)
143
142
  ruby-jing
144
143
  tokenizer (~> 0.3.0)
145
144
  twitter_cldr
146
- metanorma-itu (1.1.1)
145
+ metanorma-itu (1.1.2)
147
146
  htmlentities (~> 4.3.4)
148
147
  isodoc (~> 1.1.0)
149
148
  metanorma-standoc (~> 1.4.0)
150
149
  ruby-jing
151
- metanorma-m3aawg (1.4.1)
150
+ metanorma-m3aawg (1.4.2)
152
151
  htmlentities (~> 4.3.4)
153
152
  image_size
154
- isodoc (~> 1.1.0)
155
153
  metanorma-standoc (~> 1.4.0)
156
154
  mime-types
157
155
  ruby-jing
158
156
  thread_safe
159
157
  uuidtools
160
- metanorma-nist (1.1.1)
158
+ metanorma-nist (1.1.2)
161
159
  htmlentities (~> 4.3.4)
162
160
  iso-639
163
161
  isodoc (~> 1.1.0)
@@ -165,13 +163,13 @@ GEM
165
163
  ruby-jing
166
164
  twitter_cldr
167
165
  tzinfo-data
168
- metanorma-ogc (1.1.1)
166
+ metanorma-ogc (1.1.2)
169
167
  htmlentities (~> 4.3.4)
170
168
  iso-639
171
169
  isodoc (~> 1.1.0)
172
170
  metanorma-standoc (~> 1.4.0)
173
171
  ruby-jing
174
- metanorma-standoc (1.4.3)
172
+ metanorma-standoc (1.4.4)
175
173
  asciidoctor (~> 2.0.0)
176
174
  concurrent-ruby
177
175
  iev (~> 0.2.1)
@@ -183,7 +181,7 @@ GEM
183
181
  ruby-jing
184
182
  sterile (~> 1.0.14)
185
183
  unicode2latex (~> 0.0.1)
186
- metanorma-un (0.4.1)
184
+ metanorma-un (0.4.2)
187
185
  htmlentities (~> 4.3.4)
188
186
  iso-639
189
187
  isodoc (~> 1.1.0)
@@ -246,7 +244,7 @@ GEM
246
244
  relaton-ieee (1.2.0)
247
245
  faraday (~> 1.0.0)
248
246
  relaton-bib (~> 1.2.0)
249
- relaton-ietf (1.2.0)
247
+ relaton-ietf (1.2.1)
250
248
  relaton-bib (~> 1.2.0)
251
249
  relaton-iev (1.0.0)
252
250
  relaton (~> 1)
@@ -332,6 +330,7 @@ DEPENDENCIES
332
330
  rspec (~> 3.0)
333
331
  rspec-command (~> 1.0.3)
334
332
  rspec-core (~> 3.4)
333
+ sassc (= 2.4.0)
335
334
 
336
335
  BUNDLED WITH
337
336
  2.1.4
data/a CHANGED
@@ -1,5 +1,3 @@
1
- git add spec/acceptance/list_extensions_spec.rb spec/acceptance/version_spec.rb
2
-
3
-
1
+ git add lib/metanorma/cli/command.rb metanorma-cli.gemspec spec/acceptance/setup_spec.rb
4
2
 
5
3
 
@@ -54,6 +54,7 @@ module Metanorma
54
54
  option :format, aliases: "-f", default: :asciidoc, desc: "Format of source file: eg. asciidoc"
55
55
 
56
56
  def version
57
+ Metanorma::Cli.load_flavors
57
58
  backend_version(options[:type]) || supported_backends
58
59
  rescue NameError => error
59
60
  UI.say(error)
@@ -120,7 +121,7 @@ module Metanorma
120
121
  end
121
122
 
122
123
  def find_backend(type)
123
- require "metanorma-#{type}"
124
+ load_flavours(type)
124
125
  Metanorma::Registry.instance.find_processor(type&.to_sym)
125
126
  end
126
127
 
@@ -161,6 +162,13 @@ module Metanorma
161
162
  end
162
163
  end.compact.flatten.uniq
163
164
  end
165
+
166
+ def load_flavours(type)
167
+ Metanorma::Cli.load_flavors
168
+ unless Metanorma::Registry.instance.find_processor(type&.to_sym)
169
+ require "metanorma-#{type}"
170
+ end
171
+ end
164
172
  end
165
173
  end
166
174
  end
@@ -69,19 +69,24 @@ module Metanorma
69
69
 
70
70
  def message(license)
71
71
  <<~MSG
72
- Metanorma has detected that you do not have the necessary fonts installed
73
- for PDF generation. The generated PDF will use generic fonts that may not
74
- resemble the desired styling. Metanorma can download these files for you
75
- if you accept the font licensing conditions for the font #{font_name}.
72
+ FONT LICENSE ACCEPTANCE REQUIRED:
76
73
 
77
- ----------
74
+ Metanorma has detected that you do not have the necessary fonts installed
75
+ for PDF generation. Without those fonts, the generated PDF will use
76
+ generic fonts that may not resemble the desired styling.
78
77
 
79
- #{license}
78
+ Metanorma can download these files for you if you accept the font
79
+ licensing conditions for the font "#{font_name}".
80
80
 
81
- ----------
81
+ FONT LICENSE BEGIN ("#{font_name}")
82
+ -----------------------------------------------------------------------
83
+ #{license}
84
+ -----------------------------------------------------------------------
85
+ FONT LICENSE END ("#{font_name}")
82
86
 
83
- If you want Metanorma to download these fonts for you and indicate your
84
- acceptance of the font licenses, type "Yes" / "No":
87
+ Do you accept all presented font licenses, and want Metanorma to
88
+ download these fonts for you?
89
+ => TYPE "Yes" or "No":
85
90
  MSG
86
91
  end
87
92
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cli
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
4
4
  end
5
5
  end
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.required_ruby_version = '>= 2.4.0'
25
25
 
26
26
  spec.add_development_dependency "pry"
27
+ spec.add_development_dependency "sassc", "2.4.0"
27
28
  spec.add_development_dependency "rake", "~> 12.0"
28
29
  spec.add_development_dependency "rspec", "~> 3.0"
29
30
  spec.add_development_dependency "byebug", "~> 10.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.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-10 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sassc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.4.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.4.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement