maltese 0.8 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +2 -2
- data/Gemfile.lock +1 -1
- data/lib/maltese/cli.rb +0 -2
- data/lib/maltese/sitemap.rb +1 -3
- 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: 3e8724a7c241f4f6e366d6af323cd927dcf147ab6207e41e5066be7265d68e8b
|
4
|
+
data.tar.gz: ecc4e91224d4f8edc042a9802054e4baf9c43e715e6e3db0cdff53626752ba3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b1d45266e1351e56b46e2b375c5b2f105a125a92f06f366f4f67338fd098d99c3abc8fdd05e0d61e4fa9eb243c08558f474b9c8536bc7ba432d913c072dfa9
|
7
|
+
data.tar.gz: 7e68c5a7a0500ff263afd885c34566604a50253d53548fca3248547a4cad6d0bc5f29d9f51abac1fc8587f97df4cc5878f091afc8a1d740d839f0f8da2d17b43
|
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.
|
14
|
+
RUN /sbin/setuser app gem install maltese -v 0.8.1
|
15
15
|
|
16
|
-
CMD maltese sitemap --sitemap_bucket $SITEMAP_BUCKET
|
16
|
+
CMD maltese sitemap --sitemap_bucket $SITEMAP_BUCKET
|
data/Gemfile.lock
CHANGED
data/lib/maltese/cli.rb
CHANGED
@@ -19,8 +19,6 @@ module Maltese
|
|
19
19
|
|
20
20
|
desc "sitemap", "generate sitemap for DataCite Search"
|
21
21
|
method_option :sitemap_bucket, type: :string
|
22
|
-
method_option :from_date, type: :string
|
23
|
-
method_option :until_date, type: :string
|
24
22
|
def sitemap
|
25
23
|
sitemap = Maltese::Sitemap.new(options)
|
26
24
|
sitemap.queue_jobs
|
data/lib/maltese/sitemap.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Maltese
|
2
2
|
class Sitemap
|
3
|
-
attr_reader :sitemap_bucket
|
3
|
+
attr_reader :sitemap_bucket
|
4
4
|
|
5
5
|
# load ENV variables from .env file if it exists
|
6
6
|
env_file = File.expand_path("../../../.env", __FILE__)
|
@@ -19,8 +19,6 @@ module Maltese
|
|
19
19
|
|
20
20
|
def initialize(attributes={})
|
21
21
|
@sitemap_bucket = attributes[:sitemap_bucket].presence || "search.test.datacite.org"
|
22
|
-
@from_date = attributes[:from_date].presence || (Time.now.to_date - 1.day).iso8601
|
23
|
-
@until_date = attributes[:until_date].presence || Time.now.to_date.iso8601
|
24
22
|
end
|
25
23
|
|
26
24
|
def sitemap_url
|
data/lib/maltese/version.rb
CHANGED