Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
required: true
MDS_PASSWORD:
required: true
CC_TEST_REPORTER_ID:
required: true
jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -46,7 +44,3 @@ jobs:
# bundle exec rubocop
bundle exec rspec
echo $?
- name: Publish code coverage
uses: paambaati/codeclimate-action@v3.1.1
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "oj_mimic_json", "~> 1.0", ">= 1.0.1"
gem "equivalent-xml", "~> 0.6.0"
gem "nokogiri", ">= 1.10.4"
gem "iso8601", "~> 0.9.0"
gem "bolognese", "~> 2.3.2"
gem "bolognese", "~> 2.3.9"
gem "maremma", ">= 4.9.8"
gem "faraday", ">= 2.0", "< 3.0.0"
gem "base32-url", "~> 0.5"
Expand Down
44 changes: 32 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ GEM
bigdecimal (3.1.8)
binding_of_caller (1.0.0)
debug_inspector (>= 0.0.1)
bolognese (2.3.2)
bolognese (2.3.9)
activesupport (>= 4.2.5)
benchmark_methods (~> 0.7)
bibtex-ruby (>= 5.1.0)
Expand Down Expand Up @@ -126,8 +126,13 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
citeproc (1.0.10)
citeproc (1.1.0)
date
forwardable
json
namae (~> 1.0)
observer (< 1.0)
open-uri (< 1.0)
citeproc-ruby (1.1.14)
citeproc (~> 1.0, >= 1.0.9)
csl (~> 1.6)
Expand All @@ -152,14 +157,15 @@ GEM
docile (1.1.5)
dotenv (2.7.6)
drb (2.2.1)
ebnf (2.5.0)
ebnf (2.6.0)
base64 (~> 0.2)
htmlentities (~> 4.3)
rdf (~> 3.3)
scanf (~> 1.0)
sxp (~> 2.0)
unicode-types (~> 1.8)
edtf (3.1.1)
activesupport (>= 3.0, < 8.0)
edtf (3.2.0)
activesupport (>= 3.0, < 9.0)
equivalent-xml (0.6.0)
nokogiri (>= 1.4.3)
erubi (1.13.0)
Expand All @@ -184,6 +190,7 @@ GEM
net-http
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
forwardable (1.3.3)
gender_detector (0.1.2)
unicode_utils (>= 1.3.0)
git (1.8.1)
Expand All @@ -209,7 +216,7 @@ GEM
rack (>= 2.2, < 4)
rdf (~> 3.3)
rexml (~> 3.2)
json-ld-preloaded (3.3.1)
json-ld-preloaded (3.3.2)
json-ld (~> 3.3)
rdf (~> 3.3)
jsonlint (0.3.0)
Expand Down Expand Up @@ -253,11 +260,11 @@ GEM
nokogiri (~> 1.16, >= 1.16.2)
oj (>= 2.8.3)
oj_mimic_json (~> 1.0, >= 1.0.1)
matrix (0.4.2)
matrix (0.4.3)
mini_mime (1.0.3)
minitest (5.14.4)
msgpack (1.4.5)
multi_json (1.15.0)
multi_json (1.17.0)
multipart-post (2.4.1)
namae (1.2.0)
racc (~> 1.7)
Expand All @@ -279,9 +286,15 @@ GEM
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
observer (0.1.2)
oj (3.11.8)
oj_mimic_json (1.0.1)
optimist (3.2.0)
open-uri (0.5.0)
stringio
time
uri
optimist (3.2.1)
ostruct (0.6.3)
parallel (1.20.1)
parser (3.0.3.2)
ast (~> 2.4.1)
Expand Down Expand Up @@ -340,10 +353,13 @@ GEM
rb-inotify (0.11.1)
ffi (~> 1.0)
rchardet (1.8.0)
rdf (3.3.2)
rdf (3.3.4)
bcp47_spec (~> 0.2)
bigdecimal (~> 3.1, >= 3.1.5)
link_header (~> 0.0, >= 0.0.8)
logger (~> 1.5)
ostruct (~> 0.6)
readline (~> 0.0)
rdf-rdfxml (3.3.0)
builder (~> 3.2, >= 3.2.4)
htmlentities (~> 4.3)
Expand All @@ -359,6 +375,8 @@ GEM
rexml (~> 3.2)
rdoc (6.7.0)
psych (>= 4.0.0)
readline (0.0.4)
reline
regexp_parser (2.1.1)
reline (0.5.10)
io-console (~> 0.5)
Expand Down Expand Up @@ -417,13 +435,15 @@ GEM
matrix (~> 0.4)
rdf (~> 3.3)
thor (1.3.2)
time (0.4.1)
date
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2021.5)
tzinfo (>= 1.0.0)
unicode-display_width (1.6.1)
unicode-types (1.10.0)
unicode-types (1.11.0)
unicode_utils (1.4.0)
uri (0.13.1)
useragent (0.16.10)
Expand All @@ -450,7 +470,7 @@ DEPENDENCIES
base64 (~> 0.2.0)
better_errors
binding_of_caller
bolognese (~> 2.3.2)
bolognese (~> 2.3.9)
bootsnap (>= 1.1.0)
byebug
cancancan (~> 2.0)
Expand Down
85 changes: 85 additions & 0 deletions spec/fixtures/files/datacite-geolocation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
<identifier identifierType="DOI">10.14454/ey2x-5w17</identifier>
<creators>
<creator>
<creatorName>Fenner, Martin</creatorName>
<givenName>Martin</givenName>
<familyName>Fenner</familyName>
<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0003-1419-2405</nameIdentifier>
</creator>
</creators>
<titles>
<title>Eating your own Dog Food</title>
</titles>
<publisher>DataCite</publisher>
<publicationYear>2016</publicationYear>
<resourceType resourceTypeGeneral="Text">BlogPosting</resourceType>
<alternateIdentifiers>
<alternateIdentifier alternateIdentifierType="Local accession number">MS-49-3632-5083</alternateIdentifier>
</alternateIdentifiers>
<subjects>
<subject>datacite</subject>
<subject>doi</subject>
<subject>metadata</subject>
</subjects>
<dates>
<date dateType="Created">2016-12-20</date>
<date dateType="Issued">2016-12-20</date>
<date dateType="Updated">2016-12-20</date>
</dates>
<relatedIdentifiers>
<relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/0012</relatedIdentifier>
<relatedIdentifier relatedIdentifierType="DOI" relationType="References">10.5438/55E5-T5C0</relatedIdentifier>
<relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.5438/0000-00SS</relatedIdentifier>
</relatedIdentifiers>
<version>1.0</version>
<descriptions>
<description descriptionType="Abstract">Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...</description>
</descriptions>
<geoLocations>
<geoLocation>
<geoLocationPlace>New York, NY</geoLocationPlace>
<geoLocationPoint>
<pointLatitude>31.233</pointLatitude>
<pointLongitude>-67.302</pointLongitude>
</geoLocationPoint>
<geoLocationBox>
<westBoundLongitude>-123.0</westBoundLongitude>
<eastBoundLongitude>+123.</eastBoundLongitude>
<southBoundLatitude>-40</southBoundLatitude>
<northBoundLatitude>60.2312</northBoundLatitude>
</geoLocationBox>
<geoLocationPolygon>
<polygonPoint>
<pointLatitude>42.4935265</pointLatitude>
<pointLongitude>-87.812664</pointLongitude>
</polygonPoint>
<polygonPoint>
<pointLatitude>42.4975767</pointLatitude>
<pointLongitude>-88.5872001</pointLongitude>
</polygonPoint>
<polygonPoint>
<pointLatitude>41.5550023</pointLatitude>
<pointLongitude>-88.6915703</pointLongitude>
</polygonPoint>
<polygonPoint>
<pointLatitude>41.4624467</pointLatitude>
<pointLongitude>-87.5270195</pointLongitude>
</polygonPoint>
<polygonPoint>
<pointLatitude>41.46244679</pointLatitude>
<pointLongitude>-87.51054</pointLongitude>
</polygonPoint>
<polygonPoint>
<pointLatitude>42.2012176</pointLatitude>
<pointLongitude>-87.812664</pointLongitude>
</polygonPoint>
<inPolygonPoint>
<pointLatitude>42.2195267</pointLatitude>
<pointLongitude>-88.2960624</pointLongitude>
</inPolygonPoint>
</geoLocationPolygon>
</geoLocation>
</geoLocations>
</resource>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading