search_solr_tools 6.3.0 → 6.4.0

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
  SHA256:
3
- metadata.gz: f9ced4643b8adbda2b5ef09192f036af86878e07243fe959448213762e0e5cc1
4
- data.tar.gz: 0a5f27a7bc1d8c9c0c07a20b6fbf122d5a3b6163a5654db635d5c478ac4a21bc
3
+ metadata.gz: 310dba4a749b285756284729fe320c2344ac345c3251225dc1a46cc4c0f38d79
4
+ data.tar.gz: 98a397d862c73f27b9554560c55f2132f6d3211018c4cbe76a98f501cac2d5d0
5
5
  SHA512:
6
- metadata.gz: cc66f8b40c62e2640fd72ce05aa2ac01aa76c58c730b6c445976fc7cf6e43b88cff29ec088f73e5dff913c879f7a1a31016cb634d851cfb3adb7b8bb735614c8
7
- data.tar.gz: f896f7b473f977f0e349d422f6568774342e6bdb66e1a7dad1cf4477d0ffa7e9b05b81184898ab2d4d69c44f8ca98a3aa6791234926190484820cca4b439dc7d
6
+ metadata.gz: d02152bd10e9bc3ea59d6a2a8448ed2ab63da49db35dc0b23dbf27236f85253987169eaefbe2a3da3e527f9d63d11bdab08d58b3ebb9673579daebbdb8de6097
7
+ data.tar.gz: 3cc3e2199432b47dd02a1e45238c8405821673c808cd83392ebda9837890f949b193f9267b3afbd760f8449490ef5e97a911ad4c97dd856081307ba7f73095b4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v6.4.0 (2023-08-14)
2
+
3
+ - Fixed a bug with the sanitization, which was trying to modify the
4
+ string directly (causing problems with frozen strings). Changed to
5
+ return a new, sanitized string.
6
+
1
7
  ## v6.3.0 (2023-07-24)
2
8
 
3
9
  - Update Rubocop configuration to actually run against files, and make
data/README.md CHANGED
@@ -210,6 +210,5 @@ license is included in the file COPYING.
210
210
 
211
211
  Andy Grauch, Brendan Billingsley, Chris Chalstrom, Danielle Harper, Ian
212
212
  Truslove, Jonathan Kovarik, Luis Lopez, Miao Liu, Michael Brandt, Stuart Reed,
213
- Julia Collins, Scott Lewis
214
- (2023): Arctic Data Explorer SOLR Search software tools. The National Snow and
215
- Ice Data Center. Software.
213
+ Julia Collins, Scott Lewis (2023): Arctic Data Explorer SOLR Search software tools.
214
+ The National Snow and Ice Data Center. Software. https://doi.org/10.7265/n5jq0xzm
@@ -90,9 +90,9 @@ module SearchSolrTools
90
90
 
91
91
  def sanitize_data_centers_constraints(query_string)
92
92
  # Remove lucene special characters, preserve the query parameter and compress whitespace
93
- query_string.gsub!(/[:&|!~\-\(\)\{\}\[\]\^\*\?\+]+/, ' ')
94
- query_string.gsub!('data_centers ', 'data_centers:')
95
- query_string.gsub!('source ', 'source:')
93
+ query_string = query_string.gsub(/[:&|!~\-\(\)\{\}\[\]\^\*\?\+]+/, ' ')
94
+ query_string = query_string.gsub('data_centers ', 'data_centers:')
95
+ query_string = query_string.gsub('source ', 'source:')
96
96
  query_string.squeeze(' ').strip
97
97
  end
98
98
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SearchSolrTools
4
- VERSION = '6.3.0'
4
+ VERSION = '6.4.0'
5
5
  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: 6.3.0
4
+ version: 6.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Chalstrom
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2023-07-24 00:00:00.000000000 Z
17
+ date: 2023-08-14 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: ffi-geos