Use double quotes in config/

This commit is contained in:
Julian Herrero
2019-03-15 09:28:28 +01:00
parent 8510624692
commit c9cdc72537
16 changed files with 158 additions and 159 deletions

View File

@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application. # This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__) require ::File.expand_path("../config/environment", __FILE__)
run Rails.application run Rails.application

View File

@@ -1,7 +1,6 @@
require File.expand_path("../boot", __FILE__)
require File.expand_path('../boot', __FILE__) require "rails/all"
require 'rails/all'
# Require the gems listed in Gemfile, including any gems # Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production. # you've limited to :test, :development, or :production.
@@ -44,13 +43,13 @@ module Consul
"zh-TW"] "zh-TW"]
config.i18n.available_locales = available_locales config.i18n.available_locales = available_locales
config.i18n.fallbacks = { config.i18n.fallbacks = {
'fr' => 'es', "fr" => "es",
'gl' => 'es', "gl" => "es",
'it' => 'es', "it" => "es",
'pt-BR' => 'es' "pt-BR" => "es"
} }
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')] config.i18n.load_path += Dir[Rails.root.join("config", "locales", "**", "*.{rb,yml}")]
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', 'custom', '**', '*.{rb,yml}')] config.i18n.load_path += Dir[Rails.root.join("config", "locales", "custom", "**", "*.{rb,yml}")]
config.after_initialize { Globalize.set_fallbacks_to_all_available_locales } config.after_initialize { Globalize.set_fallbacks_to_all_available_locales }
@@ -60,8 +59,8 @@ module Consul
config.active_record.raise_in_transactional_callbacks = true config.active_record.raise_in_transactional_callbacks = true
# Add lib to the autoload path # Add lib to the autoload path
config.autoload_paths << Rails.root.join('lib') config.autoload_paths << Rails.root.join("lib")
config.time_zone = 'Madrid' config.time_zone = "Madrid"
config.active_job.queue_adapter = :delayed_job config.active_job.queue_adapter = :delayed_job
# CONSUL specific custom overrides # CONSUL specific custom overrides
@@ -71,7 +70,7 @@ module Consul
# #
config.autoload_paths << "#{Rails.root}/app/controllers/custom" config.autoload_paths << "#{Rails.root}/app/controllers/custom"
config.autoload_paths << "#{Rails.root}/app/models/custom" config.autoload_paths << "#{Rails.root}/app/models/custom"
config.paths['app/views'].unshift(Rails.root.join('app', 'views', 'custom')) config.paths["app/views"].unshift(Rails.root.join("app", "views", "custom"))
end end
end end

View File

@@ -1,3 +1,3 @@
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
require 'bundler/setup' # Set up gems listed in the Gemfile. require "bundler/setup" # Set up gems listed in the Gemfile.

View File

