unipept 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/unipept/api_runner.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2c0a7c05cff467fda34a5a011e8c2a301cfe252
4
- data.tar.gz: f0a58a71cb1c07773992fdf562bcc29dec6d2b47
3
+ metadata.gz: 40fe42c061181b2c8fca35b00d49de4b8608bb49
4
+ data.tar.gz: 2456d5c27050c49b434a650f0a1210327081ef91
5
5
  SHA512:
6
- metadata.gz: c3167ebb88be529deae748259d400b76b20a2ff7425095c5fbf47724da08fc7492193e5fe3c5779dfe1f82f9dfff0460e946e84b9978e07d31a51a966ebf47ab
7
- data.tar.gz: a95d748dfaa3cceec4a8456e1e7ba99d972b810f73b6ec5d6703bf7e5d264e7eb3cf9998a0f238c22f18b238d832b940cc2c2a251c1c24c75abfa622596f8062
6
+ metadata.gz: c513e8038bb2cd843cdf17e0a807ce05e576ed6e2e9e59c5a9876d7082a6680e42e7f853b65566469432e53e85aa7f211c673ee9ca6f330e7213476f481fcbb0
7
+ data.tar.gz: 4e8fd9dd17174bf163ce435913ef67c900ce3262666f23c0d37af0faa4e93b696f5c5cbea424f8abec3ed7b75c8b42dcfd5645b6eb87a3d7aa8471592bad0a21
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.5.4
@@ -72,8 +72,8 @@ module Unipept
72
72
  last_fetched = @configuration['last_fetch_date']
73
73
  if last_fetched.nil? || (last_fetched + 60 * 60 * 24) < Time.now
74
74
  version = File.read(File.join(File.dirname(__FILE__), "..", "..", "VERSION"))
75
- puts Typhoeus.get(@message_url, params: {version: version}).body
76
-
75
+ resp = Typhoeus.get(@message_url, params: {version: version})
76
+ puts resp.body unless resp.body.chomp.empty?
77
77
  @configuration['last_fetch_date'] = Time.now
78
78
  @configuration.save
79
79
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unipept
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toon Willems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda