puree 1.9.0 → 1.9.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: 514ab272826cb82a877bcc22863cecb49743a0a6
4
- data.tar.gz: 78d14d563e1e3d30e5c077f238b1dc144f7f5c10
3
+ metadata.gz: 62a7e0f61a351c75ad89d9e02351a86b7a3d7db9
4
+ data.tar.gz: 40ba45ce2fd4edbdf7805a4da9e0523141313d60
5
5
  SHA512:
6
- metadata.gz: 6aa295ea3badb41bdab7bc42132fa927ffb23bbf7d0c088005c396b49a77b4e11167f54c69661d1deaf1437fd4bdb5a9b9365566440f3a0d557388859ebe8a6a
7
- data.tar.gz: c5af1358e5c5c084da8b3b6d9e0d077196f57d0d88f83f8d5cd96266da854694ae3402b16b2ba1f446ff774f68ce587b85521cd84cca371322128b8a5f38426f
6
+ metadata.gz: 8e3c77f6f00e25b2a637c3ec501d4ba7e9794878c6bafc3b9db2a1624a138275648d4a82308d3fb7981bfefc3c016f790e1bc64bb645e3bb37b2dd8ffc2b27b7
7
+ data.tar.gz: 21dbbb1df2d1869f492b6acf1e5f7458c72ff32cd58c79f790af7dc98a43f18b760a0a91186ddfe632e0e9ad42534f091fc2966ee0b911ace957ad91db0508ad
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
  ## Unreleased
6
6
  - Metadata: activity?, clipping?, externalPerson?
7
7
 
8
+ ## 1.9.1 - 2018-04-18
9
+ ### Fixed
10
+ - Handle missing created and modified.
11
+
8
12
  ## 1.9.0 - 2018-03-09
9
13
  ### Added
10
14
  - Publication - doi.
@@ -1,5 +1,5 @@
1
1
  module Puree
2
2
  # Semantic version number
3
3
  #
4
- VERSION = "1.9.0"
4
+ VERSION = "1.9.1"
5
5
  end
@@ -26,12 +26,14 @@ module Puree
26
26
 
27
27
  # @return [Time, nil]
28
28
  def created
29
- Time.parse xpath_query_for_single_value('/created')
29
+ xpath_result = xpath_query_for_single_value('/created')
30
+ Time.parse xpath_result if xpath_result
30
31
  end
31
32
 
32
33
  # @return [Time, nil]
33
34
  def modified
34
- Time.parse xpath_query_for_single_value('/modified')
35
+ xpath_result = xpath_query_for_single_value('/modified')
36
+ Time.parse xpath_result if xpath_result
35
37
  end
36
38
 
37
39
  # @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: 1.9.0
4
+ version: 1.9.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-09 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