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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac3cd90658303b2d861cf8c1ed7ef95eef202444f857c047f83064ecf7f4a905
4
- data.tar.gz: 9fd2c0fd351f260c5e160cf99ee32ddbf56a019c90ae309d230bcb399729284b
3
+ metadata.gz: 3e8724a7c241f4f6e366d6af323cd927dcf147ab6207e41e5066be7265d68e8b
4
+ data.tar.gz: ecc4e91224d4f8edc042a9802054e4baf9c43e715e6e3db0cdff53626752ba3d
5
5
  SHA512:
6
- metadata.gz: 5ba9dad423fdcd57cbd150d51dace045ca7c143e065dd9bc9072efd51b3e213ace2211ab128b68c3b280adbbecbc92d81d37909307fdc0507a8830e467b68b0d
7
- data.tar.gz: 6f75e50b48ce0fb0200549fce104dbf3288cfaca83a97df31fa18c4daa040699d787c90954a989b416def0e88549e6b7befc264b8ed1455eae29394d443073fc
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.2
14
+ RUN /sbin/setuser app gem install maltese -v 0.8.1
15
15
 
16
- CMD maltese sitemap --sitemap_bucket $SITEMAP_BUCKET --from_date $FROM_DATE
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)
4
+ maltese (0.8.1)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  aws-sdk-s3 (~> 1.19)
7
7
  dotenv (~> 2.1, >= 2.1.1)
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
@@ -1,6 +1,6 @@
1
1
  module Maltese
2
2
  class Sitemap
3
- attr_reader :sitemap_bucket, :from_date, :until_date
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
@@ -1,3 +1,3 @@
1
1
  module Maltese
2
- VERSION = "0.8"
2
+ VERSION = "0.8.1"
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'
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner