metanorma-nist 1.2.11 → 1.2.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,11 @@ module IsoDoc
14
14
 
15
15
  def pdf_stylesheet(docxml)
16
16
  series = docxml&.at(ns("//bibdata/series/abbreviation"))&.text
17
- series == "NIST CSWP" ? "nist.cswp.xsl" : "nist.sp.xsl"
17
+ case series
18
+ when "NIST CSWP" then "nist.cswp.xsl"
19
+ when "NIST CSTS" then "nist.csts.xsl"
20
+ else "nist.sp.xsl"
21
+ end
18
22
  end
19
23
  end
20
24
  end
@@ -37,10 +37,8 @@ module IsoDoc
37
37
  end
38
38
 
39
39
  def default_fonts(options)
40
- { bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' :
41
- '"Times New Roman",serif'),
42
- headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' :
43
- '"Arial",sans-serif'),
40
+ { bodyfont: '"Times New Roman",serif',
41
+ headerfont: '"Arial",sans-serif',
44
42
  monospacefont: '"Courier New",monospace',
45
43
  normalfontsize: "12.0pt",
46
44
  footnotefontsize: "10.0pt",
@@ -24,8 +24,6 @@ module Metanorma
24
24
  "Cambria" => nil,
25
25
  "Courier" => nil,
26
26
  "Courier New" => nil,
27
- "SimSun" => nil,
28
- "SimHei" => nil,
29
27
  "STIX Two Math" => nil,
30
28
  "Times New Roman" => nil,
31
29
  }
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module NIST
3
- VERSION = "1.2.11"
3
+ VERSION = "1.2.16"
4
4
  end
5
5
  end
@@ -30,8 +30,8 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency "iso-639"
31
31
  spec.add_dependency "tzinfo-data" # we need this for windows only
32
32
 
33
- spec.add_dependency "metanorma-standoc", "~> 1.7.0"
34
- spec.add_dependency "isodoc", "~> 1.4.2"
33
+ spec.add_dependency "metanorma-standoc", "~> 1.8.2"
34
+ spec.add_dependency "isodoc", "~> 1.5.0"
35
35
  #spec.add_dependency "relaton-nist", "~> 0.3.0"
36
36
 
37
37
  spec.add_development_dependency "byebug", "~> 9.1"
@@ -39,9 +39,9 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
40
40
  spec.add_development_dependency "guard", "~> 2.14"
41
41
  spec.add_development_dependency "guard-rspec", "~> 4.7"
42
- spec.add_development_dependency "rake", "~> 12.0"
42
+ spec.add_development_dependency "rake", "~> 13.0"
43
43
  spec.add_development_dependency "rspec", "~> 3.6"
44
- spec.add_development_dependency "rubocop", "= 0.54.0"
44
+ spec.add_development_dependency "rubocop", "~> 1.5.2"
45
45
  spec.add_development_dependency "simplecov", "~> 0.15"
46
46
  spec.add_development_dependency "timecop", "~> 0.9"
47
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-nist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.11
4
+ version: 1.2.16
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-01-11 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.7.0
89
+ version: 1.8.2
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.7.0
96
+ version: 1.8.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: isodoc
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.4.2
103
+ version: 1.5.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.4.2
110
+ version: 1.5.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: byebug
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '12.0'
187
+ version: '13.0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '12.0'
194
+ version: '13.0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rspec
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -210,16 +210,16 @@ dependencies:
210
210
  name: rubocop
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - '='
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 0.54.0
215
+ version: 1.5.2
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - '='
220
+ - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 0.54.0
222
+ version: 1.5.2
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: simplecov
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -259,6 +259,7 @@ extra_rdoc_files: []
259
259
  files:
260
260
  - ".github/workflows/rake.yml"
261
261
  - ".github/workflows/release.yml"
262
+ - ".gitignore"
262
263
  - ".hound.yml"
263
264
  - ".rubocop.yml"
264
265
  - CODE_OF_CONDUCT.md
@@ -317,6 +318,7 @@ files:
317
318
  - lib/isodoc/nist/init.rb
318
319
  - lib/isodoc/nist/metadata.rb
319
320
  - lib/isodoc/nist/metadata_id.rb
321
+ - lib/isodoc/nist/nist.csts.xsl
320
322
  - lib/isodoc/nist/nist.cswp.xsl
321
323
  - lib/isodoc/nist/nist.sp.xsl
322
324
  - lib/isodoc/nist/pdf_convert.rb
@@ -353,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
355
  - !ruby/object:Gem::Version
354
356
  version: '0'
355
357
  requirements: []
356
- rubygems_version: 3.0.3
358
+ rubygems_version: 3.1.4
357
359
  signing_key:
358
360
  specification_version: 4
359
361
  summary: Metanorma NIST gem.