@@ -1,19 +1,19 @@
# config valid only for current version of Capistrano # config valid only for current version of Capistrano
lock '~> 3.10.1' lock "~> 3.10.1"
def deploysecret(key) def deploysecret(key)
@deploy_secrets_yml ||= YAML.load_file('config/deploy-secrets.yml')[fetch(:stage).to_s] @deploy_secrets_yml ||= YAML.load_file("config/deploy-secrets.yml")[fetch(:stage).to_s]
@deploy_secrets_yml.fetch(key.to_s, 'undefined') @deploy_secrets_yml.fetch(key.to_s, "undefined")
end end
set :rails_env, fetch(:stage) set :rails_env, fetch(:stage)
set :rvm1_ruby_version, '2.3.2' set :rvm1_ruby_version, "2.3.2"
set :application, 'consul' set :application, "consul"
set :full_app_name, deploysecret(:full_app_name) set :full_app_name, deploysecret(:full_app_name)
set :server_name, deploysecret(:server_name) set :server_name, deploysecret(:server_name)
set :repo_url, 'https://github.com/consul/consul.git' set :repo_url, "https://github.com/consul/consul.git"
set :revision, `git rev-parse --short #{fetch(:branch)}`.strip set :revision, `git rev-parse --short #{fetch(:branch)}`.strip
@@ -26,7 +26,7 @@ set :linked_dirs, %w{log tmp public/system public/assets}
set :keep_releases, 5 set :keep_releases, 5
set :local_user, ENV['USER'] set :local_user, ENV["USER"]
set :delayed_job_workers, 2 set :delayed_job_workers, 2
set :delayed_job_roles, :background set :delayed_job_roles, :background
@@ -41,15 +41,15 @@ set(:config_files, %w(
set :whenever_roles, -> { :app } set :whenever_roles, -> { :app }
namespace :deploy do namespace :deploy do
#before :starting, 'rvm1:install:rvm' # install/update RVM #before :starting, "rvm1:install:rvm" # install/update RVM
#before :starting, 'rvm1:install:ruby' # install Ruby and create gemset #before :starting, "rvm1:install:ruby" # install Ruby and create gemset
#before :starting, 'install_bundler_gem' # install bundler gem #before :starting, "install_bundler_gem" # install bundler gem
after :publishing, 'deploy:restart' after :publishing, "deploy:restart"
after :published, 'delayed_job:restart' after :published, "delayed_job:restart"
after :published, 'refresh_sitemap' after :published, "refresh_sitemap"
after :finishing, 'deploy:cleanup' after :finishing, "deploy:cleanup"
end end
task :install_bundler_gem do task :install_bundler_gem do
@@ -62,7 +62,7 @@ task :refresh_sitemap do
on roles(:app) do on roles(:app) do
within release_path do within release_path do
with rails_env: fetch(:rails_env) do with rails_env: fetch(:rails_env) do
execute :rake, 'sitemap:refresh:no_ping' execute :rake, "sitemap:refresh:no_ping"
end end
end end
end end

View File

@@ -1,7 +1,7 @@
set :deploy_to, deploysecret(:deploy_to) set :deploy_to, deploysecret(:deploy_to)
set :server_name, deploysecret(:server_name) set :server_name, deploysecret(:server_name)
set :db_server, deploysecret(:db_server) set :db_server, deploysecret(:db_server)
set :branch, ENV['branch'] || :master set :branch, ENV["branch"] || :master
set :ssh_options, port: deploysecret(:ssh_port) set :ssh_options, port: deploysecret(:ssh_port)
set :stage, :preproduction set :stage, :preproduction
set :rails_env, :preproduction set :rails_env, :preproduction

View File

@@ -1,7 +1,7 @@
set :deploy_to, deploysecret(:deploy_to) set :deploy_to, deploysecret(:deploy_to)
set :server_name, deploysecret(:server_name) set :server_name, deploysecret(:server_name)
set :db_server, deploysecret(:db_server) set :db_server, deploysecret(:db_server)
set :branch, ENV['branch'] || :master set :branch, ENV["branch"] || :master
set :ssh_options, port: deploysecret(:ssh_port) set :ssh_options, port: deploysecret(:ssh_port)
set :stage, :staging set :stage, :staging
set :rails_env, :staging set :rails_env, :staging

View File

@@ -1,5 +1,5 @@
# Load the Rails application. # Load the Rails application.
require File.expand_path('../application', __FILE__) require File.expand_path("../application", __FILE__)
# Initialize the Rails application. # Initialize the Rails application.
Rails.application.initialize! Rails.application.initialize!

View File

@@ -15,7 +15,7 @@ Rails.application.configure do
# Don't care if the mailer can't send. # Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false config.action_mailer.raise_delivery_errors = false
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
config.action_mailer.asset_host = "http://localhost:3000" config.action_mailer.asset_host = "http://localhost:3000"
# Deliver emails to a development mailbox at /letter_opener # Deliver emails to a development mailbox at /letter_opener
@@ -49,7 +49,7 @@ Rails.application.configure do
config.after_initialize do config.after_initialize do
Bullet.enable = true Bullet.enable = true
Bullet.bullet_logger = true Bullet.bullet_logger = true
if ENV['BULLET'] if ENV["BULLET"]
Bullet.rails_logger = true Bullet.rails_logger = true
Bullet.add_footer = true Bullet.add_footer = true
end end

View File

@@ -22,7 +22,7 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since # Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this. # Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
# Compress JavaScripts and CSS. # Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier config.assets.js_compressor = :uglifier
@@ -38,8 +38,8 @@ Rails.application.configure do
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Specifies the header that your server uses for sending files. # Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true config.force_ssl = true
@@ -58,7 +58,7 @@ Rails.application.configure do
config.cache_store = :dalli_store, { value_max_bytes: 2000000 } config.cache_store = :dalli_store, { value_max_bytes: 2000000 }
# Enable serving of images, stylesheets, and JavaScripts from an asset server. # Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com' # config.action_controller.asset_host = "http://assets.example.com"
# Ignore bad email addresses and do not raise email delivery errors. # Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -70,12 +70,12 @@ Rails.application.configure do
# Uncomment the following block of code and add your SMTP service credentials # Uncomment the following block of code and add your SMTP service credentials
# config.action_mailer.delivery_method = :smtp # config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = { # config.action_mailer.smtp_settings = {
# address: 'smtp.example.com', # address: "smtp.example.com",
# port: 587, # port: 587,
# domain: 'example.com', # domain: "example.com",
# user_name: '<username>', # user_name: "<username>",
# password: '<password>', # password: "<password>",
# authentication: 'plain', # authentication: "plain",
# enable_starttls_auto: true } # enable_starttls_auto: true }
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to # Enable locale fallbacks for I18n (makes lookups for any locale fall back to

View File

@@ -22,7 +22,7 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since # Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this. # Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
# Compress JavaScripts and CSS. # Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier config.assets.js_compressor = :uglifier
@@ -38,8 +38,8 @@ Rails.application.configure do
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Specifies the header that your server uses for sending files. # Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true config.force_ssl = true
@@ -58,7 +58,7 @@ Rails.application.configure do
config.cache_store = :dalli_store, { value_max_bytes: 2000000 } config.cache_store = :dalli_store, { value_max_bytes: 2000000 }
# Enable serving of images, stylesheets, and JavaScripts from an asset server. # Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com' # config.action_controller.asset_host = "http://assets.example.com"
# Ignore bad email addresses and do not raise email delivery errors. # Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -70,12 +70,12 @@ Rails.application.configure do
# Uncomment the following block of code and add your SMTP service credentials # Uncomment the following block of code and add your SMTP service credentials
# config.action_mailer.delivery_method = :smtp # config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = { # config.action_mailer.smtp_settings = {
# address: 'smtp.example.com', # address: "smtp.example.com",
# port: 587, # port: 587,
# domain: 'example.com', # domain: "example.com",
# user_name: '<username>', # user_name: "<username>",
# password: '<password>', # password: "<password>",
# authentication: 'plain', # authentication: "plain",
# enable_starttls_auto: true } # enable_starttls_auto: true }
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to # Enable locale fallbacks for I18n (makes lookups for any locale fall back to

View File

@@ -22,7 +22,7 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since # Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this. # Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
# Compress JavaScripts and CSS. # Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier config.assets.js_compressor = :uglifier
@@ -38,8 +38,8 @@ Rails.application.configure do
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Specifies the header that your server uses for sending files. # Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true config.force_ssl = true
@@ -58,7 +58,7 @@ Rails.application.configure do
config.cache_store = :dalli_store config.cache_store = :dalli_store
# Enable serving of images, stylesheets, and JavaScripts from an asset server. # Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com' # config.action_controller.asset_host = "http://assets.example.com"
# Ignore bad email addresses and do not raise email delivery errors. # Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -70,12 +70,12 @@ Rails.application.configure do
# Uncomment the following block of code and add your SMTP service credentials # Uncomment the following block of code and add your SMTP service credentials
# config.action_mailer.delivery_method = :smtp # config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = { # config.action_mailer.smtp_settings = {
# address: 'smtp.example.com', # address: "smtp.example.com",
# port: 587, # port: 587,
# domain: 'example.com', # domain: "example.com",
# user_name: '<username>', # user_name: "<username>",
# password: '<password>', # password: "<password>",
# authentication: 'plain', # authentication: "plain",
# enable_starttls_auto: true } # enable_starttls_auto: true }
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to # Enable locale fallbacks for I18n (makes lookups for any locale fall back to

View File

@@ -19,7 +19,7 @@ Rails.application.configure do
# Configure static file server for tests with Cache-Control for performance. # Configure static file server for tests with Cache-Control for performance.
config.serve_static_files = true config.serve_static_files = true
config.static_cache_control = 'public, max-age=3600' config.static_cache_control = "public, max-age=3600"
# Show full error reports and disable caching. # Show full error reports and disable caching.
config.consider_all_requests_local = true config.consider_all_requests_local = true
@@ -36,9 +36,9 @@ Rails.application.configure do
# ActionMailer::Base.deliveries array. # ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test config.action_mailer.delivery_method = :test
config.action_mailer.default_url_options = { config.action_mailer.default_url_options = {
host: 'test' host: "test"
} }
config.action_mailer.asset_host = 'http://consul.test' config.action_mailer.asset_host = "http://consul.test"
# Randomize the order test cases are executed. # Randomize the order test cases are executed.
config.active_support.test_order = :random config.active_support.test_order = :random
@@ -54,7 +54,7 @@ Rails.application.configure do
config.after_initialize do config.after_initialize do
Bullet.enable = true Bullet.enable = true
Bullet.bullet_logger = true Bullet.bullet_logger = true
if ENV['BULLET'] if ENV["BULLET"]
Bullet.raise = true # raise an error if n+1 query occurs Bullet.raise = true # raise an error if n+1 query occurs
end end
end end

View File

@@ -108,95 +108,95 @@ search:
# - 'errors.messages.{accepted,blank,invalid,too_short,too_long}' # - 'errors.messages.{accepted,blank,invalid,too_short,too_long}'
# - '{devise,simple_form}.*' # - '{devise,simple_form}.*'
ignore_missing: ignore_missing:
- 'unauthorized.*' - "unauthorized.*"
- 'activerecord.models.proposal' - "activerecord.models.proposal"
- 'activerecord.models.spending_proposal' - "activerecord.models.spending_proposal"
- 'activerecord.errors.models.proposal_notification.*' - "activerecord.errors.models.proposal_notification.*"
- 'activerecord.errors.models.direct_message.*' - "activerecord.errors.models.direct_message.*"
- 'errors.messages.blank' - "errors.messages.blank"
- 'errors.messages.taken' - "errors.messages.taken"
- 'devise.failure.invalid' - "devise.failure.invalid"
- 'devise.registrations.destroyed' - "devise.registrations.destroyed"
- 'devise.password_expired.*' - "devise.password_expired.*"
## Consider these keys used: ## Consider these keys used:
ignore_unused: ignore_unused:
- 'budgets.phase.*' - "budgets.phase.*"
- 'budgets.investments.index.orders.*' - "budgets.investments.index.orders.*"
- 'budgets.index.section_header.*' - "budgets.index.section_header.*"
- 'activerecord.*' - "activerecord.*"
- 'activemodel.*' - "activemodel.*"
- 'date.order' - "date.order"
- 'unauthorized.*' - "unauthorized.*"
- 'admin.officials.level_*' - "admin.officials.level_*"
- 'admin.comments.index.filter*' - "admin.comments.index.filter*"
- 'admin.banners.index.filters.*' - "admin.banners.index.filters.*"
- 'admin.debates.index.filter*' - "admin.debates.index.filter*"
- 'admin.hidden_proposals.index.filter*' - "admin.hidden_proposals.index.filter*"
- 'admin.proposal_notifications.index.filter*' - "admin.proposal_notifications.index.filter*"
- 'admin.budgets.index.filter*' - "admin.budgets.index.filter*"
- 'admin.budget_investments.index.filter*' - "admin.budget_investments.index.filter*"
- 'admin.spending_proposals.index.filter*' - "admin.spending_proposals.index.filter*"
- 'admin.organizations.index.filter*' - "admin.organizations.index.filter*"
- 'admin.hidden_users.index.filter*' - "admin.hidden_users.index.filter*"
- 'admin.hidden_budget_investments.index.filter*' - "admin.hidden_budget_investments.index.filter*"
- 'admin.activity.show.filter*' - "admin.activity.show.filter*"
- 'admin.legislation.processes.index.filter*' - "admin.legislation.processes.index.filter*"
- 'admin.legislation.processes.*.submit_button' - "admin.legislation.processes.*.submit_button"
- 'admin.legislation.processes.proposals.orders.*' - "admin.legislation.processes.proposals.orders.*"
- 'admin.legislation.processes.proposals.select_order' - "admin.legislation.processes.proposals.select_order"
- 'admin.legislation.draft_versions.*.submit_button' - "admin.legislation.draft_versions.*.submit_button"
- 'admin.legislation.questions.*.submit_button' - "admin.legislation.questions.*.submit_button"
- 'admin.comments.index.hidden_*' - "admin.comments.index.hidden_*"
- 'admin.settings.index.features.*' - "admin.settings.index.features.*"
- 'admin.polls.*.submit_button' - "admin.polls.*.submit_button"
- 'admin.booths.*.submit_button' - "admin.booths.*.submit_button"
- 'admin.admin_notifications.*.submit_button' - "admin.admin_notifications.*.submit_button"
- 'admin.homepage.*' - "admin.homepage.*"
- 'moderation.comments.index.filter*' - "moderation.comments.index.filter*"
- 'moderation.comments.index.order*' - "moderation.comments.index.order*"
- 'moderation.debates.index.filter*' - "moderation.debates.index.filter*"
- 'moderation.proposals.index.filter*' - "moderation.proposals.index.filter*"
- 'moderation.proposals.index.order*' - "moderation.proposals.index.order*"
- 'moderation.debates.index.filter*' - "moderation.debates.index.filter*"
- 'moderation.debates.index.order*' - "moderation.debates.index.order*"
- 'moderation.budget_investments.index.filter*' - "moderation.budget_investments.index.filter*"
- 'moderation.budget_investments.index.order*' - "moderation.budget_investments.index.order*"
- 'moderation.proposal_notifications.index.filter*' - "moderation.proposal_notifications.index.filter*"
- 'moderation.proposal_notifications.index.order*' - "moderation.proposal_notifications.index.order*"
- 'valuation.spending_proposals.index.filter*' - "valuation.spending_proposals.index.filter*"
- 'valuation.budgets.index.filter*' - "valuation.budgets.index.filter*"
- 'valuation.budget_investments.index.filter*' - "valuation.budget_investments.index.filter*"
- 'users.show.filters.*' - "users.show.filters.*"
- 'polls.index.filters.*' - "polls.index.filters.*"
- 'polls.index.section_header.*' - "polls.index.section_header.*"
- 'polls.index.orders.*' - "polls.index.orders.*"
- 'debates.index.select_order' - "debates.index.select_order"
- 'debates.index.orders.*' - "debates.index.orders.*"
- 'debates.index.section_header.*' - "debates.index.section_header.*"
- 'proposals.index.select_order' - "proposals.index.select_order"
- 'proposals.index.orders.*' - "proposals.index.orders.*"
- 'proposals.index.section_header.*' - "proposals.index.section_header.*"
- 'spending_proposals.index.search_form.*' - "spending_proposals.index.search_form.*"
- '*.index.search_form.*' - "*.index.search_form.*"
- 'notifications.notification.action.*' - "notifications.notification.action.*"
- 'legislation.processes.index.filter*' - "legislation.processes.index.filter*"
- 'legislation.processes.index.section_header.*' - "legislation.processes.index.section_header.*"
- 'legislation.processes.proposals.filters.*' - "legislation.processes.proposals.filters.*"
- 'helpers.page_entries_info.*' # kaminari - "helpers.page_entries_info.*" # kaminari
- 'views.pagination.*' # kaminari - "views.pagination.*" # kaminari
- 'shared.suggest.*' - "shared.suggest.*"
- 'invisible_captcha.*' - "invisible_captcha.*"
- 'admin.site_customization.pages.page.status_*' - "admin.site_customization.pages.page.status_*"
- 'admin.legislation.processes.process.*' - "admin.legislation.processes.process.*"
- 'legislation.processes.index.*' - "legislation.processes.index.*"
- 'votes.budget_investments.different_heading_assigned*' - "votes.budget_investments.different_heading_assigned*"
- '*.form.map_skip_checkbox' - "*.form.map_skip_checkbox"
# - '{devise,kaminari,will_paginate}.*' # - "{devise,kaminari,will_paginate}.*"
# - 'simple_form.{yes,no}' # - "simple_form.{yes,no}"
# - 'simple_form.{placeholders,hints,labels}.*' # - "simple_form.{placeholders,hints,labels}.*"
# - 'simple_form.{error_notification,required}.:' # - "simple_form.{error_notification,required}.:"
## Exclude these keys from the `i18n-tasks eq-base' report: ## Exclude these keys from the `i18n-tasks eq-base" report:
# ignore_eq_base: # ignore_eq_base:
# all: # all:
# - common.ok # - common.ok

View File

@@ -1,5 +1,5 @@
--- ---
app_root: '.' app_root: "."
allowed_ips: allowed_ips:
- 127.0.0.1 - 127.0.0.1
- x.x.x.x - x.x.x.x
@@ -7,6 +7,6 @@ allowed_ips:
allowed_paths: allowed_paths:
- your/custom/route - your/custom/route
reason: 'Website down for maintenance' reason: "Website down for maintenance"
response_code: 503 response_code: 503
retry_after: 3600 retry_after: 3600

View File

@@ -23,10 +23,10 @@ every 1.minute do
command "date > ~/cron-test.txt" command "date > ~/cron-test.txt"
end end
every 1.day, at: '5:00 am' do every 1.day, at: "5:00 am" do
rake "-s sitemap:refresh" rake "-s sitemap:refresh"
end end
every 1.day, at: '3:00 am', roles: [:cron] do every 1.day, at: "3:00 am", roles: [:cron] do
rake "votes:reset_hot_score" rake "votes:reset_hot_score"
end end

View File

@@ -2,7 +2,7 @@
class SitemapGenerator::FileAdapter class SitemapGenerator::FileAdapter
def gzip(stream, data); stream.write(data); stream.close end def gzip(stream, data); stream.write(data); stream.close end
end end
SitemapGenerator::Sitemap.namer = SitemapGenerator::SimpleNamer.new(:sitemap, extension: '.xml') SitemapGenerator::Sitemap.namer = SitemapGenerator::SimpleNamer.new(:sitemap, extension: ".xml")
# default host # default host
SitemapGenerator::Sitemap.verbose = false if Rails.env.test? SitemapGenerator::Sitemap.verbose = false if Rails.env.test?