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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b119f2f9301ea48b0a735bfe67703f765d686aa413b47a36ba2163979796180f
4
- data.tar.gz: ae8bfc5a29b29795bd4a26d46064a09b7831cc3df7d62115c0d42724f508ba4c
3
+ metadata.gz: 63308466e1da9ddab020ebcf67fb2ffe6147b60c9792db14aded530ef349d5bb
4
+ data.tar.gz: 152b94caa0acb2fbc9a1defa57329740bb873f3129983e5c0fb9cbf992606eef
5
5
  SHA512:
6
- metadata.gz: cddf4ee47e5955df5783dc89a3cf2ab0797a7d5af650d87f7847b4c214540d4d95a6874a0bb8fb426b0fef366919a373d3fe48469be181a6a29a418aa7f6b7a4
7
- data.tar.gz: bf2e8edf283c992ae20f8cfff128b182ef68ceb0165f8eb05c8e2f9b43bccff3e3e211f31e0e443f33d4626dac16851db628c6f9f333f792c4a50c8d10811ebd
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.12
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maltese (0.8.12)
4
+ maltese (0.8.13)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  aws-sdk-s3 (~> 1.19)
7
7
  dotenv (~> 2.1, >= 2.1.1)
@@ -109,11 +109,14 @@ module Maltese
109
109
  end
110
110
 
111
111
  def parse_data(result)
112
- return result.body.fetch("errors") if result.body.fetch("errors", nil).present?
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("attrributes", "updated")
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
@@ -1,3 +1,3 @@
1
1
  module Maltese
2
- VERSION = "0.8.12"
2
+ VERSION = "0.8.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maltese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.12
4
+ version: 0.8.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner