public
Description: Sphinx plugin for Rails and Merb
Homepage: http://ts.freelancing-gods.com
Clone URL: git://github.com/freelancing-god/thinking-sphinx.git
Click here to lend your support to: thinking-sphinx and make a donation at www.pledgie.com !
thinking-sphinx / ginger_scenarios.rb
100644 28 lines (21 sloc) 0.837 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'ginger'
 
Ginger.configure do |config|
  config.aliases["active_record"] = "activerecord"
  config.aliases["active_support"] = "activesupport"
  
  ar_1_2_6 = Ginger::Scenario.new
  ar_1_2_6[/^active_?support$/] = "1.4.4"
  ar_1_2_6[/^active_?record$/] = "1.15.6"
  
  ar_2_0_4 = Ginger::Scenario.new
  ar_2_0_4[/^active_?support$/] = "2.0.4"
  ar_2_0_4[/^active_?record$/] = "2.0.4"
  
  ar_2_1_2 = Ginger::Scenario.new
  ar_2_1_2[/^active_?support$/] = "2.1.2"
  ar_2_1_2[/^active_?record$/] = "2.1.2"
  
  ar_2_2_0 = Ginger::Scenario.new
  ar_2_2_0[/^active_?support$/] = "2.2.0"
  ar_2_2_0[/^active_?record$/] = "2.2.0"
  
  ar_2_3_0 = Ginger::Scenario.new
  ar_2_3_0[/^active_?support$/] = "2.3.0"
  ar_2_3_0[/^active_?record$/] = "2.3.0"
  
  config.scenarios << ar_1_2_6 << ar_2_0_4 << ar_2_1_2 << ar_2_2_0 << ar_2_3_0
end