# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.10' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  # Specify gems that this application depends on and have them installed with rake gems:install
  config.gem 'aasm', :version => '2.2.0'
  config.gem 'authlogic', :version => '2.1.6'
  config.gem 'super_exception_notifier', :version => '3.0.13', :lib => "exception_notification"
  config.gem 'json', :version => '1.5.1'

  if ['development', 'test'].include? RAILS_ENV
    config.gem 'factory_girl', :version => '1.3.3', :lib => false
    config.gem 'rspec-rails',  :version => '1.3.3', :lib => false
  end

  # Libraries
  require 'digest/md5'

  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  # Run "rake -D time" for a list of tasks for finding time zone names.
  config.time_zone = 'UTC'

  # Load custom libraries before "config/initializers" run.
  $LOAD_PATH.unshift("#{RAILS_ROOT}/lib")
end

# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.10' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  # Specify gems that this application depends on and have them installed with rake gems:install
  config.gem 'aasm', :version => '2.2.0'
  config.gem 'authlogic', :version => '2.1.6'
  config.gem 'super_exception_notifier', :version => '~> 2.0.8', :lib => 'exception_notifier'
  config.gem 'json', :version => '1.5.1'

  if ['development', 'test'].include? RAILS_ENV
    config.gem 'factory_girl', :version => '1.3.3', :lib => false
    config.gem 'rspec-rails',  :version => '1.3.3', :lib => false
  end

  # Libraries
  require 'digest/md5'

  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  # Run "rake -D time" for a list of tasks for finding time zone names.
  config.time_zone = 'UTC'

  # Load custom libraries before "config/initializers" run.
  $LOAD_PATH.unshift("#{RAILS_ROOT}/lib")
end

Fix dependency error on unsupported super_exception_notifier 3.0.x.
Fix dependency error on unsupported super_exception_notifier 3.0.x.

* The app supported 2.0.x, which has a different API than 3.0.x.
* The environment was recently updated to specify 3.0.x without changing
  the API calls. This didn't fail in development or testing because the
  its only activated in special cases, e.g. running preview or production
  mode.
* Even if the code was updated to the new API, there's something crazy
  going on in either Rails or this gem that makes it impossible for it to
  coexist. So if you have both the 2.0.x and 3.0.x gems installed, it'll
  load the 3.0.x regardless of what you do, then try to load the 2.0.x
  and fail. The current workaround is to just not install the 3.0.x.
