sunspot_rails 1.3.0.rc6 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/dev_tasks/rdoc.rake +2 -2
- data/dev_tasks/spec.rake +3 -3
- data/gemfiles/{rails-3.0.10 → rails-3.0.11} +1 -1
- data/gemfiles/{rails-3.1.1 → rails-3.1.3} +1 -1
- data/spec/rails_template/config/sunspot.yml +1 -1
- data/spec/server_spec.rb +1 -1
- metadata +12 -20
- data/TESTING.md +0 -49
- data/VERSION.yml +0 -4
data/dev_tasks/rdoc.rake
CHANGED
@@ -8,8 +8,8 @@ rescue LoadError
|
|
8
8
|
end
|
9
9
|
|
10
10
|
Rake::RDocTask.new(:doc) do |rdoc|
|
11
|
-
rdoc.main = 'README.
|
12
|
-
rdoc.rdoc_files.include('README.
|
11
|
+
rdoc.main = 'README.md'
|
12
|
+
rdoc.rdoc_files.include('README.md', 'lib/sunspot/rails/**/*.rb', 'lib/sunspot/rails.rb')
|
13
13
|
rdoc.rdoc_dir = 'doc'
|
14
14
|
end
|
15
15
|
|
data/dev_tasks/spec.rake
CHANGED
@@ -27,7 +27,7 @@ namespace :spec do
|
|
27
27
|
|
28
28
|
unless File.exist?(ENV['BUNDLE_PATH'])
|
29
29
|
puts "Installing gems for Rails #{version} (this will only be done once)..."
|
30
|
-
|
30
|
+
system("bundle install #{ENV['BUNDLE_ARGS']}") || exit(1)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
@@ -40,9 +40,9 @@ namespace :spec do
|
|
40
40
|
|
41
41
|
puts "Generating Rails #{version} application..."
|
42
42
|
if version.start_with?("2")
|
43
|
-
|
43
|
+
system("#{rails_cmd} \"#{app_path}\" --force") || exit(1)
|
44
44
|
elsif version.start_with?("3")
|
45
|
-
|
45
|
+
system("#{rails_cmd} new \"#{app_path}\" --force --skip-git --skip-javascript --skip-gemfile --skip-sprockets") || exit(1)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
data/spec/server_spec.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 6
|
12
|
-
version: 1.3.0.rc6
|
10
|
+
version: 1.3.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Mat Brown
|
@@ -35,7 +33,7 @@ autorequire:
|
|
35
33
|
bindir: bin
|
36
34
|
cert_chain: []
|
37
35
|
|
38
|
-
date: 2011-11-
|
36
|
+
date: 2011-11-26 00:00:00 Z
|
39
37
|
dependencies:
|
40
38
|
- !ruby/object:Gem::Dependency
|
41
39
|
name: sunspot
|
@@ -45,14 +43,12 @@ dependencies:
|
|
45
43
|
requirements:
|
46
44
|
- - "="
|
47
45
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
46
|
+
hash: 27
|
49
47
|
segments:
|
50
48
|
- 1
|
51
49
|
- 3
|
52
50
|
- 0
|
53
|
-
|
54
|
-
- 6
|
55
|
-
version: 1.3.0.rc6
|
51
|
+
version: 1.3.0
|
56
52
|
type: :runtime
|
57
53
|
version_requirements: *id001
|
58
54
|
- !ruby/object:Gem::Dependency
|
@@ -116,16 +112,14 @@ files:
|
|
116
112
|
- MIT-LICENSE
|
117
113
|
- README.rdoc
|
118
114
|
- Rakefile
|
119
|
-
- TESTING.md
|
120
115
|
- TODO
|
121
|
-
- VERSION.yml
|
122
116
|
- dev_tasks/rdoc.rake
|
123
117
|
- dev_tasks/release.rake
|
124
118
|
- dev_tasks/spec.rake
|
125
119
|
- dev_tasks/todo.rake
|
126
120
|
- gemfiles/rails-2.3.14
|
127
|
-
- gemfiles/rails-3.0.
|
128
|
-
- gemfiles/rails-3.1.
|
121
|
+
- gemfiles/rails-3.0.11
|
122
|
+
- gemfiles/rails-3.1.3
|
129
123
|
- generators/sunspot/sunspot_generator.rb
|
130
124
|
- generators/sunspot/templates/sunspot.yml
|
131
125
|
- install.rb
|
@@ -200,14 +194,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
195
|
none: false
|
202
196
|
requirements:
|
203
|
-
- - "
|
197
|
+
- - ">="
|
204
198
|
- !ruby/object:Gem::Version
|
205
|
-
hash:
|
199
|
+
hash: 3
|
206
200
|
segments:
|
207
|
-
-
|
208
|
-
|
209
|
-
- 1
|
210
|
-
version: 1.3.1
|
201
|
+
- 0
|
202
|
+
version: "0"
|
211
203
|
requirements: []
|
212
204
|
|
213
205
|
rubyforge_project: sunspot
|
data/TESTING.md
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# Testing `sunspot_rails`
|
2
|
-
|
3
|
-
All the paths mentioned in here are relative to the current directory,
|
4
|
-
or `sunspot/sunspot_rails`.
|
5
|
-
|
6
|
-
The `sunspot_rails` gem is tested with RSpec, and its spec suite is
|
7
|
-
located in `spec`.
|
8
|
-
|
9
|
-
The specs are run against Rails 2 and Rails 3 applications which are
|
10
|
-
dynamically generated in `tmp/`
|
11
|
-
|
12
|
-
**NOTE:** Because the applications are dynamically generated, the specs
|
13
|
-
must be run with the rake task (described below) and not simply with
|
14
|
-
`rspec spec`.
|
15
|
-
|
16
|
-
## Start Solr
|
17
|
-
|
18
|
-
Specs expect to connect to Solr on `http://localhost:8980/solr`
|
19
|
-
|
20
|
-
sunspot-solr start -p 8980
|
21
|
-
|
22
|
-
## Invoke specs
|
23
|
-
|
24
|
-
To run the specs against every Rails version defined in
|
25
|
-
`gemfiles/rails-*`:
|
26
|
-
|
27
|
-
rake spec
|
28
|
-
|
29
|
-
### Focused on specific versions
|
30
|
-
|
31
|
-
To run the specs against a specific version or versions of Rails:
|
32
|
-
|
33
|
-
rake spec VERSIONS=2.3.14
|
34
|
-
rake spec VERSIONS=2.3.14,3.0.10
|
35
|
-
|
36
|
-
To make a Rails the default for your shell session, export the
|
37
|
-
environment variable:
|
38
|
-
|
39
|
-
export VERSIONS=2.3.14
|
40
|
-
|
41
|
-
Though be sure to run the tests against all versions before submitting
|
42
|
-
code!
|
43
|
-
|
44
|
-
### Focused on specific specs
|
45
|
-
|
46
|
-
To run a specific spec or spec file:
|
47
|
-
|
48
|
-
rake spec SPEC=spec/model_spec.rb
|
49
|
-
rake spec SPEC=spec/model_spec.rb:4 # run spec(s) that start on line 4
|
data/VERSION.yml
DELETED