adiwg-mdtranslator 2.19.0.pre.beta.13 → 2.19.0.pre.beta.14

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: 24f78c61ad9d8d18ff94378af29e72995b167431942a290c7ae425ffbafe9a5d
4
- data.tar.gz: ce3d9a34254bd22f4ebb25c5eebabbfb6e3046f71a1e11e09c8c0e8ffc6108d7
3
+ metadata.gz: 6bffc1f367d1b2d4ee494d195485c791a93dbdbd67d0cd644bff88756b02cbcd
4
+ data.tar.gz: eeff51cbbab47b12e23516e354be2081ac78c082935d8a1d8228cb505577d909
5
5
  SHA512:
6
- metadata.gz: afce426983e990d9708dde1476607392f262edd0c4c2adae6d65820446b71e3ffb6de566301874a4300e3d1ec1e33226b11060c4a9629997cf2e92730c51a440
7
- data.tar.gz: 94cce522b66288d9fdcbfc9c652ad502429f0d7fc74b16a3c6e415f759db4736e2d61f61f5cfb4bd7d915c1fc5a710575072f441a4003ef10e6cafc3429a12cf
6
+ metadata.gz: 59a971b94bb9cc669493b37f9eeaade6b73ba1ccf22fa2a23db7a643854ed168a11692d8fb78618ec4776f9ff91ded443861d16ec74cd8c1f0aaa8e37208ed15
7
+ data.tar.gz: feff44c0ee09645c9f30e7f2ebc2014684cf43e192a16b9e1f5d40cd67d7ac748c9b52882821bf5d01403ca49106bf75c97cb4f5af1109a2eea4c5ead2e0e5f3
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adiwg-mdtranslator (2.19.0.pre.beta.13)
5
- adiwg-mdcodes (= 2.9.3.pre.beta.3)
6
- adiwg-mdjson_schemas (= 2.9.2.pre.beta.21)
4
+ adiwg-mdtranslator (2.19.0.pre.beta.14)
5
+ adiwg-mdcodes (= 2.9.4.pre.beta.0)
6
+ adiwg-mdjson_schemas (= 2.9.3.pre.beta.0)
7
7
  builder (~> 3.2)
8
8
  coderay (~> 1.1)
9
9
  jbuilder (~> 2.5)
@@ -30,9 +30,9 @@ GEM
30
30
  tzinfo (~> 1.1)
31
31
  addressable (2.8.5)
32
32
  public_suffix (>= 2.0.2, < 6.0)
33
- adiwg-mdcodes (2.9.3.pre.beta.3)
33
+ adiwg-mdcodes (2.9.4.pre.beta.0)
34
34
  json (~> 2.0)
35
- adiwg-mdjson_schemas (2.9.2.pre.beta.21)
35
+ adiwg-mdjson_schemas (2.9.3.pre.beta.0)
36
36
  builder (3.2.4)
37
37
  coderay (1.1.3)
38
38
  concurrent-ruby (1.2.2)
@@ -34,8 +34,8 @@ 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.9.2.pre.beta.21"
38
- spec.add_runtime_dependency "adiwg-mdcodes", "2.9.3.pre.beta.3"
37
+ spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.9.3.pre.beta.0"
38
+ spec.add_runtime_dependency "adiwg-mdcodes", "2.9.4.pre.beta.0"
39
39
  spec.add_runtime_dependency "jbuilder", "~> 2.5"
40
40
  spec.add_runtime_dependency "kramdown", ">= 1.13", "< 3.0"
41
41
  spec.add_runtime_dependency "coderay", "~> 1.1"
@@ -82,7 +82,7 @@ module ADIWG
82
82
  xHorizontal = xPositionalAccuracy.xpath('./horizpa')
83
83
  unless xHorizontal.empty?
84
84
  report = intMetadataClass.newDataQualityReport
85
- report[:type] = 'AbsolutePositionalAccuracy'
85
+ report[:type] = 'AbsoluteExternalPositionalAccuracy'
86
86
  unless xHorizontal.xpath('qhorizpa/horizpae').empty?
87
87
  report[:qualityMeasure] = intMetadataClass.newQualityMeasure
88
88
  report[:qualityMeasure][:description] = xHorizontal.xpath('qhorizpa/horizpae').text
@@ -105,7 +105,7 @@ module ADIWG
105
105
  xVertical = xPositionalAccuracy.xpath('./vertacc')
106
106
  unless xVertical.empty?
107
107
  report = intMetadataClass.newDataQualityReport
108
- report[:type] = 'AbsolutePositionalAccuracy'
108
+ report[:type] = 'AbsoluteExternalPositionalAccuracy'
109
109
  unless xVertical.xpath('qvertpa/vertacce').empty?
110
110
  report[:qualityMeasure] = intMetadataClass.newQualityMeasure
111
111
  report[:qualityMeasure][:description] = xVertical.xpath('qvertpa/vertacce').text
@@ -26,7 +26,7 @@ module ADIWG
26
26
  end
27
27
 
28
28
  if hResult.has_key?('value')
29
- intResult[:value] = hResult['value']
29
+ intResult[:values] = hResult['value']
30
30
  end
31
31
 
32
32
  if hResult.has_key?('valueUnits')
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.19.0-beta.13"
112
+ VERSION = "2.19.0-beta.14"
113
113
  end
114
114
  end
115
115
 
@@ -70,20 +70,20 @@ module ADIWG
70
70
 
71
71
 
72
72
  horizontal_positional_accuracy_report = hDataQuality[:report].find do |report|
73
- report[:type] == 'AbsolutePositionalAccuracy' # &&
74
- # report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
75
- # name == 'Horizontal Positional Accuracy Report'
76
- # }
73
+ report[:type] == 'AbsoluteExternalPositionalAccuracy' &&
74
+ report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
75
+ name == 'Horizontal Positional Accuracy Report'
76
+ }
77
77
  end
78
78
 
79
79
  horizpar = horizontal_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
80
80
 
81
81
 
82
82
  vertical_positional_accuracy_report = hDataQuality[:report].find do |report|
83
- report[:type] == 'AbsolutePositionalAccuracy' # &&
84
- # report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
85
- # name == 'Vertical Positional Accuracy Report'
86
- # }
83
+ report[:type] == 'AbsoluteExternalPositionalAccuracy' &&
84
+ report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
85
+ name == 'Vertical Positional Accuracy Report'
86
+ }
87
87
  end
88
88
 
89
89
  vertaccr = vertical_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
@@ -34,7 +34,7 @@ module ADIWG
34
34
  citationClass = CI_Citation.new(@xml, @hResponseObj)
35
35
 
36
36
  @xml.tag!('mdq:report') do
37
- @xml.tag!("mdq:#{hReport[:type]}") do
37
+ @xml.tag!("mdq:DQ_#{hReport[:type]}") do
38
38
 
39
39
  # standaloneQualityReportDetails
40
40
  unless hReport[:standaloneQualityReportDetails].nil?
@@ -11,7 +11,7 @@ module ADIWG
11
11
  Jbuilder.new do |json|
12
12
  json.dateTime hResult[:dateTime]
13
13
  json.scope Scope.build(hResult[:scope]) if hResult[:scope]
14
- json.value hResult[:value]
14
+ json.value hResult[:values]
15
15
  json.valueUnits hResult[:valueUnits]
16
16
  json.valueRecordType hResult[:valueRecordType]
17
17
  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.13
4
+ version: 2.19.0.pre.beta.14
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: 2024-05-03 00:00:00.000000000 Z
12
+ date: 2024-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -129,28 +129,28 @@ dependencies:
129
129
  requirements:
130
130
  - - '='
131
131
  - !ruby/object:Gem::Version
132
- version: 2.9.2.pre.beta.21
132
+ version: 2.9.3.pre.beta.0
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.9.2.pre.beta.21
139
+ version: 2.9.3.pre.beta.0
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: adiwg-mdcodes
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - '='
145
145
  - !ruby/object:Gem::Version
146
- version: 2.9.3.pre.beta.3
146
+ version: 2.9.4.pre.beta.0
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - '='
152
152
  - !ruby/object:Gem::Version
153
- version: 2.9.3.pre.beta.3
153
+ version: 2.9.4.pre.beta.0
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: jbuilder
156
156
  requirement: !ruby/object:Gem::Requirement