Skip to content

Commit

Permalink
Adding some Rails 3 install info for delta gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Apr 11, 2011
1 parent 377f754 commit 90659f6
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions ts/en/deltas.textile
Expand Up @@ -84,16 +84,22 @@ There are two other delta approaches that Thinking Sphinx supports. The first is
This functionality is in a separate gem, so you'll need to install it: This functionality is in a separate gem, so you'll need to install it:


{% highlight sh %} {% highlight sh %}
gem install ts-datetime-delta --source http://gemcutter.org gem install ts-datetime-delta
{% endhighlight %} {% endhighlight %}


And then add the details to your @environment.rb@ file: And then add the details to your @environment.rb@ file:


{% highlight ruby %} {% highlight ruby %}
config.gem 'ts-datetime-delta', config.gem 'ts-datetime-delta',
:lib => 'thinking_sphinx/deltas/datetime_delta', :lib => 'thinking_sphinx/deltas/datetime_delta',
:version => '>= 1.0.0', :version => '1.0.2'
:source => 'http://gemcutter.org' {% endhighlight %}

For those of you using Rails 3, then your Gemfile is the place for this information:

{% highlight ruby %}
gem 'ts-datetime-delta', '1.0.2'
:require => 'thinking_sphinx/deltas/datetime_delta'
{% endhighlight %} {% endhighlight %}


And finally, make sure the rake tasks are available, by adding the following line to the end of your @Rakefile@: And finally, make sure the rake tasks are available, by adding the following line to the end of your @Rakefile@:
Expand Down Expand Up @@ -130,16 +136,22 @@ The more reliable option for smarter delta indexing is using the "Delayed Job":h
To get this set up in your web application, you'll need to install the separate gem. It has Delayed Job as a dependency, so that will be automatically installed as well. To get this set up in your web application, you'll need to install the separate gem. It has Delayed Job as a dependency, so that will be automatically installed as well.


{% highlight sh %} {% highlight sh %}
gem install ts-delayed-delta --source http://gemcutter.org gem install ts-delayed-delta
{% endhighlight %} {% endhighlight %}


Don't forget to add the gem's details to your @environment.rb@ file: Don't forget to add the gem's details to your @environment.rb@ file:


{% highlight ruby %} {% highlight ruby %}
config.gem 'ts-delayed-delta', config.gem 'ts-delayed-delta',
:lib => 'thinking_sphinx/deltas/delayed_delta', :lib => 'thinking_sphinx/deltas/delayed_delta',
:version => '>= 1.0.0', :version => '1.1.2'
:source => 'http://gemcutter.org' {% endhighlight %}

Or, for Rails 3 - put the following in your Gemfile:

{% highlight ruby %}
gem 'ts-delayed-delta', '1.1.2',
:require => 'thinking_sphinx/deltas/delayed_delta'
{% endhighlight %} {% endhighlight %}


And add the following line to the bottom of your @Rakefile@: And add the following line to the bottom of your @Rakefile@:
Expand Down

0 comments on commit 90659f6

Please sign in to comment.