toccatore 0.1.2 → 0.1.4

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
  SHA1:
3
- metadata.gz: 8d2e82dd691c989d8ade4c0c52b07dd1d59103a3
4
- data.tar.gz: 2d1bbdcf29fe0b83e583fc630714c13dcbef1187
3
+ metadata.gz: 7e7931b75f90480bee150e384015029bc44be931
4
+ data.tar.gz: ffe547fabf8b4c36fd1d068ecebd0766f548aaad
5
5
  SHA512:
6
- metadata.gz: 35c1a2fac3faff6158dd3d76e1b53881d277e5f11d68acd2afb7707b05831d212c6b6f39186685f69fd6a11325a11752723400935fddb991218c19f9a692cddc
7
- data.tar.gz: f3bb6c228b2ef400f423fa211c71e00c03d803cd1b8ca3cd13be7f189211645d67dc9d1cd11ea4486877a798822a6a8cb3812dad137bfbcbdff5dd9d87d753b2
6
+ metadata.gz: 431d584e25fdd1c19264e7921021b39074f9f7246a340d675cdc03a9775d6f545d7c5a200329c4c3b6bca80109c55179700eee4a6897d210ec5650454ea376ab
7
+ data.tar.gz: 5d1b0a4c482c39db469b798d1321a605eec53befebe2debdb9fda0c3fd61c3cabe4068ff3fff53194c15fe3db22358e1452a4e14273583fdca8b830bd10c0992
data/Dockerfile CHANGED
@@ -1,7 +1,6 @@
1
1
  FROM phusion/passenger-full:0.9.19
2
2
  MAINTAINER Martin Fenner "mfenner@datacite.org"
3
3
 
4
- ENV ACCESS_TOKEN=1
5
4
  ENV PATH="/usr/local/rvm/gems/ruby-2.3.1/bin:${PATH}"
6
5
 
7
6
  # Update installed APT packages, clean up APT when done.
@@ -11,6 +10,4 @@ RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" &&
11
10
  # Install toccatore gem
12
11
  RUN /sbin/setuser app gem install toccatore
13
12
 
14
- #CMD ["/usr/local/rvm/gems/ruby-2.3.1/bin/toccatore", "--access_token", ${access_token}]
15
- # CMD ["/sbin/my_init"]
16
- CMD ["toccatore", "orcid_update"]
13
+ CMD toccatore orcid_update --push_url $VOLPINO_URL --access_token $VOLPINO_TOKEN --from_date $FROM_DATE --until_date $UNTIL_DATE
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- toccatore (0.1.2)
4
+ toccatore (0.1.4)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  dotenv (~> 2.1, >= 2.1.1)
7
7
  gender_detector (~> 1.0)
data/lib/toccatore/cli.rb CHANGED
@@ -19,9 +19,9 @@ module Toccatore
19
19
 
20
20
  desc "orcid_update", "push ORCID IDs from DataCite MDS to ORCID"
21
21
  method_option :access_token, type: :string, required: true
22
+ method_option :push_url, type: :string
22
23
  method_option :from_date, type: :string, default: (Time.now.to_date - 1.day).iso8601
23
24
  method_option :until_date, type: :string, default: Time.now.to_date.iso8601
24
- method_option :push_url, type: :string
25
25
  def orcid_update
26
26
  orcid_update = Toccatore::OrcidUpdate.new
27
27
 
@@ -1,3 +1,3 @@
1
1
  module Toccatore
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toccatore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner