adiwg-mdtranslator 2.18.0rc7 → 2.18.0rc8

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: 591d2d7b0dc6725f4292ed10ee78f9ca89997589075359bf0fa08d8a93a107af
4
- data.tar.gz: f36fdd3179dd189530aea7f26007899a5f0397c4399ff41e31cc207abc6e9ccf
3
+ metadata.gz: 6aa9d9a369f120417e2585914c68922b28c31463c8ade4244708ef12a0aa4987
4
+ data.tar.gz: e4a9355ce59d4db79806f1ca629694594180d08a9139b92cdb2e07abd64bee07
5
5
  SHA512:
6
- metadata.gz: 2f47e08dd56ccd40c5e32041bce1a2a76f3919225d0f355e842552d86f421e2c06f6352a85e2312bc71de2d6e692ca6a3bd2cb3552d01810f8a64b774161be0a
7
- data.tar.gz: d5bd3f4e3f8283514fe939d974e3c3008cdb248342aad13358cc7d0d567297b7f2b797f3cde07c3a3f4a8b85907b11c251b40ac01d6bcd6c3f3ca74820c57a20
6
+ metadata.gz: 0e04b3ae89041a439a12562572fffde7cea1a00d397f3e51d778059f8953d6e7fe30f491b7d23bdc2437a9c3b1bb4a4d307744b16f7d45af249816a0564ccdf0
7
+ data.tar.gz: 3d43d5238ba9e1766b21c34e522b74d781730f717cafad2ab30b9b96e77a2b91e744a2d4ba31662cc420132c3d133e668d9560e1aacb2e8d86a67a16214c7d10
@@ -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.beta6"
37
+ spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.8.0.pre.beta8"
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"
@@ -17,6 +17,13 @@ module ADIWG
17
17
 
18
18
  def self.unpack(xDataQual, hMetadata, hDataQuality, hResponseObj)
19
19
 
20
+ hDataQuality[:scope] = {scopeCode: 'tabularDataset'}
21
+ hDataQuality[:systemIdentifier] = {
22
+ uid: UUIDTools::UUID.random_create.to_s,
23
+ label: "CSDGM Data Quality"
24
+ }
25
+
26
+
20
27
  # data quality 2.1 (attracc) - attribute accuracy
21
28
  xAccuracy = xDataQual.xpath('./attracc')
22
29
  accuracyReport = xAccuracy.xpath('./attraccr').text
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.18.0rc7"
112
+ VERSION = "2.18.0rc8"
113
113
  end
114
114
  end
115
115
 
@@ -78,13 +78,17 @@ module ADIWG
78
78
  @xml.tag!('mdq:standaloneQualityReport') do
79
79
  @xml.tag!('mdq:DQ_StandaloneQualityReportInformation') do
80
80
  # reportReference
81
- @xml.tag!('mdq:reportReference') do
82
- citationClass.writeXML(hDataQuality[:standaloneQualityReport][:reportReference])
81
+ unless hDataQuality[:standaloneQualityReport][:reportReference].nil? || hDataQuality[:standaloneQualityReport][:reportReference].empty?
82
+ @xml.tag!('mdq:reportReference') do
83
+ citationClass.writeXML(hDataQuality[:standaloneQualityReport][:reportReference])
84
+ end
83
85
  end
84
86
 
85
- # abstract
86
- @xml.tag!('mdq:abstract') do
87
- @xml.tag!('gco:CharacterString', hDataQuality[:standaloneQualityReport][:abstract])
87
+ unless hDataQuality[:standaloneQualityReport][:abstract].nil? || hDataQuality[:standaloneQualityReport][:abstract].empty?
88
+ # abstract
89
+ @xml.tag!('mdq:abstract') do
90
+ @xml.tag!('gco:CharacterString', hDataQuality[:standaloneQualityReport][:abstract])
91
+ end
88
92
  end
89
93
  end
90
94
  end
@@ -16,6 +16,7 @@ module ADIWG
16
16
  def self.build(hDataQuality)
17
17
  Jbuilder.new do |json|
18
18
  json.scope Scope.build(hDataQuality[:scope])
19
+ json.systemIdentifier hDataQuality[:systemIdentifier]
19
20
  json.standaloneQualityReport hDataQuality[:standaloneQualityReport]
20
21
  json.report @Namespace.json_map(hDataQuality[:report], DataQualityReport)
21
22
  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.0rc7
4
+ version: 2.18.0rc8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-02-02 00:00:00.000000000 Z
12
+ date: 2023-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -129,14 +129,14 @@ dependencies:
129
129
  requirements:
130
130
  - - '='
131
131
  - !ruby/object:Gem::Version
132
- version: 2.8.0.pre.beta6
132
+ version: 2.8.0.pre.beta8
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.beta6
139
+ version: 2.8.0.pre.beta8
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: adiwg-mdcodes
142
142
  requirement: !ruby/object:Gem::Requirement