adiwg-mdtranslator 2.19.0.pre.beta.9 → 2.19.0.pre.beta.11

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: 11e0213e5e9feaf48537977f3e4b5894726865a17537443195cc3e0260f0d15c
4
- data.tar.gz: 7c7e26b440172419c56b46e4b344da8ad117c53afeae3b21757128f46519f7c6
3
+ metadata.gz: d3286d30317ead02725e01b3c9b255dc84a5c2aff3f82bc602a83f73e97e9d25
4
+ data.tar.gz: 9a147cf6547ab264757e59bf1c5dd54e5bc40ea4ed68944e57b73d3cb8a3c48a
5
5
  SHA512:
6
- metadata.gz: 82644050e145f850d5550cfb5478bcfe8b1e9b39d37a1a503604a0ba5559a859de204f691df15f2e51207908f4c70531605f8ad3debe023e44838192725f03ac
7
- data.tar.gz: 3e8aefb8632f1ed6822e882888889907d4f38e6ac0d1fefa4ab42d479598305b5453299f5d8d023eb57dbcd60c9bbfb2e65cf3f00366b48f94ae64815fd90adb
6
+ metadata.gz: 441c5b9910c1be842e1b119bad5a89587be22788ffdef7d44a3d29267020699ffec67459ad0cb05f0f61aa442e4b0cfcf43be43a70581146e1489fdb54576fcc
7
+ data.tar.gz: 363d465e41c57e3cd20a5ae8825f36535c053d7c390b5327260502aa1947885b9551fadbc74296e0fa2ad902d28d37e0bf7add1f1b0ab9d6692273aa1640a85a
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.9)
4
+ adiwg-mdtranslator (2.19.0.pre.beta.11)
5
5
  adiwg-mdcodes (= 2.9.3.pre.beta.3)
6
- adiwg-mdjson_schemas (= 2.9.2.pre.beta.19)
6
+ adiwg-mdjson_schemas (= 2.9.2.pre.beta.20)
7
7
  builder (~> 3.2)
8
8
  coderay (~> 1.1)
9
9
  jbuilder (~> 2.5)
@@ -32,7 +32,7 @@ GEM
32
32
  public_suffix (>= 2.0.2, < 6.0)
33
33
  adiwg-mdcodes (2.9.3.pre.beta.3)
34
34
  json (~> 2.0)
35
- adiwg-mdjson_schemas (2.9.2.pre.beta.19)
35
+ adiwg-mdjson_schemas (2.9.2.pre.beta.20)
36
36
  builder (3.2.4)
37
37
  coderay (1.1.3)
38
38
  concurrent-ruby (1.2.2)
@@ -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.9.2.pre.beta.19"
37
+ spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.9.2.pre.beta.20"
38
38
  spec.add_runtime_dependency "adiwg-mdcodes", "2.9.3.pre.beta.3"
39
39
  spec.add_runtime_dependency "jbuilder", "~> 2.5"
40
40
  spec.add_runtime_dependency "kramdown", ">= 1.13", "< 3.0"
@@ -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] = 'AbsoluteExternalPositionalAccuracy'
85
+ report[:type] = 'AbsolutePositionalAccuracy'
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] = 'AbsoluteExternalPositionalAccuracy'
108
+ report[:type] = 'AbsolutePositionalAccuracy'
109
109
  unless xVertical.xpath('qvertpa/vertacce').empty?
110
110
  report[:qualityMeasure] = intMetadataClass.newQualityMeasure
111
111
  report[:qualityMeasure][:description] = xVertical.xpath('qvertpa/vertacce').text
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.19.0-beta.9"
112
+ VERSION = "2.19.0-beta.11"
113
113
  end
114
114
  end
115
115
 
@@ -70,7 +70,7 @@ module ADIWG
70
70
 
71
71
 
72
72
  horizontal_positional_accuracy_report = hDataQuality[:report].find do |report|
73
- report[:type] == 'AbsoluteExternalPositionalAccuracy' &&
73
+ report[:type] == 'AbsolutePositionalAccuracy' &&
74
74
  report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
75
75
  name == 'Horizontal Positional Accuracy Report'
76
76
  }
@@ -80,7 +80,7 @@ module ADIWG
80
80
 
81
81
 
82
82
  vertical_positional_accuracy_report = hDataQuality[:report].find do |report|
83
- report[:type] == 'AbsoluteExternalPositionalAccuracy' &&
83
+ report[:type] == 'AbsolutePositionalAccuracy' &&
84
84
  report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
85
85
  name == 'Vertical Positional Accuracy Report'
86
86
  }
@@ -99,12 +99,9 @@ module ADIWG
99
99
  end
100
100
  end
101
101
  end
102
- # TODO the following will not work until the iso_evaluationMethodType codelist is added to mdCodes
103
- # unless evaluationMethod[:evaluationMethodType].nil?
104
- # @xml.tag!('mdq:evaluationMethodType') do
105
- # codeListClass.writeXML('mcc', 'iso_evaluationMethodType', evaluationMethod[:evaluationMethodType])
106
- # end
107
- # end
102
+ @xml.tag!('mdq:evaluationMethodType') do
103
+ codeListClass.writeXML('mcc', 'iso_evaluationMethodType', evaluationMethod[:evaluationMethodType])
104
+ end
108
105
  end
109
106
  end
110
107
  end # evaluationMethod
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.9
4
+ version: 2.19.0.pre.beta.11
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-04-30 00:00:00.000000000 Z
12
+ date: 2024-05-02 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.9.2.pre.beta.19
132
+ version: 2.9.2.pre.beta.20
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.19
139
+ version: 2.9.2.pre.beta.20
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: adiwg-mdcodes
142
142
  requirement: !ruby/object:Gem::Requirement