adiwg-mdtranslator 2.19.0.pre.beta.16 → 2.19.0.pre.beta.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_conformanceResult.rb +5 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_coverageResult.rb +4 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_descriptiveResult.rb +4 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules/module_quantitativeResult.rb +4 -0
- data/lib/adiwg/mdtranslator/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_conformanceResult.rb +6 -5
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_coverageResult.rb +1 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_descriptiveResult.rb +1 -0
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_quantitativeResult.rb +6 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4df93ff3aab931551bd41f2d2e78c607cc4f3913a5d2c602ed42ebd8260ad6cc
|
4
|
+
data.tar.gz: 508f84df0f6ddf10db9cae6743d219f5435194edac5e0e5e769835b7ed546f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c76378263bab7113cda3093ad9084eeb3585baf5298a2b1683f9c0bc50e2c982ed5fd18e5bb7454707be831ea968adecdb26d3cbff29d9237e962b3d49d2d93d
|
7
|
+
data.tar.gz: 3bf9539dd18ee0aaa705a7a4e17c5eeb6ccaeff89ce6fd39bab54199f9fa7d3df11c33e2647a95667cd54185a4ff4e3b6737cd591b77685e5c09c2fe1a5616f9
|
data/Gemfile.lock
CHANGED
@@ -23,6 +23,11 @@ module ADIWG
|
|
23
23
|
intConformanceResult[:scope] = Scope.unpack(hConformanceResult['scope'], responseObj)
|
24
24
|
end
|
25
25
|
|
26
|
+
# name
|
27
|
+
if hConformanceResult.has_key?('name')
|
28
|
+
intConformanceResult[:name] = hConformanceResult['name']
|
29
|
+
end
|
30
|
+
|
26
31
|
#specification
|
27
32
|
if hConformanceResult.has_key?('specification')
|
28
33
|
intConformanceResult[:specification] = Citation.unpack(hConformanceResult['specification'], responseObj)
|
@@ -26,6 +26,10 @@ module ADIWG
|
|
26
26
|
intResult[:scope] = Scope.unpack(hResult['scope'], responseObj)
|
27
27
|
end
|
28
28
|
|
29
|
+
# name
|
30
|
+
if hResult.has_key?('name')
|
31
|
+
intResult[:name] = hResult['name']
|
32
|
+
end
|
29
33
|
|
30
34
|
# spatialRepresentationType
|
31
35
|
if hResult.has_key?('spatialRepresentationType')
|
@@ -25,6 +25,10 @@ module ADIWG
|
|
25
25
|
intResult[:scope] = Scope.unpack(hResult['scope'], responseObj)
|
26
26
|
end
|
27
27
|
|
28
|
+
if hResult.has_key?('name')
|
29
|
+
intResult[:name] = hResult['name']
|
30
|
+
end
|
31
|
+
|
28
32
|
if hResult.has_key?('statement')
|
29
33
|
intResult[:statement] = hResult['statement']
|
30
34
|
end
|
@@ -10,11 +10,12 @@ module ADIWG
|
|
10
10
|
module ConformanceResult
|
11
11
|
def self.build(hConformanceResult)
|
12
12
|
Jbuilder.new do |json|
|
13
|
-
json.dateTime hConformanceResult[:dateTime]
|
14
|
-
json.scope Scope.build(hConformanceResult[:scope])
|
15
|
-
json.
|
16
|
-
json.
|
17
|
-
json.
|
13
|
+
json.dateTime hConformanceResult[:dateTime] unless hConformanceResult[:dateTime].nil?
|
14
|
+
json.scope Scope.build(hConformanceResult[:scope]) unless hConformanceResult[:scope].empty?
|
15
|
+
json.name hConformanceResult[:name] unless hConformanceResult[:name].nil?
|
16
|
+
json.specification Citation.build(hConformanceResult[:specification]) unless hConformanceResult[:specification].empty?
|
17
|
+
json.explanation hConformanceResult[:explanation] unless hConformanceResult[:explanation].nil?
|
18
|
+
json.pass hConformanceResult[:pass] unless hConformanceResult[:pass].nil?
|
18
19
|
end
|
19
20
|
end
|
20
21
|
end
|
@@ -15,6 +15,7 @@ module ADIWG
|
|
15
15
|
Jbuilder.new do |json|
|
16
16
|
json.dateTime hCoverageResult[:dateTime]
|
17
17
|
json.scope Scope.build(hCoverageResult[:scope]) unless hCoverageResult[:scope].empty?
|
18
|
+
json.name hCoverageResult[:name] unless hCoverageResult[:name].nil?
|
18
19
|
json.spatialRepresentationType hCoverageResult[:spatialRepresentationType]
|
19
20
|
json.spatialRepresentation SpatialRepresentation.build(hCoverageResult[:spatialRepresentation]) unless hCoverageResult[:spatialRepresentation].empty?
|
20
21
|
json.resultContentDescription CoverageDescription.build(hCoverageResult[:resultContentDescription]) unless hCoverageResult[:resultContentDescription].empty?
|
@@ -11,6 +11,7 @@ module ADIWG
|
|
11
11
|
Jbuilder.new do |json|
|
12
12
|
json.dateTime hResult[:dateTime] unless hResult[:dateTime].nil?
|
13
13
|
json.scope Scope.build(hResult[:scope]) unless hResult[:scope].empty?
|
14
|
+
json.name hResult[:name] unless hResult[:name].nil?
|
14
15
|
json.statement hResult[:statement] unless hResult[:statement].nil?
|
15
16
|
end
|
16
17
|
end
|
@@ -9,11 +9,12 @@ module ADIWG
|
|
9
9
|
module QuantitativeResult
|
10
10
|
def self.build(hResult)
|
11
11
|
Jbuilder.new do |json|
|
12
|
-
json.dateTime hResult[:dateTime]
|
13
|
-
json.scope Scope.build(hResult[:scope])
|
14
|
-
json.
|
15
|
-
json.
|
16
|
-
json.
|
12
|
+
json.dateTime hResult[:dateTime] unless hResult[:dateTime].nil?
|
13
|
+
json.scope Scope.build(hResult[:scope]) unless hResult[:scope].empty?
|
14
|
+
json.name hResult[:name] unless hResult[:name].nil?
|
15
|
+
json.value hResult[:values] unless hResult[:values].empty?
|
16
|
+
json.valueUnits hResult[:valueUnits] unless hResult[:valueUnits].nil?
|
17
|
+
json.valueRecordType hResult[:valueRecordType] unless hResult[:valueRecordType].nil?
|
17
18
|
end
|
18
19
|
end
|
19
20
|
end
|