Sha256: 801845d45df3cdd79e80ee753bded69b3ab836dd09d94cc0a560190841361d30

Contents?: true

Size: 900 Bytes

Versions: 1

Compression:

Stored size: 900 Bytes

Contents

require 'ginger'

def create_scenario(version)
  scenario = Ginger::Scenario.new("Rails #{version}")
  scenario[/^action_?mailer$/] = version
  scenario[/^action_?pack$/] = version
  scenario[/^active_?support$/] = version
  scenario
end

Ginger.configure do |config|
  config.aliases["action_mailer"] = "actionmailer"
  config.aliases["action_pack"] = "actionpack"
  config.aliases["active_support"] = "activesupport"

  rails3 = create_scenario('3.0.0.beta')
  rails3['mail'] = '2.1.3'
  config.scenarios << rails3

  %w(
  2.3.5 2.3.4 2.3.3 2.3.2
  2.2.3 2.2.2
  2.1.2 2.1.1 2.1.0
  2.0.5 2.0.4 2.0.2 2.0.1 2.0.0
  ).each do |version|
    config.scenarios << create_scenario(version)
  end

  rails126 = Ginger::Scenario.new("Rails 1.2.6")
  rails126[/^action_?mailer$/] = '1.3.6'
  rails126[/^action_?pack$/] = '1.13.6'
  rails126[/^active_?support$/] = '1.4.4'
  config.scenarios << rails126
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mail_safe-0.3.0 ginger_scenarios.rb