diff --git a/Rakefile b/Rakefile index af2bf90..1695c3b 100644 --- a/Rakefile +++ b/Rakefile @@ -4,4 +4,4 @@ require File.expand_path('../config/application', __FILE__) -Wikiufc::Application.load_tasks +WikiUFC::Application.load_tasks diff --git a/config.ru b/config.ru index 3ac728f..535392d 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,4 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) -run Wikiufc::Application +run WikiUFC::Application diff --git a/config/application.rb b/config/application.rb index 7d066f7..a2afbe3 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,62 +1,77 @@ require File.expand_path('../boot', __FILE__) require 'rails/all' +require 'active_support/core_ext/numeric/bytes' if defined?(Bundler) - # If you precompile assets before deploying to production, use this line Bundler.require(*Rails.groups(:assets => %w(development test))) - # If you want your assets lazily compiled in production, use this line - # Bundler.require(:default, :assets, Rails.env) end -module Wikiufc +module WikiUFC class Application < Rails::Application - # Settings in config/environments/* take precedence over those specified here. - # Application configuration should go into files in config/initializers - # -- all .rb files in that directory are automatically loaded. + config.encoding = "utf-8" + config.filter_parameters += [:password] + config.active_support.escape_html_entities_in_json = true + config.active_record.whitelist_attributes = true + config.assets.version = '1.0' + config.assets.enabled = true - # Custom directories with classes and modules you want to be autoloadable. - # config.autoload_paths += %W(#{config.root}/extras) + config.language = "pt_BR" + config.title = "Wiki UFC" + config.webmaster_email = "webmaster@wikiufc.gelsol.org" - # Only load the plugins named here, in the order given (default is alphabetical). - # :all can be used as a placeholder for all plugins not explicitly named. - # config.plugins = [ :exception_notification, :ssl_requirement, :all ] + config.default_host = "localhost:3000" + config.base_path = "" - # Activate observers that should always be running. - # config.active_record.observers = :cacher, :garbage_collector, :forum_observer + config.current_period = "2009.2" - # 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. Default is UTC. - # config.time_zone = 'Central Time (US & Canada)' + # Limites + config.max_upload_file_size = 5.megabytes - # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. - # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] - # config.i18n.default_locale = :de + # Forum + #config.forum_uri = "http://127.0.0.1:3001/" - # Configure the default encoding used in templates for Ruby 1.9. - config.encoding = "utf-8" + # Tema + config.default_color = 0 + config.default_avatar = "http://isoron.org/avatar" + config.color_schemes = [ + # Default + [ "#037", "#069", "#455", "#778" ], - # Configure sensitive parameters which will be filtered from the log file. - config.filter_parameters += [:password] + # Legado + [ "#000", "#069", "#455", "#455" ], + [ "#000", "#690", "#444", "#666" ], - # Enable escaping HTML in JSON. - config.active_support.escape_html_entities_in_json = true + # Mono - # Use SQL instead of Active Record's schema dumper when creating the database. - # This is necessary if your schema can't be completely dumped by the schema dumper, - # like if you have constraints or database-specific column types - # config.active_record.schema_format = :sql + [ "#900", "#c00", "#444", "#888" ], + + # Aqua + [ "#7b7", "#455", "#899", "#abb" ], + [ "#005B9A", "#455", "#899", "#abb" ], + [ "#8D009A", "#455", "#899", "#abb" ], + [ "#9A000D", "#455", "#899", "#abb" ], + [ "#5A9A00", "#455", "#899", "#abb" ], - # Enforce whitelist mode for mass assignment. - # This will create an empty whitelist of attributes available for mass-assignment for all models - # in your app. As such, your models will need to explicitly whitelist or blacklist accessible - # parameters by using an attr_accessible or attr_protected declaration. - config.active_record.whitelist_attributes = true + # Complementar + #[ "#037", "#c60", "#457", "#568" ], + #[ "#070", "#c00", "#474", "#585" ], - # Enable the asset pipeline - config.assets.enabled = true + # Pink + [ "#d18", "#d18", "#457", "#668" ], + #[ "#609", "#455", "#547", "#658" ], - # Version of your assets, change this if you want to expire all your assets - config.assets.version = '1.0' + # Sand + [ "#900", "#663", "#888", "#cc9" ], + [ "#036", "#663", "#888", "#cc9" ], + [ "#680", "#663", "#888", "#cc9" ] + ] + + + # Templates + config.inital_wiki_pages = ['Ementa', 'Notas de Aula'] + config.initial_wiki_page_content = "Página em branco." end end + +App = WikiUFC::Application.config diff --git a/config/environment.rb b/config/environment.rb index 031f65a..8cb7b5c 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -2,4 +2,4 @@ require File.expand_path('../application', __FILE__) # Initialize the rails application -Wikiufc::Application.initialize! +WikiUFC::Application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb index f3b32d1..5fd276c 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,4 @@ -Wikiufc::Application.configure do +WikiUFC::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on diff --git a/config/environments/production.rb b/config/environments/production.rb index fe98b20..7eaaeb0 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,4 +1,4 @@ -Wikiufc::Application.configure do +WikiUFC::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests diff --git a/config/environments/test.rb b/config/environments/test.rb index 031a224..c17dcf4 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,4 +1,4 @@ -Wikiufc::Application.configure do +WikiUFC::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 87a27d3..53bff0c 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -4,4 +4,4 @@ # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -Wikiufc::Application.config.secret_token = 'd4db7e1c74d119bf152adab65b8490569719e91ba8753ba6515c0ae72e3da5b52959d6b7e98c7fba26d89592024a45144fcd8d0f9be984f0ac14eb2735acd91d' +WikiUFC::Application.config.secret_token = 'd4db7e1c74d119bf152adab65b8490569719e91ba8753ba6515c0ae72e3da5b52959d6b7e98c7fba26d89592024a45144fcd8d0f9be984f0ac14eb2735acd91d' diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 74b98fa..a35dfa0 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,8 +1,8 @@ # Be sure to restart your server when you modify this file. -Wikiufc::Application.config.session_store :cookie_store, :key => '_wikiufc_session' +WikiUFC::Application.config.session_store :cookie_store, :key => '_wikiufc_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails generate session_migration") -# Wikiufc::Application.config.session_store :active_record_store +# WikiUFC::Application.config.session_store :active_record_store diff --git a/config/routes.rb b/config/routes.rb index 6600dd9..66c417e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,4 @@ -Wikiufc::Application.routes.draw do +WikiUFC::Application.routes.draw do # The priority is based upon order of creation: # first created -> highest priority.