diff --git a/config/environment.rb.SAMPLE b/config/environment.rb.SAMPLE --- a/config/environment.rb.SAMPLE +++ b/config/environment.rb.SAMPLE @@ -5,7 +5,7 @@ # ENV['RAILS_ENV'] ||= 'production' # Specifies gem version of Rails to use when vendor/rails is not present -RAILS_GEM_VERSION = '2.1.1' unless defined? RAILS_GEM_VERSION +RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION # Bootstrap the Rails environment, frameworks, and default configuration require File.join(File.dirname(__FILE__), 'boot') @@ -39,19 +39,23 @@ # config.active_record.observers = :cacher, :garbage_collector # Make Active Record use UTC-base instead of local time - config.active_record.default_timezone = :utc + config.time_zone = 'UTC' + # Setting locales + config.i18n.default_locale = 'th' + # See Rails::Configuration for more options # ------------- # Required gems # ------------- - - # This is for rspec - config.gem "rspec-rails", :lib => "spec" config.gem "haml" config.gem "tmail" - #config.gem "BlueCloth", :lig => "bluecloth" + config.gem "BlueCloth", :lib => "bluecloth" + + # NOTES on rspec: if you wan to test with rspec, you have to install + # rspec yourself, just call: [sudo] gem install rspec-rails + end # Add new inflection rules using the following format @@ -73,5 +77,13 @@ TEST_REQUEST_INPUT_FILE_DIR = RAILS_ROOT + '/data/test_request/input' TEST_REQUEST_OUTPUT_FILE_DIR = RAILS_ROOT + '/data/test_request/output' +# To use ANALYSIS MODE, provide the testcases/testruns breakdown, +# and the directory of the grading result (usually in judge's dir). +TASK_GRADING_INFO_FILENAME = RAILS_ROOT + '/config/tasks.yml' +GRADING_RESULT_DIR = '/home/thailandoi/ytopc/judge/result' + # Uncomment so that configuration is read only once when the server is loaded # Configuration.enable_caching + +# Uncomment so that the system validates user e-mails +# VALIDATE_USER_EMAILS = true