*SVN*
* Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. #11513 [ddollar]
rake gems:unpack # unpacks all gems
rake gems:unpack GEM=mygem # unpacks only the gem 'mygem'
rake gems:build # builds all unpacked gems
rake gems:build GEM=mygem # builds only the gem 'mygem'
* Add config.active_support for future configuration options. Also, add more new Rails 3 config settings to new_rails_defaults.rb [rick]
* Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants [pratik]
* Allow files in plugins to be reloaded like the rest of the application. [rick]
Enables or disables plugin reloading.
config.reload_plugins = true
You can get around this setting per plugin.
If #reload_plugins? == false (DEFAULT), add this to your plugin's init.rb to make it reloadable:
Dependencies.load_once_paths.delete lib_path
If #reload_plugins? == true, add this to your plugin's init.rb to only load it once:
Dependencies.load_once_paths << lib_path
* Small tweak to allow plugins to specify gem dependencies. [rick]
# OLD open_id_authentication plugin init.rb
require 'yadis'
require 'openid'
ActionController::Base.send :include, OpenIdAuthentication
# NEW
config.gem "ruby-openid", :lib => "openid", :version => "1.1.4"
config.gem "ruby-yadis", :lib => "yadis", :version => "0.3.4"
config.after_initialize do
ActionController::Base.send :include, OpenIdAuthentication
end
* Added config.gem for specifying which gems are required by the application, as well as rake tasks for installing and freezing gems. [rick]
Rails::Initializer.run do |config|
config.gem "bj"
config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
config.gem "aws-s3", :lib => "aws/s3"
end
# List required gems.
rake gems
# Install all required gems:
rake gems:install
# Unpack specified gem to vendor/gems/gem_name-x.x.x
rake gems:unpack GEM=bj
* Removed the default .htaccess configuration as there are so many good deployment options now (kept it as an example in README) [DHH]
* config.time_zone accepts TZInfo::Timezone identifiers as well as Rails TimeZone identifiers [Geoff Buesing]
* Rails::Initializer#initialize_time_zone raises an error if value assigned to config.time_zone is not recognized. Rake time zone tasks only require ActiveSupport instead of entire environment [Geoff Buesing]
* Stop adding the antiquated test/mocks/* directories and only add them to the path if they're still there for legacy reasons [DHH]
* Added that gems can now be plugins if they include rails/init.rb #11444 [jbarnette]
* Added Plugin#about method to programmatically access the about.yml in a plugin #10979 [lazyatom]
plugin = Rails::Plugin.new(path_to_my_plugin)
plugin.about["author"] # => "James Adam"
plugin.about["url"] # => "http://interblah.net"
* Improve documentation. [Radar, Jan De Poorter, chuyeow, xaviershay, danger, miloops, Xavier Noria, Sunny Ripert]
* Added config.time_zone = 'UTC' in the default environment.rb [Geoff Buesing]
* Added rake tasks time:zones:all, time:zones:us and time:zones:local for finding time zone names for config.time_zone option [Geoff Buesing]
* Add config.time_zone for configuring the default Time.zone value. #10982 [Geoff Buesing]
* Added support for installing plugins hosted at git repositories #11294 [danger]
* Fixed that script/generate would not look for plugin generators in plugin_paths #11000 [glv]
* Fixed database rake tasks to work with charset/collation and show proper error messages on failure. Closes #11301 [matt]
* Added a -e/--export to script/plugin install, uses svn export. #10847 [jon@blankpad.net)]
* Reshuffle load order so that routes and observers are initialized after plugins and app initializers. Closes #10980 [rick]
* Git support for script/generate. #10690 [ssoroka]
* Update scaffold to use labels instead of bold tags. Closes #10757 [zach-inglis-lt3]
* Resurrect WordNet synonym lookups. #10710 [tom./, matt]
* Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH]
* Added that rails:update is run when you do rails:freeze:edge to ensure you also get the latest JS and config files #10565 [jeff]
* SQLite: db:drop:all doesn't fail silently if the database is already open. #10577 [Cheah Chu Yeow, mrichman]
* Introduce native mongrel handler and push mutex into dispatcher. [Jeremy Kemper]
* Ruby 1.9 compatibility. #1689, #10546 [Cheah Chu Yeow, frederico]
*2.0.2* (December 16th, 2007)
* Changed the default database from mysql to sqlite3, so now running "rails myapp" will have a config/database.yml that's setup for SQLite3 (which in OS X Leopard is installed by default, so is the gem, so everything Just Works with no database configuration at all). To get a Rails application preconfigured for MySQL, just run "rails -d mysql myapp" [DHH]
* Turned on ActionView::Base.cache_template_loading by default in config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH]
* Introduce `rake secret` to output a crytographically secure secret key for use with cookie sessions #10363 [revans]
* Fixed that local database creation should consider 127.0.0.1 local #9026 [parcelbrat]
* Fixed that functional tests generated for scaffolds should use fixture calls instead of hard-coded IDs #10435 [boone]
* Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431, #10432 [matt]
* RAILS_GEM_VERSION may be double-quoted also. #10443 [James Cox]
* Update rails:freeze:gems to work with RubyGems 0.9.5. [Jeremy Kemper]
*2.0.1* (December 7th, 2007)
* Fixed Active Record bug
*2.0.0* (December 6th, 2007)
* The test task stops with a warning if you have pending migrations. #10377 [Josh Knowles]
* Add warning to documentation about using transactional fixtures when the code under test uses transactions itself. Closes #7548 [thijsv]
* Update Prototype to 1.6.0.1. [sam]
* Update script.aculo.us to 1.8.0.1. [madrobby]
* Added db:fixtures:identity as a way of locating what ID a foxy fixture was assigned #10332 [jbarnette]
* Generated fixtures should not specify ids since theyre expected to be foxy fixtures #10330 [jbarnette]
* Update to Prototype -r8232. [sam]
* Introduce SecretKeyGenerator for more secure session secrets than CGI::Session's pseudo-random id generator. Consider extracting to Active Support later. #10286 [Hongli Lai]
* RAILS_GEM_VERSION may be set to any valid gem version specifier. #10057 [Chad Woolley, Cheah Chu Yeow]
* Load config/preinitializer.rb, if present, before loading the environment. #9943 [Chad Woolley]
* FastCGI handler ignores unsupported signals like USR2 on Windows. [Grzegorz Derebecki]
* Only load ActionMailer::TestCase if ActionMailer is loaded. Closes #10137 [defunkt]
* Fixed that db:reset would use migrations instead of loading db/schema.rb [DHH]
* Ensure the plugin loader only loads plugins once. Closes #10102 [haruki_zaemon]
* Refactor Plugin Loader. Add plugin lib paths early, and add lots of tests. Closes #9795 [lazyatom]
* Added --skip-timestamps to generators that produce models #10036 [Tim Pope]
* Update Prototype to 1.6.0 and script.aculo.us to 1.8.0. [sam, madrobby]
* Added db:rollback to rollback the schema one version (or multiple as specified by STEP) [Jeffrey Allan Hardy]
* Fix typo in test_helper. Closes #9925 [viktor tron]
* Request profiler. [Jeremy Kemper]
* config/boot.rb correctly detects RAILS_GEM_VERSION. #9834 [alexch, thewoolleyman]
* Fixed incorrect migration number if script/generate executed outside of Rails root #7080 [jeremymcanally]
* Update Prototype to 1.6.0_rc1 and script.aculo.us to 1.8.0 preview 0. [sam, madrobby]
* Generated fixtures use the actual primary key instead of id. #4343 [Frederick Ros, Tarmo Tänav]
* Extend the console +helper+ method to allow you to include custom helpers. e.g:
>> helper :posts
>> helper.some_method_from_posts_helper(Post.find(1))
* db:create works with remote databases whereas db:create:all only creates
databases on localhost. #9753 [Trevor Wennblom]
* Removed calls to fixtures in generated tests as fixtures :all is now present by default in test_helper.rb [DHH]
* Add --prefix option to script/server when using mongrel. [dacat]
*2.0.0 [Preview Release]* (September 29th, 2007) [Includes duplicates of changes from 1.1.4 - 1.2.3]
* Fixed that installing plugins from SVN repositories that use trunk/ will work #8188 [evan]
* Moved the SourceAnnotationExtractor to a separate file in case libraries try to load the rails rake tasks twice. [Rick]
* Moved Dispatcher to ActionController::Dispatcher. [Jeremy Kemper]
* Changed the default logger from Ruby's own Logger with the clean_logger extensions to ActiveSupport::BufferedLogger for performance reasons [DHH]. (You can change it back with config.logger = Logger.new("/path/to/log", level).)
* Added a default 422.html page to be rendered when ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved, or ActionController::InvalidAuthenticityToken is raised [DHH]
* Added --skip-fixture option to script/generate model #6862 [sandofsky]
* Print Rails version when starting console #7440 [eyematz]
* Fixed the placement of fixture files for nested models when generating through script/generate model #7547 [jkit]
* Added TEMPLATE option to rake doc:app to set a custom output template #7737 [Jakob S]
* Added VERBOSE option to rake db:migrate to turn off output #8204 [jbarnette]
* Fixed that rake doc:app should use UTF-8 #8906 [farzy]
* Fixes rake annotations to search erb and builder files as well #9150 [m.langenberg]
* Removed web_service generator [Koz]
* Added the :all option to config.plugins that'll include the rest of the plugins not already explicitly named #9613 [Frederick Cheung]. Example:
# Loads :classic_pagination before all the other plugins
config.plugins = [ :classic_pagination, :all ]
* Added symbols as a legal way of specifying plugins in config.plugins #9629 [tom]
* Removed deprecated task names, like clear_logs, in favor of the new namespaced style [DHH]
* Support multiple config.after_initialize blocks so plugins and apps can more easily cooperate. #9582 [zdennis]
* Added db:drop:all to drop all databases declared in config/database.yml [DHH]
* Use attribute pairs instead of the migration name to create add and remove column migrations. Closes #9166 [Pratik Naik]
For example:
ruby script/generation migration AddSomeStuffToCustomers first_name:string last_name:string
or
ruby script/generation migration RemoveSomeStuffFromCustomers first_name:string last_name:string
* Add ActiveResource to Rails::Info. Closes #8741 [kampers]
* use Gem.find_name instead of search when freezing gems. Prevent false positives for other gems with rails in the name. Closes #8729 [wselman]
* Automatically generate add/remove column commands in specially named migrations like AddLocationToEvent. Closes #9006 [zenspider]
* Default to plural table name in Rails Generator if ActiveRecord is not present. Closes #8963 [evan]
* Added rake routes for listing all the defined routes in the system. #8795 [Josh Peek]
* db:create creates the database for the current environment if it's on localhost. db:create:all creates local databases for all environments. #8783 [matt]
* Generators: look for generators in all gems, not just those suffixed with _generator, in the gem's generators or rails_generators directory. Allow use of the rails_generators directory instead of the standard generators directory in plugins also. #8730 [Dr Nic, topfunky]
* MySQL, PostgreSQL: database.yml defaults to utf-8. #8701 [matt]
* Added db:version to get the current schema number [via Err The Blog]
* Added --skip-migration option to scaffold and resource generators #8656 [Michael Glaesemann]
* Fix that FCGIs would leave log files open when asked to shut down by USR2. #3028 [Sebastian Kanthak, Josh Peek]
* Fixed that dispatcher preparation callbacks only run once in production mode. Mock Routes.reload so that dispatcher preparation callback tests run. [Rick]
* Fix syntax error in dispatcher than wrecked failsafe responses. #8625 [mtitorenko]
* Scaffolded validation errors set the appropriate HTTP status for XML responses. #6946, #8622 [Manfred Stienstra, mmmultiworks]
* Sexy migrations for the session_migration generator. #8561 [Vladislav]
* Console reload! runs to_prepare callbacks also. #8393 [f.svehla]
* Generated migrations include timestamps by default. #8501 [Shane Vitarana]
* Drop Action Web Service from rails:freeze:edge. [Jeremy Kemper]
* Add db:create, drop, reset, charset, and collation tasks. #8448 [matt]
* Scaffold generator depends on model generator instead of duplicating it. #7222 [bscofield]
* Scaffold generator tests. #8443 [pelle]
* Generated scaffold functional tests use assert_difference. #8421 [Norbert Crombach]
* Update to Prototype 1.5.1. [Sam Stephenson]
* Update to script.aculo.us 1.7.1_beta3. [Thomas Fuchs]
* Generators use *.html.erb view template naming. #8278 [Tim Pope]
* Updated resource_scaffold and model generators to use short-hand style migrations [DHH]
* Updated initializer to only load #{RAILS_ENV}.rb once. Added deprecation warning for config.breakpoint_server. [Nicholas Seckar]
* Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
To use the new debugger, start your server with script/server --debugger and insert a call to 'debugger'
(instead of 'breakpoint') where you want to jump into the debugger.
BACKWARDS INCOMPATIBILITY NOTE: You must remove the default line 12 from config/environments/development.rb:
config.breakpoint_server = true
This configuration option is no longer available. Rails will fail to start in development mode as long as
that's still present.
* Resource scaffolding returns the created entity.to_xml. [Jeremy Kemper]
* Resource scaffolding responds to new.xml. #8185 [Eric Mill]
* Include Active Resource in rails:freeze:edge rake task. [Thomas Fuchs]
* Include Active Resource instead of Action Web Service [DHH] You can add AWS back with this in config/environment.rb:
config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/actionwebservice/lib )
...or just gem 'actionwebservice'
* Give generate scaffold a more descriptive database message. Closes #7316 [jeremymcanally]
* Canonicalize RAILS_ROOT by using File.expand_path on Windows, which doesn't have to worry about symlinks, and Pathname#realpath elsewhere, which respects symlinks in relative paths but is incompatible with Windows. #6755 [Jeremy Kemper, trevor]
* Deprecation: remove components from controller paths. [Jeremy Kemper]
* Add environment variable RAILS_DEFAULT_DATABASE, which allows the builtin default of 'mysql' to be overridden. [Nicholas Seckar]
* Windows: include MinGW in RUBY_PLATFORM check. #2982 [okkez000@gmail.com, Kaspar Schiess]
* Split out the basic plugin locator functionality into an abstract super class. Add a FileSystemLocator to do the job of checking the plugin_paths for plugins. Add plugin_locators configuration option which will iterate over the set of plugin locators and load each of the plugin loaders they return. Rename locater everywhere to locator. [Marcel Molina Jr.]
* Split plugin location and loading out of the initializer and into a new Plugin namespace, which includes Plugin::Locater and Plugin::Loader. The loader class that is used can be customized using the config.plugin_loader option. Those monkey patching the plugin loading subsystem take note, the internals changing here will likely break your modifications. The good news is that it should be substantially easier to hook into the plugin locating and loading process now. [Marcel Molina Jr.]
* Added assumption that all plugin creators desire to be sharing individuals and release their work under the MIT license [DHH]
* Added source-annotations extractor tasks to rake [Jamis Buck]. This allows you to add FIXME, OPTIMIZE, and TODO comments to your source code that can then be extracted in concert with rake notes (shows all), rake notes:fixme, rake notes:optimize and rake notes:todo.
* Added fixtures :all to test_helper.rb to assume that most people just want all their fixtures loaded all the time [DHH]
* Added config/initializers where all ruby files within it are automatically loaded after the Rails configuration is done, so you don't have to litter the environment.rb file with a ton of mixed stuff [DHH]
* For new apps, generate a random secret for the cookie-based session store. [Jeremy Kemper]
* Stop swallowing errors during rake test [Koz]
* Update Rails Initializer to use ActionController::Base#view_paths [Rick]
* Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]
* Plugins may be symlinked in vendor/plugins. #4245 [brandon, progrium@gmail.com]
* Resource generator depends on the model generator rather than duplicating it. #7269 [bscofield]
* Add/Update usage documentation for script/destroy, resource generator and scaffold_resource generator. Closes #7092, #7271, #7267. [bscofield]
* Update to script.aculo.us 1.7.0. [Thomas Fuchs]
* Update to Prototype 1.5.0. [Sam Stephenson]
* Generator: use destination path for diff tempfiles. #7015 [alfeld]
* Fixed that webrick would strip leading newlines and hang connection #4156 [psross]
* Ensure plugins are in the Dependencies.load_once_paths collection by default. [Rick]
If you really want your plugins to reload, add this to the very top of init.rb:
Dependencies.load_once_paths.delete(lib_path)
* Allow config.to_prepare to work, make the dispatcher safe to 're require'. [Koz, Nicholas Seckar]
* Fix scaffold_resource generator so it respects the --pretend argument when creating the routes file. Closes #6852 [fearoffish]
* Fix Webrick Daemon dispatching bug regarding a bad current working directory. Closes #4899 [Rick Olson]
* Make config.plugins affect the load path and the dependencies system. Allows you to control plugin loading order, and keep disabled plugins off the load path. [James Adam]
* Don't generate a components directory in new Rails apps. [Jeremy Kemper]
* Fixed script/process/spawner to work properly with Mongrel including in -r (daemonize mode) [DHH]
* Added one-letter aliases for the three default environments to script/console, so script/console p will load the production environment (t for test, d for development) [DHH]
* Fixed that script/server running against Mongrel should tail the proper log regardless of the environment [DHH]
* Update initializer to load Rails::VERSION as soon as possible. Closes #6698. [Nicholas Seckar]
* Added ActiveRecord::Base.clear_active_connections! in development mode so the database connection is not carried over from request to request. Some databases won't reread the schema if that doesn't happen (I'm looking at you SQLite), so you have to restart the server after each migration (= no fun) [DHH]
* Made RAILS_GEM_VERSION work for beta gems too, so specifying 1.1.6 will give you 1.1.6.4520 if available [DHH]
* Update to Prototype and script.aculo.us [5579]. [Thomas Fuchs]
* Made script/server work with -e and -d when using Mongrel [DHH]
* Update to Prototype 1.5.0_rc2 [5550] which makes it work in Opera again [Thomas Fuchs]
* Make sure that exceptions which are thrown outside of the user code try their best to be handeled in ApplicationController#rescue_action [Tobias Luetke]
* Rails::VERSION::STRING should always be available without having to require 'rails/version'. #6244 [fearoffish]
* Update to Prototype 1.5.0_rc2. [Sam Stephenson]
* Add grep-based fallback to reaper, to work in pidless setups [Jamis Buck]
* Only wrap request processing with our USR1 signal handler so FastCGI can trap it and raise an exception while waiting for connections. Idle processes exit immediately rather than wai