pg_search 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -2
- data/.travis.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/pg_search.rb +3 -3
- data/lib/pg_search/model.rb +0 -2
- data/lib/pg_search/version.rb +1 -1
- data/pg_search.gemspec +0 -1
- data/spec/lib/pg_search_spec.rb +0 -3
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a217bfd36241c2a3b7e9d496fbcafcda084f0ab87c50baaee487ed3ad1349774
|
4
|
+
data.tar.gz: 2adb9c974d6b1d00fbf89be865c1901e759de8956daa8b5795407a51468abc6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16e3c8d3a801a3e2cee0a38b42de4ce5d74142c08be3908fbc733b591312047df33e4ec0101d7e2029646d4476d9875146d64bed90cb3492bd921967462eee01
|
7
|
+
data.tar.gz: 0d5507703452f0b8607d2bb3ea355375ab88dcbf99fdc8239fe0a255820ad782e3d7ecd9101f28bde9f2df2c092aa323cb1c7d23c6460bd967b070efde4a33a8
|
data/.rubocop.yml
CHANGED
@@ -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
|
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/pg_search.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require "active_record"
|
4
4
|
require "active_support/concern"
|
5
|
-
require "active_support/core_ext/module/
|
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
|
-
|
30
|
+
mattr_accessor :multisearch_options
|
31
31
|
self.multisearch_options = {}
|
32
32
|
|
33
|
-
|
33
|
+
mattr_accessor :unaccent_function
|
34
34
|
self.unaccent_function = "unaccent"
|
35
35
|
|
36
36
|
class << self
|
data/lib/pg_search/model.rb
CHANGED
@@ -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)
|
data/lib/pg_search/version.rb
CHANGED
data/pg_search.gemspec
CHANGED
@@ -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'
|
data/spec/lib/pg_search_spec.rb
CHANGED
@@ -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.
|
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-
|
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
|