#-- # Copyright (C) 2007 Dimitrij Denissenko # Please read LICENSE document for more information. #++ # Be sure to restart your webserver when you modify this file. # Uncomment below to force Rails into production mode # (Use only when you can't set environment variables through your web/app server) # ENV['RAILS_ENV'] = 'production' RETROSPECTIVA_VERSION = '1.0.3 (343)' # Load constants require File.join(File.dirname(__FILE__), 'config') # Bootstrap the Rails environment, frameworks, and default configuration require File.join(File.dirname(__FILE__), 'boot') Rails::Initializer.run do |config| # Skip frameworks you're not going to use config.frameworks -= [ :action_web_service ] # Add additional load paths for your own custom dirs # config.load_paths += %W( #{RAILS_ROOT}/app/services ) # Force all environments to use the same logger level # (by default production uses :info, the others :debug) # config.log_level = :debug # Use the database for sessions instead of the file system # (create the session table with 'rake create_sessions_table') config.action_controller.session_store = :active_record_store # Enable page/fragment caching by setting a file-based store # (remember to create the caching directory and make it readable to the application) config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" # Activate observers that should always be running # config.active_record.observers = :cacher, :garbage_collector # Make Active Record use UTC-base instead of local time # config.active_record.default_timezone = :utc # Use Active Record's schema dumper instead of SQL when creating the test database # (enables use of different database adapters for development and test environments) config.active_record.schema_format = :ruby # See Rails::Configuration for more options config.load_paths += %W( vendor/coderay-0.7.4/lib ).map {|dir| "#{RAILS_ROOT}/#{dir}"}.select { |dir| File.directory?(dir) } end unless Rails::VERSION::MAJOR == 1 && Rails::VERSION::MINOR == 2 msg = <<-END_ERR_MSG --------------------------------------------------------------------- RAILS DEPENDENCY ERROR Retrospectiva depends on RubyOnRails version 1.2.x. You are running currently running #{Rails::VERSION::STRING}. Please execute 'rake rails:freeze:edge TAG=rel_1-2-5' to install the required version locally. --------------------------------------------------------------------- END_ERR_MSG raise msg end # Load rails libraries require 'digest/sha1' # Load vendor libraries require_library_or_gem 'coderay' unless Object.const_defined?(:ENABLE_SUBVERSION) && Object.const_get(:ENABLE_SUBVERSION) == false begin require 'svn/core' require 'svn/fs' require 'svn/delta' require 'svn/repos' require 'svn/client' ENABLE_SUBVERSION = true rescue LoadError ENABLE_SUBVERSION = false end end # Load retrospectiva libraries require 'patches' require 'retrospectiva' require 'time_interval' require 'mime_map' require 'previewable' require 'record_list' ########################################## # Configuration ########################################## Inflector.inflections do |inflect| inflect.uncountable %w( status ) end WikiEngine.default_markup = RetroCM[:content][:markup][:default] ########################################## # VERIFICATIONS ########################################## Group.find_all_by_access_to_all_projects(true).each do |group| group.projects = Project.find(:all) group.save end rescue nil #### END ################################################