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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/puree/version.rb +1 -1
- data/lib/puree/xml_extractor/resource.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62a7e0f61a351c75ad89d9e02351a86b7a3d7db9
|
4
|
+
data.tar.gz: 40ba45ce2fd4edbdf7805a4da9e0523141313d60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e3c77f6f00e25b2a637c3ec501d4ba7e9794878c6bafc3b9db2a1624a138275648d4a82308d3fb7981bfefc3c016f790e1bc64bb645e3bb37b2dd8ffc2b27b7
|
7
|
+
data.tar.gz: 21dbbb1df2d1869f492b6acf1e5f7458c72ff32cd58c79f790af7dc98a43f18b760a0a91186ddfe632e0e9ad42534f091fc2966ee0b911ace957ad91db0508ad
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
data/lib/puree/version.rb
CHANGED
@@ -26,12 +26,14 @@ module Puree
|
|
26
26
|
|
27
27
|
# @return [Time, nil]
|
28
28
|
def created
|
29
|
-
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|