search_solr_tools 3.3.1 → 3.3.3

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: 3a9a32ebeed875799854bd53c0b5013604fa9b71
4
- data.tar.gz: 755fe9ebb1fb6af9cb6ad4c813c6c288bcca9a65
3
+ metadata.gz: 7ede056ad3f242ee3181914e874335216920d6fb
4
+ data.tar.gz: 778b003b040565581be421b43cccfb49f4086952
5
5
  SHA512:
6
- metadata.gz: fe7cb79dd54c457bbb6ab5d863c14e2a0a4497fce9bf8e5b33da6a9376217f6b06fab12aecbd184d60435c3675dc7d4aac6d0f00f6ead2e411029f98f4f83ce6
7
- data.tar.gz: e059a89eb73aa392ec660ad28492dc79fb5c27c7591ba2851ac1dc116fff0191922544d0619a8cc3c79f3cfe9487af650d92de056e7c845283ac94a64ab377cb
6
+ metadata.gz: 3e9665f5671a2b1f195ec51902d396dd302b262dd848776259db3ba176e6eea53f716f4d1557ca6e8cc1d3954dc5034ae7d66664faa25db112b0a78c12f9733f
7
+ data.tar.gz: 3a632303193cec2b4784dce4cf0311ba69826b6d1b00c8cbe8da43748bce11434299cc378fdff507411b5003f943da37326b880d860118c51319d849c6f7a90a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v3.3.2
2
+
3
+ Bugfix
4
+
5
+ - Added quote checking for cisl offset parsing check
6
+
1
7
  ## v3.3.1
2
8
 
3
9
  Bugfix
@@ -90,7 +90,7 @@ module SearchSolrTools
90
90
 
91
91
  # Some of the docs will cause Solr to crash - CPU goes to 195% with `top` and it
92
92
  # doesn't seem to recover.
93
- return success unless doc_valid?(doc) if content_type == XML_CONTENT_TYPE
93
+ return success if content_type == XML_CONTENT_TYPE && !doc_valid?(doc)
94
94
 
95
95
  doc_serialized = get_serialized_doc(doc, content_type)
96
96
 
@@ -42,12 +42,14 @@ module SearchSolrTools
42
42
  # To get around this I'd prefer to make assumptions about the token and let it break if
43
43
  # they change the formatting. For now, all fields other than offset should be able to be
44
44
  # assumed to remain constant.
45
+ # glewis 2016-01-15: It broke, offset has quotes around it, so I updated the regex to account for
46
+ # the possibility, including '"' or '"'
45
47
  # If the input is empty, then we are done - return an empty string, which is checked for
46
48
  # in the harvest loop.
47
49
  def format_resumption_token(resumption_token)
48
50
  return '' if resumption_token.empty?
49
51
 
50
- resumption_token =~ /offset:(\d+)/
52
+ resumption_token =~ /offset(?:"|")?:(\d+)/
51
53
  offset = Regexp.last_match(1)
52
54
 
53
55
  {
@@ -1,3 +1,3 @@
1
1
  module SearchSolrTools
2
- VERSION = '3.3.1'
2
+ VERSION = '3.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: search_solr_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Chalstrom
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-09-25 00:00:00.000000000 Z
15
+ date: 2016-01-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: iso8601
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
347
347
  version: '0'
348
348
  requirements: []
349
349
  rubyforge_project:
350
- rubygems_version: 2.4.8
350
+ rubygems_version: 2.4.5.1
351
351
  signing_key:
352
352
  specification_version: 4
353
353
  summary: Tools to harvest and manage various scientific dataset feeds in a Solr instance.