mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Consistently use "rake foo:bar" instead of 'rake foo:bar', rake foo:bar
or rake foo:bar.
This commit is contained in:
parent
4d276cfafb
commit
88ef718361
10 changed files with 20 additions and 20 deletions
|
@ -34,7 +34,7 @@ require 'openssl' # to generate the HMAC message digest
|
|||
# such as 'MD5', 'RIPEMD160', 'SHA256', etc.
|
||||
#
|
||||
# To generate a secret key for an existing application, run
|
||||
# `rake secret` and set the key in config/environment.rb.
|
||||
# "rake secret" and set the key in config/environment.rb.
|
||||
#
|
||||
# Note that changing digest or secret invalidates all existing sessions!
|
||||
class CGI::Session::CookieStore
|
||||
|
|
|
@ -10,8 +10,8 @@ development:
|
|||
username: <%= app_name %>
|
||||
password: ''
|
||||
|
||||
# Warning: The database defined as 'test' will be erased and
|
||||
# re-generated from your development database when you run 'rake'.
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
adapter: frontbase
|
||||
|
|
|
@ -26,8 +26,8 @@ development:
|
|||
host: localhost
|
||||
<% end -%>
|
||||
|
||||
# Warning: The database defined as 'test' will be erased and
|
||||
# re-generated from your development database when you run 'rake'.
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
adapter: mysql
|
||||
|
|
|
@ -23,8 +23,8 @@ development:
|
|||
username: <%= app_name %>
|
||||
password:
|
||||
|
||||
# Warning: The database defined as 'test' will be erased and
|
||||
# re-generated from your development database when you run 'rake'.
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
adapter: oracle
|
||||
|
|
|
@ -30,8 +30,8 @@ development:
|
|||
# The server defaults to notice.
|
||||
#min_messages: warning
|
||||
|
||||
# Warning: The database defined as 'test' will be erased and
|
||||
# re-generated from your development database when you run 'rake'.
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
adapter: postgresql
|
||||
|
|
|
@ -4,8 +4,8 @@ development:
|
|||
adapter: sqlite
|
||||
database: db/development.sqlite2
|
||||
|
||||
# Warning: The database defined as 'test' will be erased and
|
||||
# re-generated from your development database when you run 'rake'.
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
adapter: sqlite
|
||||
|
|
|
@ -5,8 +5,8 @@ development:
|
|||
database: db/development.sqlite3
|
||||
timeout: 5000
|
||||
|
||||
# Warning: The database defined as 'test' will be erased and
|
||||
# re-generated from your development database when you run 'rake'.
|
||||
# Warning: The database defined as "test" will be erased and
|
||||
# re-generated from your development database when you run "rake".
|
||||
# Do not set this db to the same as development or production.
|
||||
test:
|
||||
adapter: sqlite3
|
||||
|
|
|
@ -21,7 +21,7 @@ Rails::Initializer.run do |config|
|
|||
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
|
||||
|
||||
# Specify gems that this application depends on.
|
||||
# They can then be installed with rake gems:install on new installations.
|
||||
# They can then be installed with "rake gems:install" on new installations.
|
||||
# config.gem "bj"
|
||||
# config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
|
||||
# config.gem "aws-s3", :lib => "aws/s3"
|
||||
|
@ -40,7 +40,7 @@ Rails::Initializer.run do |config|
|
|||
|
||||
# Make Time.zone default to the specified zone, and make Active Record store time values
|
||||
# in the database in UTC, and return them converted to the specified local zone.
|
||||
# Run `rake -D time` for a list of tasks for finding time zone names. Uncomment to use default local time.
|
||||
# Run "rake -D time" for a list of tasks for finding time zone names. Uncomment to use default local time.
|
||||
config.time_zone = 'UTC'
|
||||
|
||||
# Your secret key for verifying cookie session data integrity.
|
||||
|
@ -54,7 +54,7 @@ Rails::Initializer.run do |config|
|
|||
|
||||
# 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 'rake db:sessions:create')
|
||||
# (create the session table with "rake db:sessions:create")
|
||||
# config.action_controller.session_store = :active_record_store
|
||||
|
||||
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
||||
|
|
|
@ -169,7 +169,7 @@ module Rails
|
|||
# the Gem version of Rails shouldn't be loaded.
|
||||
def install_gem_spec_stubs
|
||||
unless Rails.respond_to?(:vendor_rails?)
|
||||
abort "Your config/boot.rb is outdated: Run 'rake rails:update'."
|
||||
abort %{Your config/boot.rb is outdated: Run "rake rails:update".}
|
||||
end
|
||||
|
||||
if Rails.vendor_rails?
|
||||
|
@ -289,7 +289,7 @@ module Rails
|
|||
def load_observers
|
||||
if configuration.frameworks.include?(:active_record)
|
||||
if @configuration.gems.any? { |g| !g.loaded? }
|
||||
puts "Unable to instantiate observers, some gems that this application depends on are missing. Run 'rake gems:install'"
|
||||
puts %{Unable to instantiate observers, some gems that this application depends on are missing. Run "rake gems:install"}
|
||||
else
|
||||
ActiveRecord::Base.instantiate_observers
|
||||
end
|
||||
|
@ -419,7 +419,7 @@ module Rails
|
|||
if configuration.time_zone
|
||||
zone_default = Time.send!(:get_zone, configuration.time_zone)
|
||||
unless zone_default
|
||||
raise "Value assigned to config.time_zone not recognized. Run `rake -D time` for a list of tasks for finding appropriate time zone names."
|
||||
raise %{Value assigned to config.time_zone not recognized. Run "rake -D time" for a list of tasks for finding appropriate time zone names.}
|
||||
end
|
||||
Time.zone_default = zone_default
|
||||
if configuration.frameworks.include?(:active_record)
|
||||
|
|
|
@ -173,7 +173,7 @@ namespace :db do
|
|||
pending_migrations.each do |pending_migration|
|
||||
puts ' %4d %s' % [pending_migration.version, pending_migration.name]
|
||||
end
|
||||
abort "Run `rake db:migrate` to update your database then try again."
|
||||
abort %{Run "rake db:migrate" to update your database then try again.}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue