db_text_search 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/README.md +1 -1
- data/db_text_search.gemspec +2 -2
- data/lib/db_text_search/case_insensitive.rb +2 -1
- data/lib/db_text_search/case_insensitive/insensitive_column_adapter.rb +1 -1
- data/lib/db_text_search/version.rb +1 -1
- data/shared.gemfile +1 -10
- metadata +12 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1cd1c9c3fac9de18b145e38bbb51b61bb686aa7c4a750bb3857170ee29afdd0
|
4
|
+
data.tar.gz: 2b87d5dc1d79444fffe06eb5686de7f8bf52d2e1a1cfb650ddcc61ff1328e6c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb396b8558c1f6bce6ed3eb9f2c1c70179a729d0f22578fbadbf85503eeeef098596fb7c9dbb26e3a81bc099dcd708ba9746ff69245968de7cda9aea03aba6e1
|
7
|
+
data.tar.gz: bfaff15b9d3e0bb7416d190723e54e9900239421af12faa329f9d8bf2dd9161d9e22b6e17b402b079bd103d3218a689f0b45fa123fba0b526a764691192d2a14
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
data/db_text_search.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|bin|script)/|^\.|Rakefile|Gemfile}) }
|
21
21
|
|
22
22
|
s.require_paths = ['lib']
|
23
|
-
s.required_ruby_version = '
|
23
|
+
s.required_ruby_version = '>= 2.1', '< 4.0'
|
24
24
|
|
25
25
|
s.add_dependency 'activerecord', '>= 4.1.15', '< 7.0'
|
26
26
|
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_development_dependency 'pg', '>= 0.18.4'
|
29
29
|
s.add_development_dependency 'sqlite3', '>= 1.3.11'
|
30
30
|
|
31
|
-
s.add_development_dependency 'rake', '~>
|
31
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
32
32
|
s.add_development_dependency 'rspec', '~> 3.4'
|
33
33
|
s.add_development_dependency 'simplecov'
|
34
34
|
end
|
@@ -42,7 +42,7 @@ module DbTextSearch
|
|
42
42
|
# @param column_name [String, Symbol]
|
43
43
|
# @param options [Hash] passed to ActiveRecord::ConnectionAdapters::SchemaStatements#add_index
|
44
44
|
def self.add_ci_text_column(connection, table_name, column_name, options = {})
|
45
|
-
|
45
|
+
type, options = DbTextSearch.match_adapter(
|
46
46
|
connection,
|
47
47
|
mysql: -> { [:text, options] },
|
48
48
|
postgres: -> {
|
@@ -57,6 +57,7 @@ module DbTextSearch
|
|
57
57
|
end
|
58
58
|
}
|
59
59
|
)
|
60
|
+
connection.add_column table_name, column_name, type, **options
|
60
61
|
end
|
61
62
|
|
62
63
|
# Add an index for case-insensitive string search.
|
@@ -23,7 +23,7 @@ module DbTextSearch
|
|
23
23
|
|
24
24
|
# (see AbstractAdapter.add_index)
|
25
25
|
def self.add_index(connection, table_name, column_name, options = {})
|
26
|
-
connection.add_index table_name, column_name, options
|
26
|
+
connection.add_index table_name, column_name, **options
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
data/shared.gemfile
CHANGED
@@ -1,13 +1,4 @@
|
|
1
|
-
|
2
|
-
group :test do
|
3
|
-
gem 'codeclimate-test-reporter', require: false
|
4
|
-
gem 'codeclimate_batch', require: false,
|
5
|
-
# TODO: use the released version once a new release that supports
|
6
|
-
# codeclimate-test-reporter v1.0+ is out.
|
7
|
-
git: 'https://github.com/sethherr/codeclimate_batch',
|
8
|
-
branch: 'new_simplecov'
|
9
|
-
end
|
10
|
-
else
|
1
|
+
unless ENV['TRAVIS']
|
11
2
|
group :test, :development do
|
12
3
|
gem 'byebug', platform: :mri, require: false
|
13
4
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: db_text_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Mazovetskiy
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -78,14 +78,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '13.0'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '13.0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rspec
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,23 +149,26 @@ homepage: https://github.com/thredded/db_text_search
|
|
149
149
|
licenses:
|
150
150
|
- MIT
|
151
151
|
metadata: {}
|
152
|
-
post_install_message:
|
152
|
+
post_install_message:
|
153
153
|
rdoc_options: []
|
154
154
|
require_paths:
|
155
155
|
- lib
|
156
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- - "
|
158
|
+
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '2.1'
|
161
|
+
- - "<"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '4.0'
|
161
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
165
|
requirements:
|
163
166
|
- - ">="
|
164
167
|
- !ruby/object:Gem::Version
|
165
168
|
version: '0'
|
166
169
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
168
|
-
signing_key:
|
170
|
+
rubygems_version: 3.2.3
|
171
|
+
signing_key:
|
169
172
|
specification_version: 4
|
170
173
|
summary: A unified interface on top of ActiveRecord for SQLite, MySQL, and PostgreSQLfor
|
171
174
|
case-insensitive string search and basic full-text search.
|