This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Adding 2.0.2 and 2.1.2 to ginger

  • Loading branch information...
1 parent e9dea70 commit 37996e016a2ce1a7931efd8f1b0cd7341a7635b9 @qrush qrush committed Mar 11, 2009
Showing with 16 additions and 6 deletions.
  1. +16 −6 ginger_scenarios.rb
View
@@ -1,11 +1,21 @@
require 'ginger'
-Ginger.configure do |config|
- rails_2_2_2 = Ginger::Scenario.new
- rails_2_2_2[/rails/] = "2.2.2"
+def create_scenario(version)
+ scenario = Ginger::Scenario.new
+ scenario[/^active_?support$/] = version
+ scenario[/^active_?record$/] = version
+ scenario[/^action_?pack$/] = version
+ scenario[/^action_?controller$/] = version
+ scenario
+end
- rails_2_3_1 = Ginger::Scenario.new
- rails_2_3_1[/rails/] = "2.3.1"
+Ginger.configure do |config|
+ config.aliases["active_record"] = "activerecord"
+ config.aliases["active_support"] = "activesupport"
+ config.aliases["action_controller"] = "actionpack"
- config.scenarios << rails_2_2_2 << rails_2_3_1
+ config.scenarios << create_scenario("2.0.2")
+ config.scenarios << create_scenario("2.1.2")
+ config.scenarios << create_scenario("2.2.2")
+ config.scenarios << create_scenario("2.3.1")
end

0 comments on commit 37996e0

Please sign in to comment.