puree 0.16.0 → 0.16.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: 1ddcb83b0373dc8b7ed99439c036f9df30e78e33
4
- data.tar.gz: 725e1793dfce63c7ef1508a136e370e3854059f6
3
+ metadata.gz: 702c6796091f8038d2f16e64a08771e0c7de343a
4
+ data.tar.gz: 159ce8cf44a772788a75d09c805646270b6a4191
5
5
  SHA512:
6
- metadata.gz: ec189df00f33a2024f24071ec2723e34a147bc6fad2b6bd759e5728aca27d8b434582e01502a68c8ed183abf7abd113ba8dff9734e9ea7e8e6c48aa3eaf69efc
7
- data.tar.gz: 71c81c922c09a0b501d3229ff0dbcaa6d1d26cdd051f7224952c51e5d8a72b5c5cbf48148ef3ad63bcf93284c2ebd8cd5dda8fab11e639fdfdfa7a01cbc57f3c
6
+ metadata.gz: 016eab3513888247691e34ebf767d229cbf93cd60a0e29b06473a81a697334fd3e4de07da7153b11050e7042e9806483640b9d7b6afa2a70e1096a8043d8702b
7
+ data.tar.gz: 7ccfa0e8cc2c138dfd7fe9cb54b27889172e29d4c7055d942b578b4b47fc7f3f43991d67d320f90a5deb579eaa47da69c9bb9730f72bae0854d4a5a2088dde64
@@ -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 [![Gem Version](https://badge.fury.io/rb/puree.svg)](https://badge.fury.io/rb/puree)
2
- Purée consumes the Pure Research Information System API and puts the metadata into simple data structures.
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/frames)
51
+ [API in YARD](http://www.rubydoc.info/gems/puree)
52
52
 
53
53
  [Detailed usage](https://github.com/lulibrary/puree/wiki)
54
54
 
@@ -36,7 +36,7 @@ module Puree
36
36
  # @param full [Boolean]
37
37
  # @param instance [Boolean]
38
38
  # @return [Array<Object>]
39
- # @return [Array<Resource subtype>]
39
+ # @return [Array<Resource subclass>]
40
40
  def get(
41
41
  limit: 20,
42
42
  offset: 0,
@@ -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
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Puree
2
- VERSION = "0.16.0"
2
+ VERSION = "0.16.1"
3
3
  end
@@ -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{Puree consumes the Pure Research Information System API and puts the metadata into simple data structures.}
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.0
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-19 00:00:00.000000000 Z
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: Puree consumes the Pure Research Information System API and puts the
42
- metadata into simple data structures.
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: []