maltese 0.8.12 → 0.8.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/Gemfile.lock +1 -1
- data/lib/maltese/sitemap.rb +5 -2
- data/lib/maltese/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63308466e1da9ddab020ebcf67fb2ffe6147b60c9792db14aded530ef349d5bb
|
4
|
+
data.tar.gz: 152b94caa0acb2fbc9a1defa57329740bb873f3129983e5c0fb9cbf992606eef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ddcd5fcf4b026d3a2fdacca318f330ef76783fc0b0332cb7c4bb927b94aab72b0d49c4cd30fa8173658422fb42ba60b3ccaf2e2882869989926bbc0e673b8d1
|
7
|
+
data.tar.gz: 60d85866dc019bd5c700f64c4242a8ceb5c61ad347aaea8e5d6e877ca629f3dbc4ddff54b1d3a612499e06abae9e9f5adfc398a0611f24891285b02d7bb3534c
|
data/Dockerfile
CHANGED
@@ -11,6 +11,6 @@ RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" &&
|
|
11
11
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
12
12
|
|
13
13
|
# Install maltese gem
|
14
|
-
RUN /sbin/setuser app gem install maltese -v 0.8.
|
14
|
+
RUN /sbin/setuser app gem install maltese -v 0.8.13
|
15
15
|
|
16
16
|
CMD maltese sitemap --sitemap_bucket $SITEMAP_BUCKET
|
data/Gemfile.lock
CHANGED
data/lib/maltese/sitemap.rb
CHANGED
@@ -109,11 +109,14 @@ module Maltese
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def parse_data(result)
|
112
|
-
|
112
|
+
if result.body.fetch("errors", nil).present?
|
113
|
+
puts "An error occured: #{result.body.fetch("errors").inspect}"
|
114
|
+
return result.body.fetch("errors")
|
115
|
+
end
|
113
116
|
|
114
117
|
result.body.fetch("data", []).each do |item|
|
115
118
|
loc = "/works/" + item.dig("attributes", "doi")
|
116
|
-
sitemap.add loc, changefreq: "monthly", lastmod: item.dig("
|
119
|
+
sitemap.add loc, changefreq: "monthly", lastmod: item.dig("attributes", "updated")
|
117
120
|
end
|
118
121
|
puts "#{result.body.fetch("data", []).size} DOIs parsed."
|
119
122
|
sitemap.sitemap.link_count
|
data/lib/maltese/version.rb
CHANGED