puree 2.8.0 → 2.8.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7042cad4f264724c8db5e78ee7e044517884965bb601095b8cd11ebd8883cef9
|
|
4
|
+
data.tar.gz: 50405daa56c748f5b4157a44035b9f009b59a05c889a2c3634e65ea3de9fda84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '09027f7e53686f27acd1ae068237931897502c6c6848d523a7a641a049b1fd4c411e5b25507c1ce693f62cb7a95e6bc439fefbdc8ba4bcfe8012896ffc17e65b'
|
|
7
|
+
data.tar.gz: 38a92a6b89047597c4dd207cfa4d4997297952342bd2628864d765d50a104fde1fa1597f99c407e8312c8f8a8d6d9fa5226e18ec53d3a9026e5d01dec2531560
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
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.8.1 2019-10-02
|
|
6
|
+
### Fixed
|
|
7
|
+
- Research output - title.
|
|
8
|
+
- Keyword mixin.
|
|
9
|
+
|
|
5
10
|
## 2.8.0 2019-07-04
|
|
6
11
|
### Changed
|
|
7
12
|
- For Pure API 514.
|
data/lib/puree/version.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Puree
|
|
|
10
10
|
|
|
11
11
|
# @return [Array<String>]
|
|
12
12
|
def keyword_group(logical_name)
|
|
13
|
-
xpath_result = xpath_query "/keywordGroups/keywordGroup[@logicalName='#{logical_name}']
|
|
13
|
+
xpath_result = xpath_query "/keywordGroups/keywordGroup[@logicalName='#{logical_name}']/keywordContainers/keywordContainer/freeKeywords/freeKeyword/freeKeywords/freeKeyword"
|
|
14
14
|
data_arr = xpath_result.map { |i| i.text.strip }
|
|
15
15
|
data_arr.uniq
|
|
16
16
|
end
|
|
@@ -13,7 +13,6 @@ module Puree
|
|
|
13
13
|
include Puree::XMLExtractor::ProjectMixin
|
|
14
14
|
include Puree::XMLExtractor::ResearchOutputMixin
|
|
15
15
|
include Puree::XMLExtractor::WorkflowMixin
|
|
16
|
-
include Puree::XMLExtractor::TitleMixin
|
|
17
16
|
include Puree::XMLExtractor::TypeMixin
|
|
18
17
|
|
|
19
18
|
def initialize(xml)
|
|
@@ -154,6 +153,11 @@ module Puree
|
|
|
154
153
|
xpath_query_for_single_value '/subTitle'
|
|
155
154
|
end
|
|
156
155
|
|
|
156
|
+
# @return [String, nil]
|
|
157
|
+
def title
|
|
158
|
+
xpath_query_for_single_value '/title'
|
|
159
|
+
end
|
|
160
|
+
|
|
157
161
|
# @return [String, nil]
|
|
158
162
|
def translated_subtitle
|
|
159
163
|
xpath_query_for_single_value '/translatedSubTitles/translatedSubTitle'
|
|
@@ -86,6 +86,9 @@ class TestXMLExtractorResearchOutput < Minitest::Test
|
|
|
86
86
|
assert_instance_of Array, x.research_outputs
|
|
87
87
|
assert_related_content_header x.research_outputs.first
|
|
88
88
|
|
|
89
|
+
assert_instance_of String, x.title
|
|
90
|
+
refute_empty x.title
|
|
91
|
+
|
|
89
92
|
assert_instance_of String, x.type
|
|
90
93
|
refute_empty x.type
|
|
91
94
|
|
|
@@ -262,6 +265,8 @@ class TestXMLExtractorResearchOutput < Minitest::Test
|
|
|
262
265
|
|
|
263
266
|
assert_nil x.subtitle
|
|
264
267
|
|
|
268
|
+
assert_nil x.title
|
|
269
|
+
|
|
265
270
|
assert_nil x.type
|
|
266
271
|
|
|
267
272
|
assert_nil x.translated_subtitle
|
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.8.
|
|
4
|
+
version: 2.8.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: 2019-
|
|
11
|
+
date: 2019-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|
|
@@ -236,7 +236,7 @@ licenses:
|
|
|
236
236
|
- MIT
|
|
237
237
|
metadata:
|
|
238
238
|
source_code_uri: https://github.com/lulibrary/puree
|
|
239
|
-
documentation_uri: https://www.rubydoc.info/gems/puree/2.8.
|
|
239
|
+
documentation_uri: https://www.rubydoc.info/gems/puree/2.8.1
|
|
240
240
|
post_install_message:
|
|
241
241
|
rdoc_options: []
|
|
242
242
|
require_paths:
|