sunspot_rails 2.6.0 → 2.7.0

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: 63d24337902829c8c14a7ea0d9f081c7392b457e0604ff78887ed67037fcedc5
4
- data.tar.gz: 77c235ecfc5bc55c4758abece0d0336bc0c541bf6461d5f134b7bec57eec3c88
3
+ metadata.gz: a11d76b704b04ea9a9181464f3aa7608d3fdf0b279f6cfbe1aa0722253a3d6b6
4
+ data.tar.gz: 8fcaca341cc28674811eff16fb88919cd6f1ef3c25353e6b1fd1ba54179be2f6
5
5
  SHA512:
6
- metadata.gz: a3a95a7312b3dd3b3402fee02ff137c85b357cf17c1babf7c98f5a37456515882d5e8978729d368b42fa67c4163d02704b7540f9878cd4dd9d09cde22f78f1b8
7
- data.tar.gz: 3b031829d6bfac5ee89d7cc33ebc76375614e4ac21f9b1864b55d313a537d08a4ef96cd57d60cc41fabc5eca589a2e42052169172c77756adf382aac7e108dae
6
+ metadata.gz: 385ea6146e9bce459ebff718391d0ad03ed2bf007d8ebcd1f456fe4cfc9287971342faf23f94b873f6042230d2d18a25e93424f9c30b85d358e770cda3e8b6b2
7
+ data.tar.gz: 94b98fe7eef52efd8169160dabb8015835f4e9f00924f6ff5541e6f5151c67b9a820c848a89c6972949e61cbf71048e832e94dea19554bf233e0eaaea1378120
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('2.2.0')
4
- ['3.0.0', '3.1.0'].each do |rails_version|
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 'rspec', '~> 3.4.0'
37
- gem 'rspec-rails', '~> 3.4.0'
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('2.5.0')
43
- appraise 'rails-4.2.0' do
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)[::Rails.env]
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], BOLD, true)
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, BOLD, true)}"
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
@@ -15,7 +15,7 @@ describe 'searchable with lifecycle' do
15
15
  describe 'on update' do
16
16
  before :each do
17
17
  @post = PostWithAuto.create
18
- @post.update_attributes(:title => 'Test 1')
18
+ @post.update(:title => 'Test 1')
19
19
  Sunspot.commit
20
20
  end
21
21
 
@@ -3,4 +3,4 @@ require 'rubygems'
3
3
  # Set up gems listed in the Gemfile.
4
4
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
5
 
6
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
6
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
@@ -0,0 +1,3 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("storage") %>
@@ -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
- if RUBY_VERSION < '2.2'
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.2.0'
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', '< 12.3'
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.6.0
4
+ version: 2.7.0
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: 2022-05-30 00:00:00.000000000 Z
29
+ date: 2024-06-07 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: '3'
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: '3'
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.6.0
51
+ version: 2.7.0
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.6.0
58
+ version: 2.7.0
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: '3.7'
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: '3.7'
72
+ version: '2.5'
115
73
  - !ruby/object:Gem::Dependency
116
- name: sqlite3
74
+ name: rake
117
75
  requirement: !ruby/object:Gem::Requirement
118
76
  requirements:
119
77
  - - "~>"
120
78
  - !ruby/object:Gem::Version
121
- version: 1.3.0
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: 1.3.0
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.1.4
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