thinking-sphinx 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c14b609439492778ba5139bc3e75ffc17952a803c8d6f0d892eb76b7587da4cb
4
- data.tar.gz: fe3ba9a0b8c1d081960ff9f988e5a8a61e094da07d0dccdf3854f9962af6da26
3
+ metadata.gz: 174a0193bd92fcdca5e1af880b893ddf5ae94e477e53c03f7684d48470042a89
4
+ data.tar.gz: fe6b9df85b827b0ffec5a60ae9c691b4b50efa3774bd83854124e3639ecea93d
5
5
  SHA512:
6
- metadata.gz: 6642a48f92ce9b7040e05eb2552a6329492151114468bdf2b82f31f5a6875ba33fda5e190ec0a0220d8a058b69af25057f8ce5beead88ba8351aa8d63dfbb5c0
7
- data.tar.gz: 89b8ee56a4915cd1db7bd761766c56d2586ae575028a0fae2924d73588c312eb9f9505d2d63272e275710d7b6be4f81c63445d0a320363bcb098d3f4686913ef
6
+ metadata.gz: 7eac5ba48a5f23b6e142a33065c27490df0036abd94899dba580e2c1f738904f46f203657e2b34549028b9c7f64dda6a5642c80e4bea6acc989a66f6b0bebade
7
+ data.tar.gz: 9b8a4875deeb1b6a38fe3127162e77e0e8a8879ae6e7aa4da7d457cc00869c0e77d4d2a95c691ff1d12eab0c9f20d06be8abc024b911f15819fef03890d1f5f8
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project (at least, from v3.0.0 onwards) are documented in this file.
4
4
 
5
+ ## 5.2.1 - 2021-08-09
6
+
7
+ [Release Notes](https://github.com/pat/thinking-sphinx/releases/tag/v5.2.1)
8
+
9
+ ### Fixed
10
+
11
+ * Ensure ActiveRecord components are loaded for rake tasks, but only after the Rails application has initialised. More details in [#1199](https://github.com/pat/thinking-sphinx/issues/1199).
12
+
5
13
  ## 5.2.0 - 2021-06-12
6
14
 
7
15
  [Release Notes](https://github.com/pat/thinking-sphinx/releases/tag/v5.2.0)
data/README.textile CHANGED
@@ -1,6 +1,6 @@
1
1
  h1. Thinking Sphinx
2
2
 
3
- Thinking Sphinx is a library for connecting ActiveRecord to the Sphinx full-text search tool, and integrates closely with Rails (but also works with other Ruby web frameworks). The current release is v5.2.0.
3
+ Thinking Sphinx is a library for connecting ActiveRecord to the Sphinx full-text search tool, and integrates closely with Rails (but also works with other Ruby web frameworks). The current release is v5.2.1.
4
4
 
5
5
  h2. Upgrading
6
6
 
@@ -5,12 +5,12 @@ class ThinkingSphinx::Railtie < Rails::Railtie
5
5
  ThinkingSphinx::Configuration.reset
6
6
  end
7
7
 
8
- initializer 'thinking_sphinx.initialisation' do
9
- ActiveSupport.on_load(:active_record) do
10
- require 'thinking_sphinx/active_record'
11
- ActiveRecord::Base.include ThinkingSphinx::ActiveRecord::Base
12
- end
8
+ config.after_initialize do
9
+ require 'thinking_sphinx/active_record'
10
+ ActiveRecord::Base.include ThinkingSphinx::ActiveRecord::Base
11
+ end
13
12
 
13
+ initializer 'thinking_sphinx.initialisation' do
14
14
  if ActiveSupport::VERSION::MAJOR > 5
15
15
  if Rails.application.config.autoloader == :zeitwerk
16
16
  ActiveSupport::Dependencies.autoload_paths.delete(
@@ -5,7 +5,7 @@ $:.push File.expand_path('../lib', __FILE__)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'thinking-sphinx'
8
- s.version = '5.2.0'
8
+ s.version = '5.2.1'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Pat Allan"]
11
11
  s.email = ["pat@freelancing-gods.com"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thinking-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-12 00:00:00.000000000 Z
11
+ date: 2021-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord