sunspot_rails 2.6.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +11 -44
- data/lib/sunspot/rails/configuration.rb +2 -1
- data/lib/sunspot/rails/log_subscriber.rb +3 -3
- data/spec/model_lifecycle_spec.rb +1 -1
- data/spec/rails_app/config/boot.rb +1 -1
- data/spec/rails_app/config/storage.yml +3 -0
- data/sunspot_rails.gemspec +3 -11
- metadata +14 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 566ddf5009e629c5a63370278054bf64f862766cd811baf8122d75b20bab0972
|
4
|
+
data.tar.gz: 2832d1904c237bff365c36174c55f0f983d5b3454f5784ecb8b0ea4d1b64b256
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9087d4982ad71ae6b90f9a093bc0180aa1d714ec334830abd8a44d61bba3f1bba0523d3e7884bcfb21c6c8b48307f68ad934277235f2de4ee534d1dd3b84fd3f
|
7
|
+
data.tar.gz: '088ccc5c59a97727a3017d3e3ffec2c042345f1150b4e121e662d0bd7c33b8bb5e840a07e2f99b0bec0f638a0d06a3ebc70787352ab587435d47520cdc2e4368'
|
data/Appraisals
CHANGED
@@ -1,64 +1,31 @@
|
|
1
1
|
ruby_version = Gem::Version.new(RUBY_VERSION)
|
2
2
|
|
3
|
-
if ruby_version < Gem::Version.new('
|
4
|
-
['
|
5
|
-
appraise "rails-#{rails_version}" do
|
6
|
-
gem 'bundler', '>= 1.3.0', '< 2.0'
|
7
|
-
gem 'sunspot', path: File.expand_path('sunspot', ENV['SUNSPOT_LIB_HOME'])
|
8
|
-
gem 'sunspot_solr', path: File.expand_path('sunspot_solr', ENV['SUNSPOT_LIB_HOME'])
|
9
|
-
gem 'rails', "~> #{rails_version}"
|
10
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
11
|
-
gem 'rspec', '~> 3.4.0'
|
12
|
-
gem 'rspec-rails', '~> 3.4.0'
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
if ruby_version < Gem::Version.new('2.4.0')
|
18
|
-
appraise 'rails-3.2.0' do
|
19
|
-
gem 'bundler', '>= 1.3.0', '< 2.0'
|
20
|
-
gem 'sunspot', path: File.expand_path('sunspot', ENV['SUNSPOT_LIB_HOME'])
|
21
|
-
gem 'sunspot_solr', path: File.expand_path('sunspot_solr', ENV['SUNSPOT_LIB_HOME'])
|
22
|
-
gem 'rails', '~> 3.2.0'
|
23
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
24
|
-
gem 'test-unit', '~> 3.2.0'
|
25
|
-
gem 'rspec', '~> 3.4.0'
|
26
|
-
gem 'rspec-rails', '~> 3.4.0'
|
27
|
-
end
|
28
|
-
|
29
|
-
['4.0.0', '4.1.0'].each do |rails_version|
|
3
|
+
if ruby_version < Gem::Version.new('3.0.0')
|
4
|
+
['5.0.0', '5.1.0', '5.2.0'].each do |rails_version|
|
30
5
|
appraise "rails-#{rails_version}" do
|
31
|
-
gem 'bundler', '>= 1.3.0', '< 2.0'
|
32
6
|
gem 'sunspot', path: File.expand_path('sunspot', ENV['SUNSPOT_LIB_HOME'])
|
33
7
|
gem 'sunspot_solr', path: File.expand_path('sunspot_solr', ENV['SUNSPOT_LIB_HOME'])
|
34
8
|
gem 'rails', "~> #{rails_version}"
|
9
|
+
gem 'sprockets', '~> 3.0'
|
35
10
|
gem 'progress_bar', '~> 1.0.5', require: false
|
36
|
-
gem '
|
37
|
-
gem 'rspec
|
11
|
+
gem 'sqlite3', '~> 1.3.0'
|
12
|
+
gem 'rspec', '~> 3.7'
|
13
|
+
gem 'rspec-rails', '~> 3.7'
|
38
14
|
end
|
39
15
|
end
|
40
16
|
end
|
41
17
|
|
42
|
-
if ruby_version < Gem::Version.new('
|
43
|
-
|
44
|
-
gem 'bundler', '>= 1.3.0', '< 2.0'
|
45
|
-
gem 'sunspot', path: File.expand_path('sunspot', ENV['SUNSPOT_LIB_HOME'])
|
46
|
-
gem 'sunspot_solr', path: File.expand_path('sunspot_solr', ENV['SUNSPOT_LIB_HOME'])
|
47
|
-
gem 'rails', '~> 4.2.0'
|
48
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
49
|
-
gem 'rspec', '~> 3.4.0'
|
50
|
-
gem 'rspec-rails', '~> 3.4.0'
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
if ruby_version >= Gem::Version.new('2.2.0')
|
55
|
-
['5.0.0', '5.1.0', '5.2.0'].each do |rails_version|
|
18
|
+
if Gem::Version.new('3.0.0') <= ruby_version && ruby_version < Gem::Version.new('3.4.0')
|
19
|
+
['6.1.0', '7.0.0'].each do |rails_version|
|
56
20
|
appraise "rails-#{rails_version}" do
|
57
21
|
gem 'sunspot', path: File.expand_path('sunspot', ENV['SUNSPOT_LIB_HOME'])
|
58
22
|
gem 'sunspot_solr', path: File.expand_path('sunspot_solr', ENV['SUNSPOT_LIB_HOME'])
|
59
23
|
gem 'rails', "~> #{rails_version}"
|
60
24
|
gem 'sprockets', '~> 3.0'
|
61
25
|
gem 'progress_bar', '~> 1.0.5', require: false
|
26
|
+
gem 'sqlite3', '~> 1.4.0'
|
27
|
+
gem 'rspec', '~> 3'
|
28
|
+
gem 'rspec-rails', '~> 6'
|
62
29
|
end
|
63
30
|
end
|
64
31
|
end
|
@@ -377,7 +377,8 @@ module Sunspot #:nodoc:
|
|
377
377
|
if File.exist?(path)
|
378
378
|
File.open(path) do |file|
|
379
379
|
processed = ERB.new(file.read).result
|
380
|
-
YAML.load(processed)
|
380
|
+
user_configurations = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(processed) : YAML.load(processed)
|
381
|
+
user_configurations[::Rails.env]
|
381
382
|
end
|
382
383
|
else
|
383
384
|
{}
|
@@ -33,15 +33,15 @@ module Sunspot
|
|
33
33
|
name = '%s (%.1fms)' % ["SOLR Request", event.duration]
|
34
34
|
|
35
35
|
# produces: path=select parameters={fq: ["type:Tag"], q: "rossi", fl: "* score", qf: "tag_name_text", defType: "edismax", start: 0, rows: 20}
|
36
|
-
path = color(event.payload[:path],
|
36
|
+
path = color(event.payload[:path], nil, bold: true)
|
37
37
|
parameters = event.payload[:parameters].map { |k, v|
|
38
38
|
v = "\"#{v}\"" if v.is_a? String
|
39
39
|
v = v.to_s.gsub(/\\/,'') # unescape
|
40
|
-
"#{k}: #{color(v,
|
40
|
+
"#{k}: #{color(v, nil, bold: true)}"
|
41
41
|
}.join(', ')
|
42
42
|
request = "path=#{path} parameters={#{parameters}}"
|
43
43
|
|
44
|
-
debug " #{color(name, GREEN, true)} [ #{request} ]"
|
44
|
+
debug " #{color(name, GREEN, bold: true)} [ #{request} ]"
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
data/sunspot_rails.gemspec
CHANGED
@@ -30,21 +30,13 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
31
31
|
s.require_paths = ["lib"]
|
32
32
|
|
33
|
-
|
34
|
-
s.add_dependency 'rails', '>= 3', '< 5'
|
35
|
-
else
|
36
|
-
s.add_dependency 'rails', '>= 3'
|
37
|
-
end
|
38
|
-
|
33
|
+
s.add_dependency 'rails', '>= 5'
|
39
34
|
s.add_dependency 'sunspot', Sunspot::VERSION
|
40
35
|
|
41
|
-
s.add_development_dependency 'appraisal', '2.
|
36
|
+
s.add_development_dependency 'appraisal', '~> 2.5'
|
42
37
|
s.add_development_dependency 'bundler', '>= 1.3.0', '< 2.0' if RUBY_VERSION <= '2.0.0'
|
43
38
|
s.add_development_dependency 'nokogiri', '< 1.7' if RUBY_VERSION <= '2.0.0'
|
44
|
-
s.add_development_dependency 'rake', '
|
45
|
-
s.add_development_dependency 'rspec', '~> 3.7'
|
46
|
-
s.add_development_dependency 'rspec-rails', '~> 3.7'
|
47
|
-
s.add_development_dependency 'sqlite3', '~> 1.3.0'
|
39
|
+
s.add_development_dependency 'rake', '~> 13.2'
|
48
40
|
|
49
41
|
s.rdoc_options << '--webcvs=http://github.com/outoftime/sunspot/tree/master/%s' <<
|
50
42
|
'--title' << 'Sunspot-Rails - Rails integration for the Sunspot Solr search library - API Documentation' <<
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mat Brown
|
@@ -26,7 +26,7 @@ authors:
|
|
26
26
|
autorequire:
|
27
27
|
bindir: bin
|
28
28
|
cert_chain: []
|
29
|
-
date:
|
29
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
30
30
|
dependencies:
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: rails
|
@@ -34,98 +34,56 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ">="
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
37
|
+
version: '5'
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: '
|
44
|
+
version: '5'
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: sunspot
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - '='
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: 2.
|
51
|
+
version: 2.7.1
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - '='
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: 2.
|
58
|
+
version: 2.7.1
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: appraisal
|
61
|
-
requirement: !ruby/object:Gem::Requirement
|
62
|
-
requirements:
|
63
|
-
- - '='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: 2.2.0
|
66
|
-
type: :development
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: !ruby/object:Gem::Requirement
|
69
|
-
requirements:
|
70
|
-
- - '='
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 2.2.0
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: rake
|
75
|
-
requirement: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - "<"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '12.3'
|
80
|
-
type: :development
|
81
|
-
prerelease: false
|
82
|
-
version_requirements: !ruby/object:Gem::Requirement
|
83
|
-
requirements:
|
84
|
-
- - "<"
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '12.3'
|
87
|
-
- !ruby/object:Gem::Dependency
|
88
|
-
name: rspec
|
89
|
-
requirement: !ruby/object:Gem::Requirement
|
90
|
-
requirements:
|
91
|
-
- - "~>"
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '3.7'
|
94
|
-
type: :development
|
95
|
-
prerelease: false
|
96
|
-
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
requirements:
|
98
|
-
- - "~>"
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: '3.7'
|
101
|
-
- !ruby/object:Gem::Dependency
|
102
|
-
name: rspec-rails
|
103
61
|
requirement: !ruby/object:Gem::Requirement
|
104
62
|
requirements:
|
105
63
|
- - "~>"
|
106
64
|
- !ruby/object:Gem::Version
|
107
|
-
version: '
|
65
|
+
version: '2.5'
|
108
66
|
type: :development
|
109
67
|
prerelease: false
|
110
68
|
version_requirements: !ruby/object:Gem::Requirement
|
111
69
|
requirements:
|
112
70
|
- - "~>"
|
113
71
|
- !ruby/object:Gem::Version
|
114
|
-
version: '
|
72
|
+
version: '2.5'
|
115
73
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
74
|
+
name: rake
|
117
75
|
requirement: !ruby/object:Gem::Requirement
|
118
76
|
requirements:
|
119
77
|
- - "~>"
|
120
78
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
79
|
+
version: '13.2'
|
122
80
|
type: :development
|
123
81
|
prerelease: false
|
124
82
|
version_requirements: !ruby/object:Gem::Requirement
|
125
83
|
requirements:
|
126
84
|
- - "~>"
|
127
85
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
86
|
+
version: '13.2'
|
129
87
|
description: |2
|
130
88
|
Sunspot::Rails is an extension to the Sunspot library for Solr search.
|
131
89
|
Sunspot::Rails adds integration between Sunspot and ActiveRecord, including
|
@@ -199,6 +157,7 @@ files:
|
|
199
157
|
- spec/rails_app/config/initializers/secret_token.rb
|
200
158
|
- spec/rails_app/config/initializers/session_store.rb
|
201
159
|
- spec/rails_app/config/routes.rb
|
160
|
+
- spec/rails_app/config/storage.yml
|
202
161
|
- spec/rails_app/config/sunspot.yml
|
203
162
|
- spec/rails_app/db/schema.rb
|
204
163
|
- spec/rails_app/vendor/engines/test_engine/app/models/test_engine/rake_task_auto_load_test_model.rb
|
@@ -239,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
198
|
- !ruby/object:Gem::Version
|
240
199
|
version: '0'
|
241
200
|
requirements: []
|
242
|
-
rubygems_version: 3.
|
201
|
+
rubygems_version: 3.4.19
|
243
202
|
signing_key:
|
244
203
|
specification_version: 4
|
245
204
|
summary: Rails integration for the Sunspot Solr search library
|
@@ -268,6 +227,7 @@ test_files:
|
|
268
227
|
- spec/rails_app/config/initializers/secret_token.rb
|
269
228
|
- spec/rails_app/config/initializers/session_store.rb
|
270
229
|
- spec/rails_app/config/routes.rb
|
230
|
+
- spec/rails_app/config/storage.yml
|
271
231
|
- spec/rails_app/config/sunspot.yml
|
272
232
|
- spec/rails_app/db/schema.rb
|
273
233
|
- spec/rails_app/vendor/engines/test_engine/app/models/test_engine/rake_task_auto_load_test_model.rb
|