puree 0.16.0 → 0.16.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/README.md +2 -2
- data/lib/puree/collection.rb +1 -1
- data/lib/puree/dataset.rb +2 -2
- data/lib/puree/project.rb +2 -2
- data/lib/puree/publication.rb +2 -2
- data/lib/puree/version.rb +1 -1
- data/puree.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 702c6796091f8038d2f16e64a08771e0c7de343a
|
4
|
+
data.tar.gz: 159ce8cf44a772788a75d09c805646270b6a4191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 016eab3513888247691e34ebf767d229cbf93cd60a0e29b06473a81a697334fd3e4de07da7153b11050e7042e9806483640b9d7b6afa2a70e1096a8043d8702b
|
7
|
+
data.tar.gz: 7ccfa0e8cc2c138dfd7fe9cb54b27889172e29d4c7055d942b578b4b47fc7f3f43991d67d320f90a5deb579eaa47da69c9bb9730f72bae0854d4a5a2088dde64
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
- Factory to make resource objects?
|
8
8
|
- Make ALL dates ISO 8601 YYYY-MM-DD, rather than mirror varying formats from Pure?
|
9
9
|
|
10
|
+
## 0.16.1 - 2016-08-30
|
11
|
+
### Fixed
|
12
|
+
- Dataset, Project, Publication - person uuid returns text rather than a Nokogiri object.
|
13
|
+
|
10
14
|
## 0.16.0 - 2016-08-19
|
11
15
|
### Added
|
12
16
|
- Collection - instance parameter.
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Purée [](https://badge.fury.io/rb/puree)
|
2
|
-
|
2
|
+
Consumes the Pure Research Information System API and puts the metadata into simple data structures.
|
3
3
|
|
4
4
|
## Installation
|
5
5
|
|
@@ -48,7 +48,7 @@ metadata = c.find limit: 50
|
|
48
48
|
...and get the data from an array of hashes or from an array of instances.
|
49
49
|
|
50
50
|
## Documentation
|
51
|
-
[API in YARD](http://www.rubydoc.info/gems/puree
|
51
|
+
[API in YARD](http://www.rubydoc.info/gems/puree)
|
52
52
|
|
53
53
|
[Detailed usage](https://github.com/lulibrary/puree/wiki)
|
54
54
|
|
data/lib/puree/collection.rb
CHANGED
data/lib/puree/dataset.rb
CHANGED
@@ -279,10 +279,10 @@ module Puree
|
|
279
279
|
uuid_internal = i.at_xpath('person/@uuid')
|
280
280
|
uuid_external = i.at_xpath('externalPerson/@uuid')
|
281
281
|
if uuid_internal
|
282
|
-
o['uuid'] = uuid_internal
|
282
|
+
o['uuid'] = uuid_internal.text.strip
|
283
283
|
internal << o
|
284
284
|
elsif uuid_external
|
285
|
-
o['uuid'] = uuid_external
|
285
|
+
o['uuid'] = uuid_external.text.strip
|
286
286
|
external << o
|
287
287
|
else
|
288
288
|
other << o
|
data/lib/puree/project.rb
CHANGED
@@ -151,10 +151,10 @@ module Puree
|
|
151
151
|
uuid_internal = i.at_xpath('person/@uuid')
|
152
152
|
uuid_external = i.at_xpath('externalPerson/@uuid')
|
153
153
|
if uuid_internal
|
154
|
-
o['uuid'] = uuid_internal
|
154
|
+
o['uuid'] = uuid_internal.text.strip
|
155
155
|
internal << o
|
156
156
|
elsif uuid_external
|
157
|
-
o['uuid'] = uuid_external
|
157
|
+
o['uuid'] = uuid_external.text.strip
|
158
158
|
external << o
|
159
159
|
else
|
160
160
|
other << o
|
data/lib/puree/publication.rb
CHANGED
@@ -189,10 +189,10 @@ module Puree
|
|
189
189
|
uuid_internal = i.at_xpath('person/@uuid')
|
190
190
|
uuid_external = i.at_xpath('externalPerson/@uuid')
|
191
191
|
if uuid_internal
|
192
|
-
o['uuid'] = uuid_internal
|
192
|
+
o['uuid'] = uuid_internal.text.strip
|
193
193
|
internal << o
|
194
194
|
elsif uuid_external
|
195
|
-
o['uuid'] = uuid_external
|
195
|
+
o['uuid'] = uuid_external.text.strip
|
196
196
|
external << o
|
197
197
|
else
|
198
198
|
other << o
|
data/lib/puree/version.rb
CHANGED
data/puree.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Adrian Albin-Clark"]
|
10
10
|
spec.email = ["a.albin-clark@lancaster.ac.uk"]
|
11
11
|
spec.summary = %q{A client for the Pure Research Information System API.}
|
12
|
-
spec.description = %q{
|
12
|
+
spec.description = %q{Consumes the Pure Research Information System API and puts the metadata into simple data structures.}
|
13
13
|
spec.homepage = "https://github.com/lulibrary/puree.git"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
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: 0.16.
|
4
|
+
version: 0.16.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: 2016-08-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -38,8 +38,8 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.6'
|
41
|
-
description:
|
42
|
-
|
41
|
+
description: Consumes the Pure Research Information System API and puts the metadata
|
42
|
+
into simple data structures.
|
43
43
|
email:
|
44
44
|
- a.albin-clark@lancaster.ac.uk
|
45
45
|
executables: []
|