puree 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 8606b12e11591ec4334727202ae94c999da7e2ce
|
|
4
|
+
data.tar.gz: 8a44e408a74e383891861e0ae275945b4bcd0dda
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b9158b6150662333fbab474f62f8fb43f81ef6d431c0fad7b00cbd4caee07e3b5d35521532262955ec79db8637594e6a8c7cfaf59fe2b9ee7f6f54411037fea
|
|
7
|
+
data.tar.gz: 054591f8cb907856077074bca300fab524e7e9c5d8f5f5170cca1296c71b972a6ab71efd2c434427dc4cce69a57dd2358ca0be000266c9cdddc8577933baac44
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
data/lib/puree/version.rb
CHANGED
|
@@ -22,7 +22,8 @@ module Puree
|
|
|
22
22
|
|
|
23
23
|
# @return [Time, nil]
|
|
24
24
|
def created_at
|
|
25
|
-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|