puree 2.1.0 → 2.1.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
  SHA1:
3
- metadata.gz: 36bf126598ca6a267612c243bf8140c594c875ea
4
- data.tar.gz: b09a23a98dda52719e3e1767f3d7ef08b52ba5da
3
+ metadata.gz: 8606b12e11591ec4334727202ae94c999da7e2ce
4
+ data.tar.gz: 8a44e408a74e383891861e0ae275945b4bcd0dda
5
5
  SHA512:
6
- metadata.gz: d625c5527a02c5748e980640cfb7c56d851c661e9292aaea6732f0fecdca075cfeb50f163f622b7656455f022bbdc7f6797da9f429889731c81701623b73a9cd
7
- data.tar.gz: fd3788695ac2118a2f9f20cf0d03a6b16bdfc53fe6080ad10c67e90cde7ee2ae1b256099a86efaeaee8e6a371a1e380c461d137f99fda1f6d23f35d28c6a85e2
6
+ metadata.gz: 7b9158b6150662333fbab474f62f8fb43f81ef6d431c0fad7b00cbd4caee07e3b5d35521532262955ec79db8637594e6a8c7cfaf59fe2b9ee7f6f54411037fea
7
+ data.tar.gz: 054591f8cb907856077074bca300fab524e7e9c5d8f5f5170cca1296c71b972a6ab71efd2c434427dc4cce69a57dd2358ca0be000266c9cdddc8577933baac44
@@ -2,6 +2,10 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## 2.1.1 2018-04-18
6
+ ### Fixed
7
+ - Handle missing created and modified.
8
+
5
9
  ## 2.1.0 - 2018-03-12
6
10
  ### Added
7
11
  - Research output - scopus_id, projects
@@ -1,5 +1,5 @@
1
1
  module Puree
2
2
  # Semantic version number
3
3
  #
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
5
5
  end
@@ -22,7 +22,8 @@ module Puree
22
22
 
23
23
  # @return [Time, nil]
24
24
  def created_at
25
- Time.parse xpath_query_for_single_value('/info/createdDate')
25
+ xpath_result = xpath_query_for_single_value('/info/createdDate')
26
+ Time.parse xpath_result if xpath_result
26
27
  end
27
28
 
28
29
  # @return [String, nil]
@@ -32,7 +33,8 @@ module Puree
32
33
 
33
34
  # @return [Time, nil]
34
35
  def modified_at
35
- Time.parse xpath_query_for_single_value('/info/modifiedDate')
36
+ xpath_result = xpath_query_for_single_value('/info/modifiedDate')
37
+ Time.parse xpath_result if xpath_result
36
38
  end
37
39
 
38
40
  # @return [String, nil]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puree
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Albin-Clark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http