sunspot_rails 2.2.6 → 2.6.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.
- checksums.yaml +5 -5
- data/.gitignore +1 -2
- data/Appraisals +64 -0
- data/Gemfile +3 -0
- data/lib/sunspot/rails/configuration.rb +4 -0
- data/lib/sunspot/rails/request_lifecycle.rb +3 -1
- data/lib/sunspot/rails/searchable.rb +15 -7
- data/lib/sunspot/rails/solr_instrumentation.rb +2 -2
- data/lib/sunspot/rails/solr_logging.rb +5 -10
- data/lib/sunspot/rails/stub_session_proxy.rb +9 -2
- data/lib/sunspot/rails/tasks.rb +0 -1
- data/lib/sunspot/rails.rb +2 -0
- data/spec/configuration_spec.rb +77 -69
- data/spec/model_lifecycle_spec.rb +8 -8
- data/spec/model_spec.rb +72 -71
- data/spec/rails_app/app/controllers/application_controller.rb +4 -0
- data/spec/rails_app/app/controllers/posts_controller.rb +16 -0
- data/spec/{rails_template → rails_app}/app/models/author.rb +0 -2
- data/spec/{rails_template → rails_app}/app/models/blog.rb +0 -2
- data/spec/{rails_template → rails_app}/app/models/location.rb +0 -1
- data/spec/{rails_template → rails_app}/app/models/post.rb +0 -2
- data/spec/{rails_template → rails_app}/app/models/post_with_auto.rb +0 -2
- data/spec/{rails_template → rails_app}/app/models/post_with_default_scope.rb +0 -2
- data/spec/{rails_template → rails_app}/app/models/post_with_only_some_attributes_triggering_reindex.rb +0 -2
- data/spec/rails_app/config/application.rb +17 -0
- data/spec/rails_app/config/boot.rb +6 -0
- data/spec/rails_app/config/database.yml +5 -0
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/test.rb +41 -0
- data/spec/rails_app/config/initializers/rails_5_override.rb +1 -0
- data/spec/rails_app/config/initializers/secret_token.rb +1 -0
- data/spec/rails_app/config/initializers/session_store.rb +3 -0
- data/spec/{rails_template → rails_app}/config/sunspot.yml +2 -0
- data/spec/rails_app/config.ru +4 -0
- data/spec/rails_app/db/schema.rb +26 -0
- data/spec/rails_app/vendor/engines/test_engine/app/models/test_engine/rake_task_auto_load_test_model.rb +15 -0
- data/spec/rails_app/vendor/engines/test_engine/lib/test_engine/engine.rb +5 -0
- data/spec/rails_app/vendor/engines/test_engine/lib/test_engine.rb +4 -0
- data/spec/rake_task_spec.rb +9 -9
- data/spec/request_lifecycle_spec.rb +17 -21
- data/spec/schema.rb +8 -9
- data/spec/searchable_spec.rb +4 -4
- data/spec/server_spec.rb +7 -7
- data/spec/session_spec.rb +3 -3
- data/spec/shared_examples/indexed_after_save.rb +1 -1
- data/spec/shared_examples/not_indexed_after_save.rb +1 -1
- data/spec/spec_helper.rb +18 -51
- data/spec/stub_session_proxy_spec.rb +40 -36
- data/sunspot_rails.gemspec +15 -8
- metadata +102 -58
- data/dev_tasks/spec.rake +0 -97
- data/gemfiles/rails-3.0.0 +0 -21
- data/gemfiles/rails-3.1.0 +0 -21
- data/gemfiles/rails-3.2.0 +0 -21
- data/gemfiles/rails-4.0.0 +0 -25
- data/gemfiles/rails-4.1.0 +0 -24
- data/gemfiles/rails-4.2.0 +0 -24
- data/spec/rails_template/app/controllers/application_controller.rb +0 -10
- data/spec/rails_template/app/controllers/posts_controller.rb +0 -6
- data/spec/rails_template/config/database.yml +0 -11
- data/spec/rails_template/db/schema.rb +0 -27
- /data/{tmp → gemfiles}/.gitkeep +0 -0
- /data/spec/{rails_template → rails_app}/app/models/photo_post.rb +0 -0
- /data/spec/{rails_template → rails_app}/app/models/rake_task_auto_load_test_model.rb +0 -0
- /data/spec/{rails_template → rails_app}/config/routes.rb +0 -0
data/sunspot_rails.gemspec
CHANGED
@@ -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/
|
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
|
@@ -25,19 +25,26 @@ Gem::Specification.new do |s|
|
|
25
25
|
Rails request.
|
26
26
|
TEXT
|
27
27
|
|
28
|
-
s.rubyforge_project = "sunspot"
|
29
|
-
|
30
28
|
s.files = `git ls-files`.split("\n")
|
31
29
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
32
30
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
33
31
|
s.require_paths = ["lib"]
|
34
32
|
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
if RUBY_VERSION < '2.2'
|
34
|
+
s.add_dependency 'rails', '>= 3', '< 5'
|
35
|
+
else
|
36
|
+
s.add_dependency 'rails', '>= 3'
|
37
|
+
end
|
38
38
|
|
39
|
-
s.
|
40
|
-
|
39
|
+
s.add_dependency 'sunspot', Sunspot::VERSION
|
40
|
+
|
41
|
+
s.add_development_dependency 'appraisal', '2.2.0'
|
42
|
+
s.add_development_dependency 'bundler', '>= 1.3.0', '< 2.0' if RUBY_VERSION <= '2.0.0'
|
43
|
+
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'
|
41
48
|
|
42
49
|
s.rdoc_options << '--webcvs=http://github.com/outoftime/sunspot/tree/master/%s' <<
|
43
50
|
'--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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mat Brown
|
@@ -23,10 +23,10 @@ authors:
|
|
23
23
|
- Sam Granieri
|
24
24
|
- Nick Zadrozny
|
25
25
|
- Jason Ronallo
|
26
|
-
autorequire:
|
26
|
+
autorequire:
|
27
27
|
bindir: bin
|
28
28
|
cert_chain: []
|
29
|
-
date:
|
29
|
+
date: 2022-05-30 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.
|
51
|
+
version: 2.6.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.
|
58
|
+
version: 2.6.0
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
|
-
name:
|
60
|
+
name: appraisal
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
|
-
- -
|
63
|
+
- - '='
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
66
|
-
type: :
|
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: '
|
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: '
|
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: '
|
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: '
|
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:
|
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,14 +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
|
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
|
155
|
+
- gemfiles/.gitkeep
|
132
156
|
- generators/sunspot/sunspot_generator.rb
|
133
157
|
- generators/sunspot/templates/sunspot.yml
|
134
158
|
- install.rb
|
@@ -154,21 +178,32 @@ files:
|
|
154
178
|
- spec/configuration_spec.rb
|
155
179
|
- spec/model_lifecycle_spec.rb
|
156
180
|
- spec/model_spec.rb
|
157
|
-
- spec/
|
158
|
-
- spec/
|
159
|
-
- spec/
|
160
|
-
- spec/
|
161
|
-
- spec/
|
162
|
-
- spec/
|
163
|
-
- spec/
|
164
|
-
- spec/
|
165
|
-
- spec/
|
166
|
-
- spec/
|
167
|
-
- spec/
|
168
|
-
- spec/
|
169
|
-
- spec/
|
170
|
-
- spec/
|
171
|
-
- spec/
|
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
|
204
|
+
- spec/rails_app/vendor/engines/test_engine/app/models/test_engine/rake_task_auto_load_test_model.rb
|
205
|
+
- spec/rails_app/vendor/engines/test_engine/lib/test_engine.rb
|
206
|
+
- spec/rails_app/vendor/engines/test_engine/lib/test_engine/engine.rb
|
172
207
|
- spec/rake_task_spec.rb
|
173
208
|
- spec/request_lifecycle_spec.rb
|
174
209
|
- spec/schema.rb
|
@@ -180,12 +215,11 @@ files:
|
|
180
215
|
- spec/spec_helper.rb
|
181
216
|
- spec/stub_session_proxy_spec.rb
|
182
217
|
- sunspot_rails.gemspec
|
183
|
-
|
184
|
-
homepage: http://github.com/outoftime/sunspot/tree/master/sunspot_rails
|
218
|
+
homepage: http://github.com/sunspot/sunspot/tree/master/sunspot_rails
|
185
219
|
licenses:
|
186
220
|
- MIT
|
187
221
|
metadata: {}
|
188
|
-
post_install_message:
|
222
|
+
post_install_message:
|
189
223
|
rdoc_options:
|
190
224
|
- "--webcvs=http://github.com/outoftime/sunspot/tree/master/%s"
|
191
225
|
- "--title"
|
@@ -205,30 +239,40 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
239
|
- !ruby/object:Gem::Version
|
206
240
|
version: '0'
|
207
241
|
requirements: []
|
208
|
-
|
209
|
-
|
210
|
-
signing_key:
|
242
|
+
rubygems_version: 3.1.4
|
243
|
+
signing_key:
|
211
244
|
specification_version: 4
|
212
245
|
summary: Rails integration for the Sunspot Solr search library
|
213
246
|
test_files:
|
214
247
|
- spec/configuration_spec.rb
|
215
248
|
- spec/model_lifecycle_spec.rb
|
216
249
|
- spec/model_spec.rb
|
217
|
-
- spec/
|
218
|
-
- spec/
|
219
|
-
- spec/
|
220
|
-
- spec/
|
221
|
-
- spec/
|
222
|
-
- spec/
|
223
|
-
- spec/
|
224
|
-
- spec/
|
225
|
-
- spec/
|
226
|
-
- spec/
|
227
|
-
- spec/
|
228
|
-
- spec/
|
229
|
-
- spec/
|
230
|
-
- spec/
|
231
|
-
- spec/
|
250
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
251
|
+
- spec/rails_app/app/controllers/posts_controller.rb
|
252
|
+
- spec/rails_app/app/models/author.rb
|
253
|
+
- spec/rails_app/app/models/blog.rb
|
254
|
+
- spec/rails_app/app/models/location.rb
|
255
|
+
- spec/rails_app/app/models/photo_post.rb
|
256
|
+
- spec/rails_app/app/models/post.rb
|
257
|
+
- spec/rails_app/app/models/post_with_auto.rb
|
258
|
+
- spec/rails_app/app/models/post_with_default_scope.rb
|
259
|
+
- spec/rails_app/app/models/post_with_only_some_attributes_triggering_reindex.rb
|
260
|
+
- spec/rails_app/app/models/rake_task_auto_load_test_model.rb
|
261
|
+
- spec/rails_app/config.ru
|
262
|
+
- spec/rails_app/config/application.rb
|
263
|
+
- spec/rails_app/config/boot.rb
|
264
|
+
- spec/rails_app/config/database.yml
|
265
|
+
- spec/rails_app/config/environment.rb
|
266
|
+
- spec/rails_app/config/environments/test.rb
|
267
|
+
- spec/rails_app/config/initializers/rails_5_override.rb
|
268
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
269
|
+
- spec/rails_app/config/initializers/session_store.rb
|
270
|
+
- spec/rails_app/config/routes.rb
|
271
|
+
- spec/rails_app/config/sunspot.yml
|
272
|
+
- spec/rails_app/db/schema.rb
|
273
|
+
- spec/rails_app/vendor/engines/test_engine/app/models/test_engine/rake_task_auto_load_test_model.rb
|
274
|
+
- spec/rails_app/vendor/engines/test_engine/lib/test_engine.rb
|
275
|
+
- spec/rails_app/vendor/engines/test_engine/lib/test_engine/engine.rb
|
232
276
|
- spec/rake_task_spec.rb
|
233
277
|
- spec/request_lifecycle_spec.rb
|
234
278
|
- spec/schema.rb
|
data/dev_tasks/spec.rake
DELETED
@@ -1,97 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
|
3
|
-
namespace :spec do
|
4
|
-
def rails_app_path(version)
|
5
|
-
File.join(File.dirname(__FILE__), "..", "tmp", "rails_#{version.gsub(".", "_")}_app")
|
6
|
-
end
|
7
|
-
|
8
|
-
def gemfile_path(version)
|
9
|
-
File.join(File.dirname(__FILE__), "..", "gemfiles", "rails-#{version}")
|
10
|
-
end
|
11
|
-
|
12
|
-
def vendor_path(version)
|
13
|
-
File.expand_path("vendor/bundle", rails_app_path(version))
|
14
|
-
end
|
15
|
-
|
16
|
-
def rails_template_path
|
17
|
-
File.join(File.dirname(__FILE__), "..", "spec", "rails_template")
|
18
|
-
end
|
19
|
-
|
20
|
-
def version
|
21
|
-
ENV['VERSION']
|
22
|
-
end
|
23
|
-
|
24
|
-
task :run_with_rails => [:set_gemfile, :generate_rails_app, :initialize_database, :setup_rails_app, :run]
|
25
|
-
|
26
|
-
task :set_gemfile do
|
27
|
-
ENV['BUNDLE_PATH'] = vendor_path(version)
|
28
|
-
ENV['BUNDLE_GEMFILE'] = gemfile_path(version)
|
29
|
-
|
30
|
-
unless File.exist?(ENV['BUNDLE_PATH'])
|
31
|
-
puts "Installing gems for Rails #{version} (this will only be done once)..."
|
32
|
-
sh("bundle install #{ENV['BUNDLE_ARGS']}") || exit(1)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
task :generate_rails_app do
|
37
|
-
app_path = rails_app_path(version)
|
38
|
-
|
39
|
-
unless File.exist?(File.expand_path("config/environment.rb", app_path))
|
40
|
-
puts "Generating Rails #{version} application..."
|
41
|
-
sh("bundle exec rails _#{version}_ new \"#{app_path}\" --force --skip-git --skip-javascript --skip-gemfile --skip-sprockets") || exit(1)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
task :initialize_database do
|
46
|
-
if ENV['DB'] == 'postgres'
|
47
|
-
sh "bundle exec rake db:test:prepare"
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
task :setup_rails_app do
|
52
|
-
FileUtils.cp_r File.join(rails_template_path, "."), rails_app_path(version)
|
53
|
-
end
|
54
|
-
|
55
|
-
task :run do
|
56
|
-
ENV['BUNDLE_GEMFILE'] = gemfile_path(version)
|
57
|
-
ENV['RAILS_ROOT'] = rails_app_path(version)
|
58
|
-
|
59
|
-
sh "bundle exec rspec #{ENV['SPEC'] || 'spec/*_spec.rb'} --color"
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
def rails_all_versions
|
64
|
-
versions = []
|
65
|
-
Dir.glob(File.join(File.dirname(__FILE__), "..", "gemfiles", "rails-*")).each do |gemfile|
|
66
|
-
if !gemfile.end_with?(".lock") && gemfile =~ /rails-([0-9.]+)/
|
67
|
-
versions << $1
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
versions
|
72
|
-
end
|
73
|
-
|
74
|
-
def reenable_spec_tasks
|
75
|
-
Rake::Task.tasks.each do |task|
|
76
|
-
if task.name =~ /spec:/
|
77
|
-
task.reenable
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
desc 'Run spec suite in all Rails versions'
|
83
|
-
task :spec do
|
84
|
-
versions = if ENV['RAILS']
|
85
|
-
ENV['RAILS'].split(",")
|
86
|
-
else
|
87
|
-
rails_all_versions
|
88
|
-
end
|
89
|
-
|
90
|
-
versions.each do |version|
|
91
|
-
puts "Running specs against Rails #{version}..."
|
92
|
-
|
93
|
-
ENV['VERSION'] = version
|
94
|
-
reenable_spec_tasks
|
95
|
-
Rake::Task['spec:run_with_rails'].invoke
|
96
|
-
end
|
97
|
-
end
|
data/gemfiles/rails-3.0.0
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~> 3.0.0'
|
4
|
-
|
5
|
-
gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
|
6
|
-
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
|
7
|
-
gem 'sunspot_rails', :path => File.expand_path('../..', __FILE__)
|
8
|
-
|
9
|
-
group :test do
|
10
|
-
gem 'rspec-rails', '~> 2.14.0'
|
11
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
12
|
-
gem 'test-unit', '~> 3.2.0' if RUBY_VERSION >= '2.2.0'
|
13
|
-
end
|
14
|
-
|
15
|
-
group :postgres do
|
16
|
-
gem 'pg'
|
17
|
-
end
|
18
|
-
|
19
|
-
group :sqlite do
|
20
|
-
gem 'sqlite3', '~> 1.3.7'
|
21
|
-
end
|
data/gemfiles/rails-3.1.0
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~> 3.1.0'
|
4
|
-
|
5
|
-
gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
|
6
|
-
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
|
7
|
-
gem 'sunspot_rails', :path => File.expand_path('../..', __FILE__)
|
8
|
-
|
9
|
-
group :test do
|
10
|
-
gem 'rspec-rails', '~> 2.14.0'
|
11
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
12
|
-
gem 'test-unit', '~> 3.2.0' if RUBY_VERSION >= '2.2.0'
|
13
|
-
end
|
14
|
-
|
15
|
-
group :postgres do
|
16
|
-
gem 'pg'
|
17
|
-
end
|
18
|
-
|
19
|
-
group :sqlite do
|
20
|
-
gem 'sqlite3', '~> 1.3.7'
|
21
|
-
end
|
data/gemfiles/rails-3.2.0
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~> 3.2.0'
|
4
|
-
|
5
|
-
gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
|
6
|
-
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
|
7
|
-
gem 'sunspot_rails', :path => File.expand_path('../..', __FILE__)
|
8
|
-
|
9
|
-
group :test do
|
10
|
-
gem 'rspec-rails', '~> 2.14.0'
|
11
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
12
|
-
gem 'test-unit', '~> 3.2.0' if RUBY_VERSION >= '2.2.0'
|
13
|
-
end
|
14
|
-
|
15
|
-
group :postgres do
|
16
|
-
gem 'pg'
|
17
|
-
end
|
18
|
-
|
19
|
-
group :sqlite do
|
20
|
-
gem 'sqlite3', '~> 1.3.7'
|
21
|
-
end
|
data/gemfiles/rails-4.0.0
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~> 4.0.0'
|
4
|
-
if SystemRubyVersion.new.to_s =~ /1.9/
|
5
|
-
gem 'mime-types', '~> 2.99.0'
|
6
|
-
end
|
7
|
-
|
8
|
-
gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
|
9
|
-
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
|
10
|
-
gem 'sunspot_rails', :path => File.expand_path('../..', __FILE__)
|
11
|
-
|
12
|
-
group :test do
|
13
|
-
gem 'protected_attributes' # Rails 4 support for attr_accessor so specs still work
|
14
|
-
gem 'rspec-rails', '~> 2.14.0'
|
15
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
16
|
-
gem 'test-unit', '~> 3.2.0' if RUBY_VERSION >= '2.2.0'
|
17
|
-
end
|
18
|
-
|
19
|
-
group :postgres do
|
20
|
-
gem 'pg'
|
21
|
-
end
|
22
|
-
|
23
|
-
group :sqlite do
|
24
|
-
gem 'sqlite3', '~> 1.3.7'
|
25
|
-
end
|
data/gemfiles/rails-4.1.0
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~> 4.1.0'
|
4
|
-
if SystemRubyVersion.new.to_s =~ /1.9/
|
5
|
-
gem 'mime-types', '~> 2.99.0'
|
6
|
-
end
|
7
|
-
|
8
|
-
gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
|
9
|
-
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
|
10
|
-
gem 'sunspot_rails', :path => File.expand_path('../..', __FILE__)
|
11
|
-
|
12
|
-
group :test do
|
13
|
-
gem 'protected_attributes' # Rails 4 support for attr_accessor so specs still work
|
14
|
-
gem 'rspec-rails', '~> 2.14.0'
|
15
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
16
|
-
end
|
17
|
-
|
18
|
-
group :postgres do
|
19
|
-
gem 'pg'
|
20
|
-
end
|
21
|
-
|
22
|
-
group :sqlite do
|
23
|
-
gem 'sqlite3', '~> 1.3.7'
|
24
|
-
end
|
data/gemfiles/rails-4.2.0
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~> 4.2.0'
|
4
|
-
if SystemRubyVersion.new.to_s =~ /1.9/
|
5
|
-
gem 'mime-types', '~> 2.99.0'
|
6
|
-
end
|
7
|
-
|
8
|
-
gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
|
9
|
-
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
|
10
|
-
gem 'sunspot_rails', :path => File.expand_path('../..', __FILE__)
|
11
|
-
|
12
|
-
group :test do
|
13
|
-
gem 'protected_attributes' # Rails 4 support for attr_accessor so specs still work
|
14
|
-
gem 'rspec-rails', '~> 2.14.0'
|
15
|
-
gem 'progress_bar', '~> 1.0.5', require: false
|
16
|
-
end
|
17
|
-
|
18
|
-
group :postgres do
|
19
|
-
gem 'pg'
|
20
|
-
end
|
21
|
-
|
22
|
-
group :sqlite do
|
23
|
-
gem 'sqlite3', '~> 1.3.7'
|
24
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Filters added to this controller apply to all controllers in the application.
|
2
|
-
# Likewise, all the methods added will be available for all controllers.
|
3
|
-
|
4
|
-
class ApplicationController < ActionController::Base
|
5
|
-
helper :all # include all helpers, all the time
|
6
|
-
protect_from_forgery # See ActionController::RequestForgeryProtection for details
|
7
|
-
|
8
|
-
# Scrub sensitive parameters from your log
|
9
|
-
# filter_parameter_logging :password
|
10
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
ActiveRecord::Schema.define(:version => 0) do
|
2
|
-
create_table :posts, :force => true do |t|
|
3
|
-
t.string :title
|
4
|
-
t.string :type
|
5
|
-
t.integer :location_id
|
6
|
-
t.text :body
|
7
|
-
t.references :blog
|
8
|
-
t.timestamps
|
9
|
-
end
|
10
|
-
|
11
|
-
create_table :locations, :force => true do |t|
|
12
|
-
t.float :lat
|
13
|
-
t.float :lng
|
14
|
-
end
|
15
|
-
|
16
|
-
create_table :blogs, :force => true do |t|
|
17
|
-
t.string :name
|
18
|
-
t.string :subdomain
|
19
|
-
t.timestamps
|
20
|
-
end
|
21
|
-
|
22
|
-
create_table :writers, :force => true, :primary_key => :writer_id do |t|
|
23
|
-
t.string :name
|
24
|
-
t.timestamps
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
/data/{tmp → gemfiles}/.gitkeep
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|