adiwg-mdtranslator 2.14.1 → 2.14.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f936bf8f803d1d897ab81cedb72b01cef62c2f04
|
4
|
+
data.tar.gz: 0eb58340f8b1c05bb16b609ef7a52cf33bd9011e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b572ef52d9a6ea5582aea779711e88d0d912fe8b41038aff7dc417b6f85fc1a5fd3b802366e36dd6c355926826595db530b9d005cf5c6b4b344d066e7a15e0
|
7
|
+
data.tar.gz: b3d11275d81beeeeaa13dc63d72b2229ca9cf0f300a29f80b2d304cdf2acc63b589b979c916cc89fc87e47761568b80697079e46f4547088d90941241d4fc9ef
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# fgdc reader
|
2
2
|
|
3
3
|
# History:
|
4
|
+
# Josh Bradley 2018-11-1 format eror messages
|
4
5
|
# Stan Smith 2018-05-04 add reader version to response object
|
5
6
|
# Stan Smith 2017-08-10 original script
|
6
7
|
|
@@ -20,7 +21,7 @@ module ADIWG
|
|
20
21
|
|
21
22
|
# receive XML file
|
22
23
|
if file.nil? || file == ''
|
23
|
-
hResponseObj[:readerStructureMessages] << 'XML file is missing'
|
24
|
+
hResponseObj[:readerStructureMessages] << 'ERROR: XML file is missing'
|
24
25
|
hResponseObj[:readerStructurePass] = false
|
25
26
|
return {}
|
26
27
|
end
|
@@ -29,8 +30,8 @@ module ADIWG
|
|
29
30
|
begin
|
30
31
|
xDoc = Nokogiri::XML(file) { |form| form.strict }
|
31
32
|
rescue Nokogiri::XML::SyntaxError => err
|
32
|
-
hResponseObj[:readerStructureMessages] << 'XML file is not well formed'
|
33
|
-
hResponseObj[:readerStructureMessages] << err
|
33
|
+
hResponseObj[:readerStructureMessages] << 'ERROR: XML file is not well formed'
|
34
|
+
hResponseObj[:readerStructureMessages] << err.to_s
|
34
35
|
hResponseObj[:readerStructurePass] = false
|
35
36
|
return {}
|
36
37
|
end
|
@@ -38,7 +39,7 @@ module ADIWG
|
|
38
39
|
# file must contain an fgdc <metadata> tag
|
39
40
|
xMetadata = xDoc.xpath('/metadata')
|
40
41
|
if xMetadata.empty?
|
41
|
-
hResponseObj[:readerValidationMessages] << 'FGDC file did not contain a <metadata> tag'
|
42
|
+
hResponseObj[:readerValidationMessages] << 'ERROR: FGDC file did not contain a <metadata> tag'
|
42
43
|
hResponseObj[:readerValidationPass] = false
|
43
44
|
return {}
|
44
45
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# adiwg mdTranslator
|
2
2
|
|
3
3
|
# version 2 history
|
4
|
+
# 2.14.2 2018-11-1 fix fgdc reader error messages
|
4
5
|
# 2.14.1 2018-10-31 add fix for empty verticalDatum in fgdc and iso 19115_2 writers
|
5
6
|
# 2.14.0 2018-10-27 refactor taxonomy for multiple taxonomic classifications
|
6
7
|
# 2.14.0 2018-10-27 refactor taxonomy for identification reference as citation
|
@@ -102,7 +103,7 @@
|
|
102
103
|
module ADIWG
|
103
104
|
module Mdtranslator
|
104
105
|
# current mdtranslator version
|
105
|
-
VERSION = "2.14.
|
106
|
+
VERSION = "2.14.2"
|
106
107
|
end
|
107
108
|
end
|
108
109
|
|
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.14.
|
4
|
+
version: 2.14.2
|
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: 2018-11-
|
12
|
+
date: 2018-11-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -862,7 +862,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
862
862
|
version: '0'
|
863
863
|
requirements: []
|
864
864
|
rubyforge_project:
|
865
|
-
rubygems_version: 2.
|
865
|
+
rubygems_version: 2.5.2
|
866
866
|
signing_key:
|
867
867
|
specification_version: 4
|
868
868
|
summary: The mdtranslator (metadata translator) is a tool for translating metadata
|