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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1475e874d78f28291bfe8e24423400f2157051b6cab2311096d3de5d14032ff0
4
- data.tar.gz: 6ee5f6d0c0858209356509b85a0401de371e474785584f130fcdd047c88cf3b5
3
+ metadata.gz: f1cd1c9c3fac9de18b145e38bbb51b61bb686aa7c4a750bb3857170ee29afdd0
4
+ data.tar.gz: 2b87d5dc1d79444fffe06eb5686de7f8bf52d2e1a1cfb650ddcc61ff1328e6c8
5
5
  SHA512:
6
- metadata.gz: 0d1895a9eef68978c9bb72d524a3f6235eebe92c4208e4392e1f6b8c768e3b8db70ada1de681e39b826afe4b7227fe388d441fd05cf593cd5420a6426eabfc40
7
- data.tar.gz: 474f7829199fa1fb145e35c952af728cfd00b4ba48d3ef2203ea09ea443fa64644ac62f4eadff4e9f19e80d0da0f79be9870d976871c3d638615ddd5c4f70c2a
6
+ metadata.gz: cb396b8558c1f6bce6ed3eb9f2c1c70179a729d0f22578fbadbf85503eeeef098596fb7c9dbb26e3a81bc099dcd708ba9746ff69245968de7cda9aea03aba6e1
7
+ data.tar.gz: bfaff15b9d3e0bb7416d190723e54e9900239421af12faa329f9d8bf2dd9161d9e22b6e17b402b079bd103d3218a689f0b45fa123fba0b526a764691192d2a14
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.3.2
2
+
3
+ * Allow Ruby 3.0
4
+
1
5
  ## v0.3.1
2
6
 
3
7
  * Rails 6 support.
data/README.md CHANGED
@@ -11,7 +11,7 @@ DbTextSearch provides a unified interface on top of ActiveRecord for SQLite, MyS
11
11
  Add this line to your application's Gemfile:
12
12
 
13
13
  ```ruby
14
- gem 'db_text_search', '~> 0.3.1'
14
+ gem 'db_text_search', '~> 0.3.2'
15
15
  ```
16
16
 
17
17
  ## Usage
@@ -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 = '~> 2.1'
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', '~> 11.0'
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
- connection.add_column table_name, column_name, *DbTextSearch.match_adapter(
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module DbTextSearch
4
4
  # Gem version
5
- VERSION = '0.3.1'
5
+ VERSION = '0.3.2'
6
6
  end
data/shared.gemfile CHANGED
@@ -1,13 +1,4 @@
1
- if ENV['TRAVIS']
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.1
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: 2019-08-17 00:00:00.000000000 Z
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: '11.0'
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: '11.0'
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.0.2
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.