pg_search 2.3.3 → 2.3.4

This diff has not been reviewed by any users.
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: 1c754738322b4dea0ecf3f70b8ddb03c5ff26bbe0f44578f6870c9f0e9fe6604
4
- data.tar.gz: 4d8dc4be9b36a8a35cbaf6c759f9e973242e60c6b2eaf03b92d177297a7ad2b1
3
+ metadata.gz: a217bfd36241c2a3b7e9d496fbcafcda084f0ab87c50baaee487ed3ad1349774
4
+ data.tar.gz: 2adb9c974d6b1d00fbf89be865c1901e759de8956daa8b5795407a51468abc6e
5
5
  SHA512:
6
- metadata.gz: '09b9d4b415a215bf24e38f1f3c80b309aaf7c4c52774e463f07db9f70496bf6bfde3bbd3fd0c69a4872ab531dc7a7fff098b6c11b1b7f5f0134b41e8feb73e4b'
7
- data.tar.gz: a41a81af41368584b5cc4bbb6174c800e9d5dca906630db567cb908aa4280f921f2a1d579805d008dc77011b16d3b7ca5e025357cb0d51f777bd54cf848b8bc3
6
+ metadata.gz: 16e3c8d3a801a3e2cee0a38b42de4ce5d74142c08be3908fbc733b591312047df33e4ec0101d7e2029646d4476d9875146d64bed90cb3492bd921967462eee01
7
+ data.tar.gz: 0d5507703452f0b8607d2bb3ea355375ab88dcbf99fdc8239fe0a255820ad782e3d7ecd9101f28bde9f2df2c092aa323cb1c7d23c6460bd967b070efde4a33a8
@@ -3,7 +3,6 @@ require:
3
3
  - rubocop-rails
4
4
  - rubocop-rake
5
5
  - rubocop-rspec
6
- - rubocop-thread_safety
7
6
 
8
7
  AllCops:
9
8
  TargetRubyVersion: 2.5
@@ -103,7 +102,7 @@ RSpec/ExpectInHook:
103
102
  Enabled: false
104
103
 
105
104
  RSpec/FilePath:
106
- CustomTransform:
105
+ CustomTransform:
107
106
  TSearch: "tsearch"
108
107
  DMetaphone: "dmetaphone"
109
108
 
@@ -3,7 +3,7 @@ bundler_args: --binstubs
3
3
  cache: bundler
4
4
 
5
5
  rvm:
6
- - 2.7.1
6
+ - 2.7.2
7
7
  - 2.6.6
8
8
  - 2.5.8
9
9
  - jruby-9.2.11.1
@@ -1,5 +1,10 @@
1
1
  # pg_search changelog
2
2
 
3
+ ## 2.3.4
4
+
5
+ * Fix issue when setting various options directly on the `PgSearch` module while
6
+ running with a threaded web server, such as Puma. (Anton Rieder)
7
+
3
8
  ## 2.3.3
4
9
 
5
10
  * Drop support for Ruby < 2.5.
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "active_record"
4
4
  require "active_support/concern"
5
- require "active_support/core_ext/module/attribute_accessors_per_thread"
5
+ require "active_support/core_ext/module/attribute_accessors"
6
6
  require "active_support/core_ext/string/strip"
7
7
 
8
8
  require "pg_search/configuration"
@@ -27,10 +27,10 @@ module PgSearch
27
27
  base.include PgSearch::Model
28
28
  end
29
29
 
30
- thread_mattr_accessor :multisearch_options
30
+ mattr_accessor :multisearch_options
31
31
  self.multisearch_options = {}
32
32
 
33
- thread_mattr_accessor :unaccent_function
33
+ mattr_accessor :unaccent_function
34
34
  self.unaccent_function = "unaccent"
35
35
 
36
36
  class << self
@@ -21,13 +21,11 @@ module PgSearch
21
21
  end
22
22
  end
23
23
 
24
- # rubocop:disable ThreadSafety/ClassAndModuleAttributes
25
24
  def multisearchable(options = {})
26
25
  include PgSearch::Multisearchable
27
26
  class_attribute :pg_search_multisearchable_options
28
27
  self.pg_search_multisearchable_options = options
29
28
  end
30
- # rubocop:enable ThreadSafety/ClassAndModuleAttributes
31
29
  end
32
30
 
33
31
  def method_missing(symbol, *args)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgSearch
4
- VERSION = '2.3.3'
4
+ VERSION = '2.3.4'
5
5
  end
@@ -29,7 +29,6 @@ Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
29
29
  s.add_development_dependency 'rubocop-rails'
30
30
  s.add_development_dependency 'rubocop-rake'
31
31
  s.add_development_dependency 'rubocop-rspec'
32
- s.add_development_dependency 'rubocop-thread_safety', '>= 0.4.1'
33
32
  s.add_development_dependency 'simplecov'
34
33
  s.add_development_dependency 'warning'
35
34
  s.add_development_dependency 'with_model', '>= 1.2'
@@ -269,8 +269,6 @@ describe PgSearch do
269
269
  it "does not disable multisearch on other threads" do
270
270
  values = Queue.new
271
271
  sync = Queue.new
272
-
273
- # rubocop:disable ThreadSafety/NewThread
274
272
  Thread.new do
275
273
  values.push described_class.multisearch_enabled?
276
274
  sync.pop # wait
@@ -278,7 +276,6 @@ describe PgSearch do
278
276
  sync.pop # wait
279
277
  values.push described_class.multisearch_enabled?
280
278
  end
281
- # rubocop:enable ThreadSafety/NewThread
282
279
 
283
280
  multisearch_enabled_before = values.pop
284
281
  multisearch_enabled_inside = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Hutchins
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-20 00:00:00.000000000 Z
12
+ date: 2020-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -151,20 +151,6 @@ dependencies:
151
151
  - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
- - !ruby/object:Gem::Dependency
155
- name: rubocop-thread_safety
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: 0.4.1
161
- type: :development
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- version: 0.4.1
168
154
  - !ruby/object:Gem::Dependency
169
155
  name: simplecov
170
156
  requirement: !ruby/object:Gem::Requirement