sunspot_rails 2.2.7 → 2.5.0

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.
Files changed (60) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -2
  3. data/Appraisals +63 -0
  4. data/Gemfile +3 -0
  5. data/gemfiles/.gitkeep +0 -0
  6. data/lib/sunspot/rails.rb +2 -0
  7. data/lib/sunspot/rails/configuration.rb +4 -0
  8. data/lib/sunspot/rails/searchable.rb +9 -3
  9. data/lib/sunspot/rails/solr_logging.rb +3 -3
  10. data/lib/sunspot/rails/stub_session_proxy.rb +4 -0
  11. data/spec/configuration_spec.rb +77 -69
  12. data/spec/model_lifecycle_spec.rb +8 -8
  13. data/spec/model_spec.rb +72 -71
  14. data/spec/rails_app/app/controllers/application_controller.rb +4 -0
  15. data/spec/rails_app/app/controllers/posts_controller.rb +16 -0
  16. data/spec/{rails_template → rails_app}/app/models/author.rb +0 -2
  17. data/spec/{rails_template → rails_app}/app/models/blog.rb +0 -2
  18. data/spec/{rails_template → rails_app}/app/models/location.rb +0 -1
  19. data/spec/{rails_template → rails_app}/app/models/photo_post.rb +0 -0
  20. data/spec/{rails_template → rails_app}/app/models/post.rb +0 -2
  21. data/spec/{rails_template → rails_app}/app/models/post_with_auto.rb +0 -2
  22. data/spec/{rails_template → rails_app}/app/models/post_with_default_scope.rb +0 -2
  23. data/spec/{rails_template → rails_app}/app/models/post_with_only_some_attributes_triggering_reindex.rb +0 -2
  24. data/spec/{rails_template → rails_app}/app/models/rake_task_auto_load_test_model.rb +0 -0
  25. data/spec/rails_app/config.ru +4 -0
  26. data/spec/rails_app/config/application.rb +14 -0
  27. data/spec/rails_app/config/boot.rb +6 -0
  28. data/spec/rails_app/config/database.yml +5 -0
  29. data/spec/rails_app/config/environment.rb +5 -0
  30. data/spec/rails_app/config/environments/test.rb +41 -0
  31. data/spec/{rails_template → rails_app}/config/initializers/rails_5_override.rb +0 -0
  32. data/spec/rails_app/config/initializers/secret_token.rb +1 -0
  33. data/spec/rails_app/config/initializers/session_store.rb +3 -0
  34. data/spec/{rails_template → rails_app}/config/routes.rb +0 -0
  35. data/spec/{rails_template → rails_app}/config/sunspot.yml +2 -0
  36. data/spec/rails_app/db/schema.rb +26 -0
  37. data/spec/rake_task_spec.rb +8 -8
  38. data/spec/request_lifecycle_spec.rb +17 -21
  39. data/spec/schema.rb +8 -9
  40. data/spec/searchable_spec.rb +4 -4
  41. data/spec/server_spec.rb +7 -7
  42. data/spec/session_spec.rb +3 -3
  43. data/spec/shared_examples/indexed_after_save.rb +1 -1
  44. data/spec/shared_examples/not_indexed_after_save.rb +1 -1
  45. data/spec/spec_helper.rb +18 -51
  46. data/spec/stub_session_proxy_spec.rb +40 -36
  47. data/sunspot_rails.gemspec +15 -6
  48. metadata +93 -58
  49. data/dev_tasks/spec.rake +0 -97
  50. data/gemfiles/rails-3.0.0 +0 -21
  51. data/gemfiles/rails-3.1.0 +0 -21
  52. data/gemfiles/rails-3.2.0 +0 -21
  53. data/gemfiles/rails-4.0.0 +0 -25
  54. data/gemfiles/rails-4.1.0 +0 -24
  55. data/gemfiles/rails-4.2.0 +0 -24
  56. data/gemfiles/rails-5.0 +0 -20
  57. data/spec/rails_template/app/controllers/application_controller.rb +0 -10
  58. data/spec/rails_template/app/controllers/posts_controller.rb +0 -6
  59. data/spec/rails_template/config/database.yml +0 -11
  60. data/spec/rails_template/db/schema.rb +0 -27
@@ -3,6 +3,6 @@ shared_examples_for 'indexed after save' do
3
3
  subject.save!
4
4
  Sunspot.commit
5
5
 
6
- subject.class.search.results.should include(subject)
6
+ expect(subject.class.search.results).to include(subject)
7
7
  end
8
8
  end
@@ -3,6 +3,6 @@ shared_examples_for 'not indexed after save' do
3
3
  subject.save!
4
4
  Sunspot.commit
5
5
 
6
- subject.class.search.results.should_not include(subject)
6
+ expect(subject.class.search.results).not_to include(subject)
7
7
  end
8
8
  end
@@ -1,75 +1,42 @@
1
- # This file is copied to spec/ when you run 'rails generate rspec:install'
2
1
  ENV["RAILS_ENV"] ||= 'test'
3
- if rsolr_version = ENV['RSOLR_GEM_VERSION']
4
- STDERR.puts("Forcing RSolr version #{rsolr_version}")
5
- gem "rsolr", rsolr_version
6
- end
7
-
8
- # Require the Database-specific gems
9
- ENV['DB'] ||= 'sqlite'
10
- Bundler.require(ENV['DB'])
11
2
 
12
- require File.expand_path('config/environment', ENV['RAILS_ROOT'])
3
+ require File.expand_path('config/environment', File.expand_path('../rails_app', __FILE__))
4
+ require File.expand_path('../../lib/sunspot_rails', __FILE__)
13
5
  require 'rspec/rails'
14
- require 'rspec/autorun'
15
- require File.join('sunspot', 'rails', 'solr_logging')
16
6
 
17
- # Requires supporting ruby files with custom matchers and macros, etc, in
18
- # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
19
- # run as spec files by default. This means that files in spec/support that end
20
- # in _spec.rb will both be required and run as specs, causing the specs to be
21
- # run twice. It is recommended that you do not name files matching this glob to
22
- # end with _spec.rb. You can configure this pattern with with the --pattern
23
- # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
24
- Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
7
+ if RSolr::VERSION >= '2'
8
+ require File.join('sunspot', 'rails', 'solr_logging')
9
+ end
25
10
 
26
11
  # Load all shared examples
27
- Dir[File.expand_path("shared_examples/*.rb", File.dirname(__FILE__))].each {|f| require f}
12
+ Dir[File.expand_path("shared_examples/*.rb", File.dirname(__FILE__))].each { |f| require f }
28
13
 
29
14
  # Load the schema
30
- load File.join(ENV['RAILS_ROOT'], 'db', 'schema.rb')
15
+ load File.join(File.expand_path('../rails_app', __FILE__), 'db', 'schema.rb')
31
16
 
32
17
  RSpec.configure do |config|
33
- # ## Mock Framework
34
- #
35
- # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
36
- #
37
- # config.mock_with :mocha
38
- # config.mock_with :flexmock
39
- # config.mock_with :rr
40
-
41
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
42
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
43
-
44
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
45
- # examples within a transaction, remove the following line or assign false
46
- # instead of true.
47
18
  config.use_transactional_fixtures = true
48
-
49
- # If true, the base class of anonymous controllers will be inferred
50
- # automatically. This will be the default behavior in future versions of
51
- # rspec-rails.
52
19
  config.infer_base_class_for_anonymous_controllers = false
53
-
54
- # Run specs in random order to surface order dependencies. If you find an
55
- # order dependency and want to debug it, you can fix the order by providing
56
- # the seed, which is printed after each run.
57
- # --seed 1234
58
- config.order = "random"
20
+ config.order = 'random'
21
+ config.infer_spec_type_from_file_location!
59
22
 
60
23
  config.before(:each) do
61
24
  empty_tables
62
25
  Sunspot.remove_all!
63
- end
26
+ end
64
27
  end
65
28
 
66
29
  def empty_tables
67
- ActiveRecord::Base.connection.tables.each do |table_name|
30
+ sources = if Rails::VERSION::MAJOR > 4
31
+ ActiveRecord::Base.connection.data_sources
32
+ else
33
+ ActiveRecord::Base.connection.tables
34
+ end
35
+ sources.each do |table_name|
68
36
  ActiveRecord::Base.connection.execute("DELETE FROM #{table_name}") unless table_name == 'schema_migrations'
69
37
  end
70
38
  end
71
39
 
72
- # COMPATIBILITY: Rails 4 has deprecated the 'scoped' method in favour of 'all'
73
40
  def relation(clazz)
74
- ::Rails.version >= '4' ? clazz.all : clazz.scoped
75
- end
41
+ Rails::VERSION::MAJOR >= 4 ? clazz.all : clazz.scoped
42
+ end
@@ -13,142 +13,146 @@ describe 'specs with Sunspot stubbed' do
13
13
  foo = double('Foo')
14
14
  block = lambda { foo.bar }
15
15
 
16
- foo.should_receive(:bar)
16
+ expect(foo).to receive(:bar)
17
17
 
18
18
  Sunspot.batch(&block)
19
19
  end
20
20
 
21
21
  it 'should not send index to session' do
22
- @session.should_not_receive(:index)
22
+ expect(@session).not_to receive(:index)
23
23
  @post.index
24
24
  end
25
25
 
26
26
  it 'should not send index! to session' do
27
- @session.should_not_receive(:index!)
27
+ expect(@session).not_to receive(:index!)
28
28
  @post.index!
29
29
  end
30
30
 
31
31
  it 'should not send atomic_update to session' do
32
- @session.should_not_receive(:atomic_update)
32
+ expect(@session).not_to receive(:atomic_update)
33
33
  @post.index
34
34
  end
35
35
 
36
36
  it 'should not send atomic_update! to session' do
37
- @session.should_not_receive(:atomic_update!)
37
+ expect(@session).not_to receive(:atomic_update!)
38
38
  @post.index!
39
39
  end
40
40
 
41
41
  it 'should not send commit to session' do
42
- @session.should_not_receive(:commit)
42
+ expect(@session).not_to receive(:commit)
43
43
  Sunspot.commit
44
44
  end
45
45
 
46
46
  it 'should not send remove to session' do
47
- @session.should_not_receive(:remove)
47
+ expect(@session).not_to receive(:remove)
48
48
  @post.remove_from_index
49
49
  end
50
50
 
51
51
  it 'should not send remove! to session' do
52
- @session.should_not_receive(:remove)
52
+ expect(@session).not_to receive(:remove)
53
53
  @post.remove_from_index!
54
54
  end
55
55
 
56
56
  it 'should not send remove_by_id to session' do
57
- @session.should_not_receive(:remove_by_id)
57
+ expect(@session).not_to receive(:remove_by_id)
58
58
  Sunspot.remove_by_id(Post, 1)
59
59
  end
60
60
 
61
61
  it 'should not send remove_by_id! to session' do
62
- @session.should_not_receive(:remove_by_id!)
62
+ expect(@session).not_to receive(:remove_by_id!)
63
63
  Sunspot.remove_by_id!(Post, 1)
64
64
  end
65
65
 
66
66
  it 'should not send remove_all to session' do
67
- @session.should_not_receive(:remove_all)
67
+ expect(@session).not_to receive(:remove_all)
68
68
  Post.remove_all_from_index
69
69
  end
70
70
 
71
71
  it 'should not send remove_all! to session' do
72
- @session.should_not_receive(:remove_all!)
72
+ expect(@session).not_to receive(:remove_all!)
73
73
  Post.remove_all_from_index!
74
74
  end
75
75
 
76
76
  it 'should not send optimize to session' do
77
- @session.should_not_receive(:optimize)
77
+ expect(@session).not_to receive(:optimize)
78
78
  Sunspot.optimize
79
79
  end
80
80
 
81
81
  it 'should return false for dirty?' do
82
- @session.should_not_receive(:dirty?)
83
- Sunspot.dirty?.should == false
82
+ expect(@session).not_to receive(:dirty?)
83
+ expect(Sunspot.dirty?).to eq(false)
84
84
  end
85
85
 
86
86
  it 'should not send commit_if_dirty to session' do
87
- @session.should_not_receive(:commit_if_dirty)
87
+ expect(@session).not_to receive(:commit_if_dirty)
88
88
  Sunspot.commit_if_dirty
89
89
  end
90
90
 
91
91
  it 'should return false for delete_dirty?' do
92
- @session.should_not_receive(:delete_dirty?)
93
- Sunspot.delete_dirty?.should == false
92
+ expect(@session).not_to receive(:delete_dirty?)
93
+ expect(Sunspot.delete_dirty?).to eq(false)
94
94
  end
95
95
 
96
96
  it 'should not send commit_if_delete_dirty to session' do
97
- @session.should_not_receive(:commit_if_delete_dirty)
97
+ expect(@session).not_to receive(:commit_if_delete_dirty)
98
98
  Sunspot.commit_if_delete_dirty
99
99
  end
100
100
 
101
101
  it 'should not execute a search when #search called' do
102
- @session.should_not_receive(:search)
102
+ expect(@session).not_to receive(:search)
103
103
  Post.search
104
104
  end
105
105
 
106
106
  it 'should not execute a search when #search called with parameters' do
107
- @session.should_not_receive(:search)
107
+ expect(@session).not_to receive(:search)
108
108
  Post.search(:include => :blog, :select => 'id, title')
109
109
  end
110
110
 
111
111
  it 'should return a new search' do
112
- @session.should_not_receive(:new_search)
113
- Sunspot.new_search(Post).should respond_to(:execute)
112
+ expect(@session).not_to receive(:new_search)
113
+ expect(Sunspot.new_search(Post)).to respond_to(:execute)
114
114
  end
115
115
 
116
116
  it 'should not send more_like_this to session' do
117
- @session.should_not_receive(:more_like_this)
117
+ expect(@session).not_to receive(:more_like_this)
118
118
  Sunspot.more_like_this(@post)
119
119
  end
120
120
 
121
+ it 'should not raise error when reindexing scope' do
122
+ expect{ Post.solr_index }.to_not raise_error
123
+ end
124
+
121
125
  describe 'stub search' do
122
126
  before :each do
123
127
  @search = Post.search
124
128
  end
125
129
 
126
130
  it 'should return empty results' do
127
- @search.results.should == []
131
+ expect(@search.results).to eq([])
128
132
  end
129
133
 
130
134
  it 'should return empty hits' do
131
- @search.hits.should == []
135
+ expect(@search.hits).to eq([])
132
136
  end
133
137
 
134
138
  it 'should return the same for raw_results as hits' do
135
- @search.raw_results.should == @search.hits
139
+ expect(@search.raw_results).to eq(@search.hits)
136
140
  end
137
141
 
138
142
  it 'should return zero total' do
139
- @search.total.should == 0
143
+ expect(@search.total).to eq(0)
140
144
  end
141
145
 
142
146
  it 'should return empty results for a given facet' do
143
- @search.facet(:category_id).rows.should == []
147
+ expect(@search.facet(:category_id).rows).to eq([])
144
148
  end
145
149
 
146
150
  it 'should return empty results for a given dynamic facet' do
147
- @search.dynamic_facet(:custom).rows.should == []
151
+ expect(@search.dynamic_facet(:custom).rows).to eq([])
148
152
  end
149
153
 
150
154
  it 'should return empty array if listing facets' do
151
- @search.facets.should == []
155
+ expect(@search.facets).to eq([])
152
156
  end
153
157
 
154
158
  describe '#data_accessor_for' do
@@ -157,11 +161,11 @@ describe 'specs with Sunspot stubbed' do
157
161
  end
158
162
 
159
163
  it 'should provide accessor for select' do
160
- @accessor.should respond_to(:select, :select=)
164
+ expect(@accessor).to respond_to(:select, :select=)
161
165
  end
162
166
 
163
167
  it 'should provide accessor for include' do
164
- @accessor.should respond_to(:include, :include=)
168
+ expect(@accessor).to respond_to(:include, :include=)
165
169
  end
166
170
  end
167
171
 
@@ -171,7 +175,7 @@ describe 'specs with Sunspot stubbed' do
171
175
  end
172
176
 
173
177
  it 'should response to all the available data methods' do
174
- @stats.should respond_to(
178
+ expect(@stats).to respond_to(
175
179
  :min,
176
180
  :max,
177
181
  :count,
@@ -183,11 +187,11 @@ describe 'specs with Sunspot stubbed' do
183
187
  end
184
188
 
185
189
  it 'should return empty results for a given facet' do
186
- @stats.facet(:category_id).rows.should == []
190
+ expect(@stats.facet(:category_id).rows).to eq([])
187
191
  end
188
192
 
189
193
  it 'should return empty array if listing facets' do
190
- @stats.facets.should == []
194
+ expect(@stats.facets).to eq([])
191
195
  end
192
196
 
193
197
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  'Brian Atkinson', 'Tom Coleman', 'Matt Mitchell', 'Nathan Beyer', 'Kieran Topping', 'Nicolas Braem', 'Jeremy Ashkenas',
14
14
  'Dylan Vaughn', 'Brian Durand', 'Sam Granieri', 'Nick Zadrozny', 'Jason Ronallo']
15
15
  s.email = ["mat@patch.com"]
16
- s.homepage = 'http://github.com/outoftime/sunspot/tree/master/sunspot_rails'
16
+ s.homepage = 'http://github.com/sunspot/sunspot/tree/master/sunspot_rails'
17
17
  s.summary = 'Rails integration for the Sunspot Solr search library'
18
18
  s.license = 'MIT'
19
19
  s.description = <<-TEXT
@@ -32,12 +32,21 @@ Gem::Specification.new do |s|
32
32
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
33
33
  s.require_paths = ["lib"]
34
34
 
35
- s.add_dependency 'rails', '>= 3'
36
- s.add_dependency 'sunspot', Sunspot::VERSION
37
- s.add_dependency 'nokogiri'
35
+ if RUBY_VERSION < '2.2'
36
+ s.add_dependency 'rails', '>= 3', '< 5'
37
+ else
38
+ s.add_dependency 'rails', '>= 3'
39
+ end
38
40
 
39
- s.add_development_dependency 'rspec', '~> 1.2'
40
- s.add_development_dependency 'rspec-rails', '~> 1.2'
41
+ s.add_dependency 'sunspot', Sunspot::VERSION
42
+
43
+ s.add_development_dependency 'appraisal', '2.2.0'
44
+ s.add_development_dependency 'bundler', '>= 1.3.0', '< 2.0' if RUBY_VERSION <= '2.0.0'
45
+ s.add_development_dependency 'nokogiri', '< 1.7' if RUBY_VERSION <= '2.0.0'
46
+ s.add_development_dependency 'rake', '< 12.3'
47
+ s.add_development_dependency 'rspec', '~> 3.7'
48
+ s.add_development_dependency 'rspec-rails', '~> 3.7'
49
+ s.add_development_dependency 'sqlite3', '~> 1.3.0'
41
50
 
42
51
  s.rdoc_options << '--webcvs=http://github.com/outoftime/sunspot/tree/master/%s' <<
43
52
  '--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.2.7
4
+ version: 2.5.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: 2016-10-26 00:00:00.000000000 Z
29
+ date: 2019-07-12 00:00:00.000000000 Z
30
30
  dependencies:
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rails
@@ -48,56 +48,84 @@ dependencies:
48
48
  requirements:
49
49
  - - '='
50
50
  - !ruby/object:Gem::Version
51
- version: 2.2.7
51
+ version: 2.5.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.2.7
58
+ version: 2.5.0
59
59
  - !ruby/object:Gem::Dependency
60
- name: nokogiri
60
+ name: appraisal
61
61
  requirement: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - ">="
63
+ - - '='
64
64
  - !ruby/object:Gem::Version
65
- version: '0'
66
- type: :runtime
65
+ version: 2.2.0
66
+ type: :development
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ">="
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
+ - - "<"
71
85
  - !ruby/object:Gem::Version
72
- version: '0'
86
+ version: '12.3'
73
87
  - !ruby/object:Gem::Dependency
74
88
  name: rspec
75
89
  requirement: !ruby/object:Gem::Requirement
76
90
  requirements:
77
91
  - - "~>"
78
92
  - !ruby/object:Gem::Version
79
- version: '1.2'
93
+ version: '3.7'
80
94
  type: :development
81
95
  prerelease: false
82
96
  version_requirements: !ruby/object:Gem::Requirement
83
97
  requirements:
84
98
  - - "~>"
85
99
  - !ruby/object:Gem::Version
86
- version: '1.2'
100
+ version: '3.7'
87
101
  - !ruby/object:Gem::Dependency
88
102
  name: rspec-rails
89
103
  requirement: !ruby/object:Gem::Requirement
90
104
  requirements:
91
105
  - - "~>"
92
106
  - !ruby/object:Gem::Version
93
- version: '1.2'
107
+ version: '3.7'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '3.7'
115
+ - !ruby/object:Gem::Dependency
116
+ name: sqlite3
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: 1.3.0
94
122
  type: :development
95
123
  prerelease: false
96
124
  version_requirements: !ruby/object:Gem::Requirement
97
125
  requirements:
98
126
  - - "~>"
99
127
  - !ruby/object:Gem::Version
100
- version: '1.2'
128
+ version: 1.3.0
101
129
  description: |2
102
130
  Sunspot::Rails is an extension to the Sunspot library for Solr search.
103
131
  Sunspot::Rails adds integration between Sunspot and ActiveRecord, including
@@ -113,6 +141,8 @@ extra_rdoc_files: []
113
141
  files:
114
142
  - ".gitignore"
115
143
  - ".rspec"
144
+ - Appraisals
145
+ - Gemfile
116
146
  - History.txt
117
147
  - LICENSE
118
148
  - MIT-LICENSE
@@ -121,15 +151,8 @@ files:
121
151
  - TODO
122
152
  - dev_tasks/rdoc.rake
123
153
  - dev_tasks/release.rake
124
- - dev_tasks/spec.rake
125
154
  - dev_tasks/todo.rake
126
- - gemfiles/rails-3.0.0
127
- - gemfiles/rails-3.1.0
128
- - gemfiles/rails-3.2.0
129
- - gemfiles/rails-4.0.0
130
- - gemfiles/rails-4.1.0
131
- - gemfiles/rails-4.2.0
132
- - gemfiles/rails-5.0
155
+ - gemfiles/.gitkeep
133
156
  - generators/sunspot/sunspot_generator.rb
134
157
  - generators/sunspot/templates/sunspot.yml
135
158
  - install.rb
@@ -155,22 +178,29 @@ files:
155
178
  - spec/configuration_spec.rb
156
179
  - spec/model_lifecycle_spec.rb
157
180
  - spec/model_spec.rb
158
- - spec/rails_template/app/controllers/application_controller.rb
159
- - spec/rails_template/app/controllers/posts_controller.rb
160
- - spec/rails_template/app/models/author.rb
161
- - spec/rails_template/app/models/blog.rb
162
- - spec/rails_template/app/models/location.rb
163
- - spec/rails_template/app/models/photo_post.rb
164
- - spec/rails_template/app/models/post.rb
165
- - spec/rails_template/app/models/post_with_auto.rb
166
- - spec/rails_template/app/models/post_with_default_scope.rb
167
- - spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
168
- - spec/rails_template/app/models/rake_task_auto_load_test_model.rb
169
- - spec/rails_template/config/database.yml
170
- - spec/rails_template/config/initializers/rails_5_override.rb
171
- - spec/rails_template/config/routes.rb
172
- - spec/rails_template/config/sunspot.yml
173
- - spec/rails_template/db/schema.rb
181
+ - spec/rails_app/app/controllers/application_controller.rb
182
+ - spec/rails_app/app/controllers/posts_controller.rb
183
+ - spec/rails_app/app/models/author.rb
184
+ - spec/rails_app/app/models/blog.rb
185
+ - spec/rails_app/app/models/location.rb
186
+ - spec/rails_app/app/models/photo_post.rb
187
+ - spec/rails_app/app/models/post.rb
188
+ - spec/rails_app/app/models/post_with_auto.rb
189
+ - spec/rails_app/app/models/post_with_default_scope.rb
190
+ - spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
191
+ - spec/rails_app/app/models/rake_task_auto_load_test_model.rb
192
+ - spec/rails_app/config.ru
193
+ - spec/rails_app/config/application.rb
194
+ - spec/rails_app/config/boot.rb
195
+ - spec/rails_app/config/database.yml
196
+ - spec/rails_app/config/environment.rb
197
+ - spec/rails_app/config/environments/test.rb
198
+ - spec/rails_app/config/initializers/rails_5_override.rb
199
+ - spec/rails_app/config/initializers/secret_token.rb
200
+ - spec/rails_app/config/initializers/session_store.rb
201
+ - spec/rails_app/config/routes.rb
202
+ - spec/rails_app/config/sunspot.yml
203
+ - spec/rails_app/db/schema.rb
174
204
  - spec/rake_task_spec.rb
175
205
  - spec/request_lifecycle_spec.rb
176
206
  - spec/schema.rb
@@ -182,8 +212,7 @@ files:
182
212
  - spec/spec_helper.rb
183
213
  - spec/stub_session_proxy_spec.rb
184
214
  - sunspot_rails.gemspec
185
- - tmp/.gitkeep
186
- homepage: http://github.com/outoftime/sunspot/tree/master/sunspot_rails
215
+ homepage: http://github.com/sunspot/sunspot/tree/master/sunspot_rails
187
216
  licenses:
188
217
  - MIT
189
218
  metadata: {}
@@ -207,8 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
236
  - !ruby/object:Gem::Version
208
237
  version: '0'
209
238
  requirements: []
210
- rubyforge_project: sunspot
211
- rubygems_version: 2.5.0
239
+ rubygems_version: 3.0.2
212
240
  signing_key:
213
241
  specification_version: 4
214
242
  summary: Rails integration for the Sunspot Solr search library
@@ -216,22 +244,29 @@ test_files:
216
244
  - spec/configuration_spec.rb
217
245
  - spec/model_lifecycle_spec.rb
218
246
  - spec/model_spec.rb
219
- - spec/rails_template/app/controllers/application_controller.rb
220
- - spec/rails_template/app/controllers/posts_controller.rb
221
- - spec/rails_template/app/models/author.rb
222
- - spec/rails_template/app/models/blog.rb
223
- - spec/rails_template/app/models/location.rb
224
- - spec/rails_template/app/models/photo_post.rb
225
- - spec/rails_template/app/models/post.rb
226
- - spec/rails_template/app/models/post_with_auto.rb
227
- - spec/rails_template/app/models/post_with_default_scope.rb
228
- - spec/rails_template/app/models/post_with_only_some_attributes_triggering_reindex.rb
229
- - spec/rails_template/app/models/rake_task_auto_load_test_model.rb
230
- - spec/rails_template/config/database.yml
231
- - spec/rails_template/config/initializers/rails_5_override.rb
232
- - spec/rails_template/config/routes.rb
233
- - spec/rails_template/config/sunspot.yml
234
- - spec/rails_template/db/schema.rb
247
+ - spec/rails_app/app/controllers/application_controller.rb
248
+ - spec/rails_app/app/controllers/posts_controller.rb
249
+ - spec/rails_app/app/models/author.rb
250
+ - spec/rails_app/app/models/blog.rb
251
+ - spec/rails_app/app/models/location.rb
252
+ - spec/rails_app/app/models/photo_post.rb
253
+ - spec/rails_app/app/models/post.rb
254
+ - spec/rails_app/app/models/post_with_auto.rb
255
+ - spec/rails_app/app/models/post_with_default_scope.rb
256
+ - spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
257
+ - spec/rails_app/app/models/rake_task_auto_load_test_model.rb
258
+ - spec/rails_app/config.ru
259
+ - spec/rails_app/config/application.rb
260
+ - spec/rails_app/config/boot.rb
261
+ - spec/rails_app/config/database.yml
262
+ - spec/rails_app/config/environment.rb
263
+ - spec/rails_app/config/environments/test.rb
264
+ - spec/rails_app/config/initializers/rails_5_override.rb
265
+ - spec/rails_app/config/initializers/secret_token.rb
266
+ - spec/rails_app/config/initializers/session_store.rb
267
+ - spec/rails_app/config/routes.rb
268
+ - spec/rails_app/config/sunspot.yml
269
+ - spec/rails_app/db/schema.rb
235
270
  - spec/rake_task_spec.rb
236
271
  - spec/request_lifecycle_spec.rb
237
272
  - spec/schema.rb