adiwg-mdtranslator 2.18.0rc8 → 2.18.0

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: 6aa9d9a369f120417e2585914c68922b28c31463c8ade4244708ef12a0aa4987
4
- data.tar.gz: e4a9355ce59d4db79806f1ca629694594180d08a9139b92cdb2e07abd64bee07
3
+ metadata.gz: e11b1135dba3ccc3f0ca5931f7079bdde0c15053c9fc74b149ac4fed02635053
4
+ data.tar.gz: 24088487d432f4fe3a682f34ac06e4352211ae1c129b22a71f4f85daacb59880
5
5
  SHA512:
6
- metadata.gz: 0e04b3ae89041a439a12562572fffde7cea1a00d397f3e51d778059f8953d6e7fe30f491b7d23bdc2437a9c3b1bb4a4d307744b16f7d45af249816a0564ccdf0
7
- data.tar.gz: 3d43d5238ba9e1766b21c34e522b74d781730f717cafad2ab30b9b96e77a2b91e744a2d4ba31662cc420132c3d133e668d9560e1aacb2e8d86a67a16214c7d10
6
+ metadata.gz: a323db2df0a6ac2dc269e4c0ff72373393837aa05575f2c628333a121e9a9abf55eab7224aee976cea34f591ab89712d2785aeb937e02b372f25f9daf5104b63
7
+ data.tar.gz: c06b85a4c35053c332dde006f6b5d518029448ec7749b11713c9195cdc512c3677fc17706512ca0ce01a54ad28d1b48566775bf61d92874661fd7c1cca53d940
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_runtime_dependency "thor", "~> 0.19"
35
35
  spec.add_runtime_dependency "uuidtools", "~> 2.1"
36
36
  spec.add_runtime_dependency "json-schema", "~> 2.7"
37
- spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.8.0.pre.beta8"
37
+ spec.add_runtime_dependency "adiwg-mdjson_schemas", ">=2.8"
38
38
  spec.add_runtime_dependency "adiwg-mdcodes", "~> 2.8"
39
39
  spec.add_runtime_dependency "jbuilder", "~> 2.5"
40
40
  spec.add_runtime_dependency "kramdown", "~> 1.13"
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.18.0rc8"
112
+ VERSION = "2.18.0"
113
113
  end
114
114
  end
115
115
 
@@ -11,6 +11,19 @@ module ADIWG
11
11
 
12
12
  def writeHtml(hDataQuality)
13
13
  citationClass = Html_Citation.new(@html)
14
+ scopeClass = Html_Scope.new(@html)
15
+
16
+ unless hDataQuality[:scope].nil? || hDataQuality[:scope].empty?
17
+ @html.section(class: 'block') do
18
+ @html.details do
19
+ @html.summary('Scope', {'class' => 'h5'})
20
+ @html.section(class: 'block') do
21
+ scopeClass.writeHtml(hDataQuality[:scope])
22
+ end
23
+ end
24
+ end
25
+ end
26
+
14
27
 
15
28
  unless hDataQuality[:standaloneQualityReport].nil? ||
16
29
  ( hDataQuality[:standaloneQualityReport][:abstract].nil? &&
@@ -32,15 +32,17 @@ module ADIWG
32
32
  @xml.tag!('mdq:standaloneQualityReport') do
33
33
  @xml.tag!('mdq:DQ_StandaloneQualityReportInformation') do
34
34
  # reportReference
35
-
36
- @xml.tag!('mdq:reportReference') do
37
- citationClass.writeXML(hDataQuality[:standaloneQualityReport][:reportReference])
35
+ unless hDataQuality[:standaloneQualityReport][:reportReference].nil? || hDataQuality[:standaloneQualityReport][:reportReference].empty?
36
+ @xml.tag!('mdq:reportReference') do
37
+ citationClass.writeXML(hDataQuality[:standaloneQualityReport][:reportReference])
38
+ end
38
39
  end
39
40
 
40
-
41
41
  # abstract
42
- @xml.tag!('mdq:abstract') do
43
- @xml.tag!('gco:CharacterString', hDataQuality[:standaloneQualityReport][:abstract])
42
+ unless hDataQuality[:standaloneQualityReport][:abstract].nil? || hDataQuality[:standaloneQualityReport][:abstract].empty?
43
+ @xml.tag!('mdq:abstract') do
44
+ @xml.tag!('gco:CharacterString', hDataQuality[:standaloneQualityReport][:abstract])
45
+ end
44
46
  end
45
47
  end
46
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdtranslator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.18.0rc8
4
+ version: 2.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith
@@ -127,16 +127,16 @@ dependencies:
127
127
  name: adiwg-mdjson_schemas
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - '='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 2.8.0.pre.beta8
132
+ version: '2.8'
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - '='
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 2.8.0.pre.beta8
139
+ version: '2.8'
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: adiwg-mdcodes
142
142
  requirement: !ruby/object:Gem::Requirement
@@ -998,9 +998,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
998
998
  version: '2.3'
999
999
  required_rubygems_version: !ruby/object:Gem::Requirement
1000
1000
  requirements:
1001
- - - ">"
1001
+ - - ">="
1002
1002
  - !ruby/object:Gem::Version
1003
- version: 1.3.1
1003
+ version: '0'
1004
1004
  requirements: []
1005
1005
  rubygems_version: 3.1.6
1006
1006
  signing_key: