README.rdoc in adamsalter-sunspot_rails-0.10.4 vs README.rdoc in adamsalter-sunspot_rails-0.10.5
- old
+ new
@@ -16,46 +16,31 @@
Sunspot::Rails has been tested with Rails versions 2.1, 2.2, and 2.3
== Installation
-First, install the Sunspot and Sunspot::Rails gems:
+For recent versions of Rails, In your project's <code>config/environment.rb</code>, add the following gem dependencies:
- sudo gem install outoftime-sunspot outoftime-sunspot_rails --source=http://gems.github.com
+ config.gem 'outoftime-sunspot', :lib => 'sunspot',
+ :source => 'http://gems.github.com'
+ config.gem 'outoftime-sunspot_rails', :lib => 'sunspot/rails',
+ :source => 'http://gems.github.com'
+
+Install the gems with:
-In your project's <code>config/environment.rb</code>, add the following gem dependencies:
+ rake gems:install
- config.gem 'outoftime-sunspot', :lib => 'sunspot'
- config.gem 'outoftime-sunspot_rails', :lib => 'sunspot/rails'
+If you are using an older version of Rails that doesn't support plugins-as-gems, install the gems manually and install the plugin:
-If you are using an older version of Rails that doesn't support plugins-as-gems,
-use:
-
+ sudo gem install outoftime-sunspot outoftime-sunspot_rails --source=http://gems.github.com
+
script/plugin install git://github.com/outoftime/sunspot_rails.git
+
+Generate the file <code>config/sunspot.yml</code>:
-Create the file <code>config/sunspot.yml</code> and set it up for your environments. Here is a sample:
+ script/generate sunspot
- common: &common
- solr:
- hostname: localhost
- port: 8983
-
- production:
- <<: *common
- solr:
- path: /solr/myindex
-
- development:
- <<: *common
- solr:
- port: 8982
-
- test:
- <<: *common
- solr:
- port: 8981
-
Rails doesn't automatically load rake tasks from plugins installed as gems
(https://rails.lighthouseapp.com/projects/8994/tickets/59). If you installed
Sunspot::Rails as a gem, add the following line to your project's Rakefile:
require 'sunspot/rails/tasks'
@@ -238,9 +223,11 @@
- Mat Brown (mat@patch.com)
- Peer Allan (peer.allan@gmail.com)
- Michael Moen (michael@underpantsgnome.com)
- Benjamin Krause (bk@benjaminkrause.com)
+- Adam Salter (adam@codebright.net)
+- Brandon Keepers (brandon@opensoul.org)
== License
Sunspot::Rails is distributed under the MIT License, copyright (c) 2009 Mat Brown