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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 229ed2e77e2aeee4d1e56c525fb5a24c5ff1015d3480ca28192636e754e8e85d
4
- data.tar.gz: e4cfe8581390e2645b3f3992e0d4e6ff2baa4ed20fdcb1ea915fec46eaa31e5e
3
+ metadata.gz: 4df93ff3aab931551bd41f2d2e78c607cc4f3913a5d2c602ed42ebd8260ad6cc
4
+ data.tar.gz: 508f84df0f6ddf10db9cae6743d219f5435194edac5e0e5e769835b7ed546f47
5
5
  SHA512:
6
- metadata.gz: 94f4a51d95a9ad648eadd51ca300f90073494fe30bfa61546e1303dcdc59b930e61ed92ae68ecc2462b439215959692a3e4c77b26078c072e3f1e7e1b9f342a5
7
- data.tar.gz: cccccf2d1f4271d7e2d46ed06eb74090390edceacd71c3add2ffbdafcba5f13e8064827563c5716ba495e9c075de9ad3404ab18bd12533af6a28c9ab2b4ea6d2
6
+ metadata.gz: c76378263bab7113cda3093ad9084eeb3585baf5298a2b1683f9c0bc50e2c982ed5fd18e5bb7454707be831ea968adecdb26d3cbff29d9237e962b3d49d2d93d
7
+ data.tar.gz: 3bf9539dd18ee0aaa705a7a4e17c5eeb6ccaeff89ce6fd39bab54199f9fa7d3df11c33e2647a95667cd54185a4ff4e3b6737cd591b77685e5c09c2fe1a5616f9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adiwg-mdtranslator (2.19.0.pre.beta.16)
4
+ adiwg-mdtranslator (2.19.0.pre.beta.17)
5
5
  adiwg-mdcodes (= 2.9.4.pre.beta.0)
6
6
  adiwg-mdjson_schemas (= 2.9.3.pre.beta.0)
7
7
  builder (~> 3.2)
@@ -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
@@ -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?('value')
29
33
  intResult[:values] = hResult['value']
30
34
  end
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.19.0-beta.16"
112
+ VERSION = "2.19.0-beta.17"
113
113
  end
114
114
  end
115
115
 
@@ -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.specification Citation.build(hConformanceResult[:specification])
16
- json.explanation hConformanceResult[:explanation]
17
- json.pass hConformanceResult[:pass]
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]) if hResult[:scope]
14
- json.value hResult[:values]
15
- json.valueUnits hResult[:valueUnits]
16
- json.valueRecordType hResult[:valueRecordType]
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
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.19.0.pre.beta.16
4
+ version: 2.19.0.pre.beta.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith