/railties/CHANGELOG.md
Markdown | 2464 lines | 1290 code | 1174 blank | 0 comment | 0 complexity | 7addb3d8c62db21ce0263e86dc17c601 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- ## Rails 3.2.8 (Aug 9, 2012) ##
- * ERB scaffold generator use the `:data => { :confirm => "Text" }` syntax instead of `:confirm`.
- *Rafael Mendonça França*
- ## Rails 3.2.7 (Jul 26, 2012) ##
- * Since Rails 3.2, use layout false to render no layout
- * Use strict_args_position! if available from Thor
- ## Rails 3.2.6 (Jun 12, 2012) ##
- * No changes.
- ## Rails 3.2.4 (May 31, 2012) ##
- * Add hook for resource route's generator. *Santiago Pastorino*
- ## Rails 3.2.3 (unreleased) ##
- * No changes.
- ## Rails 3.2.2 (March 1, 2012) ##
- * No changes.
- ## Rails 3.2.1 (January 26, 2012) ##
- * Documentation fixes.
- * Migration generation understands decimal{1.2} and decimal{1-2}, in
- addition to decimal{1,2}. *José Valim*
- ## Rails 3.2.0 (January 20, 2012) ##
- * Rails 2.3-style plugins in vendor/plugins are deprecated and will be removed in Rails 4.0. Move them out of vendor/plugins and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. *Santiago Pastorino*
- * Guides are available as a single .mobi for the Kindle and free Kindle readers apps. *Michael Pearson & Xavier Noria*
- * Allow scaffold/model/migration generators to accept a "index" and "uniq" modifiers, as in: "tracking_id:integer:uniq" in order to generate (unique) indexes. Some types also accept custom options, for instance, you can specify the precision and scale for decimals as "price:decimal{7,2}". *Dmitrii Samoilov*
- * Added `config.exceptions_app` to set the exceptions application invoked by the ShowException middleware when an exception happens. Defaults to `ActionDispatch::PublicExceptions.new(Rails.public_path)`. *José Valim*
- * Speed up development by only reloading classes if dependencies files changed. This can be turned off by setting `config.reload_classes_only_on_change` to false. *José Valim*
- * New applications get a flag `config.active_record.auto_explain_threshold_in_seconds` in the environments configuration files. With a value of 0.5 in development.rb, and commented out in production.rb. No mention in test.rb. *fxn*
- * Add DebugExceptions middleware which contains features extracted from ShowExceptions middleware *José Valim*
- * Display mounted engine's routes in `rake routes` *Piotr Sarnacki*
- * Allow to change the loading order of railties with `config.railties_order=` *Piotr Sarnacki*
- Example:
- config.railties_order = [Blog::Engine, :main_app, :all]
- * Scaffold returns 204 No Content for API requests without content. This makes scaffold work with jQuery out of the box *José Valim*
- * Update Rails::Rack::Logger middleware to apply any tags set in config.log_tags to the newly ActiveSupport::TaggedLogging Rails.logger. This makes it easy to tag log lines with debug information like subdomain and request id -- both very helpful in debugging multi-user production applications *DHH*
- * Default options to `rails new` can be set in ~/.railsrc *Guillermo Iguaran*
- * Add destroy alias to Rails engines *Guillermo Iguaran*
- * Add destroy alias for Rails command line. This allows the following: `rails d model post` *Andrey Ognevsky*
- * Attributes on scaffold and model generators default to string. This allows the following: "rails g scaffold Post title body:text author" *José Valim*
- * Remove old plugin generator (`rails generate plugin`) in favor of `rails plugin new` command *Guillermo Iguaran*
- * Remove old 'config.paths.app.controller' API in favor of 'config.paths["app/controller"]' API *Guillermo Iguaran*
- ## Rails 3.1.2 (November 18, 2011) ##
- * Engines: don't blow up if db/seeds.rb is missing.
- *Jeremy Kemper*
- * `rails new foo --skip-test-unit` should not add the `:test` task to the rake default task.
- *GH 2564*
- *José Valim*
- ## Rails 3.1.1 (October 7, 2011) ##
- * Add jquery-rails to Gemfile of plugins, test/dummy app needs it. Closes #3091. *Santiago Pastorino*
- * Add config.assets.initialize_on_precompile which, when set to false, forces
- `rake assets:precompile` to load the application but does not initialize it.
- To the app developer, this means configuration add in
- config/initializers/* will not be executed.
- Plugins developers need to special case their initializers that are
- meant to be run in the assets group by adding :group => :assets.
- ## Rails 3.1.0 (August 30, 2011) ##
- * The default database schema file is written as UTF-8. *Aaron Patterson*
- * Generated apps with --dev or --edge flags depend on git versions of
- sass-rails and coffee-rails. *Santiago Pastorino*
- * Rack::Sendfile middleware is used only if x_sendfile_header is present. *Santiago Pastorino*
- * Add JavaScript Runtime name to the Rails Info properties. *DHH*
- * Make pp enabled by default in Rails console. *Akira Matsuda*
- * Add alias `r` for rails runner. *Jordi Romero*
- * Make sprockets/railtie require explicit and add --skip-sprockets to app generator *José Valim*
- * Added Rails.groups that automatically handles Rails.env and ENV["RAILS_GROUPS"] *José Valim*
- * The new rake task assets:clean removes precompiled assets. *fxn*
- * Application and plugin generation run bundle install unless --skip-gemfile or --skip-bundle. *fxn*
- * Fixed database tasks for jdbc* adapters #jruby *Rashmi Yadav*
- * Template generation for jdbcpostgresql #jruby *Vishnu Atrai*
- * Template generation for jdbcmysql and jdbcsqlite3 #jruby *Arun Agrawal*
- * The -j option of the application generator accepts an arbitrary string. If passed "foo",
- the gem "foo-rails" is added to the Gemfile, and the application JavaScript manifest
- requires "foo" and "foo_ujs". As of this writing "prototype-rails" and "jquery-rails"
- exist and provide those files via the asset pipeline. Default is "jquery". *fxn*
- * jQuery is no longer vendored, it is provided from now on by the jquery-rails gem. *fxn*
- * Prototype and Scriptaculous are no longer vendored, they are provided from now on
- by the prototype-rails gem. *fxn*
- * The scaffold controller will now produce SCSS file if Sass is available *Prem Sichanugrist*
- * The controller and resource generators will now automatically produce asset stubs (this can be turned off with --skip-assets). These stubs will use Coffee and Sass, if those libraries are available. *DHH*
- * jQuery is the new default JavaScript library. *fxn*
- * Changed scaffold, application, and mailer generator to create Ruby 1.9 style hash when running on Ruby 1.9 *Prem Sichanugrist*
- So instead of creating something like:
- redirect_to users_path, :notice => "User has been created"
- it will now be like this:
- redirect_to users_path, notice: "User has been created"
- You can also passing `--old-style-hash` to make Rails generate old style hash even you're on Ruby 1.9
- * Changed scaffold_controller generator to create format block for JSON instead of XML *Prem Sichanugrist*
- * Add using Turn with natural language test case names for test_help.rb when running with minitest (Ruby 1.9.2+) *DHH*
- * Direct logging of Active Record to STDOUT so it's shown inline with the results in the console *DHH*
- * Added `config.force_ssl` configuration which loads Rack::SSL middleware and force all requests to be under HTTPS protocol *DHH, Prem Sichanugrist, and Josh Peek*
- * Added `rails plugin new` command which generates rails plugin with gemspec, tests and dummy application for testing *Piotr Sarnacki*
- * Added -j parameter with jquery/prototype as options. Now you can create your apps with jQuery using `rails new myapp -j jquery`. The default is still Prototype. *siong1987*
- * Added Rack::Etag and Rack::ConditionalGet to the default middleware stack *José Valim*
- * Added Rack::Cache to the default middleware stack *Yehuda Katz and Carl Lerche*
- * Engine is now rack application *Piotr Sarnacki*
- * Added middleware stack to Engine *Piotr Sarnacki*
- * Engine can now load plugins *Piotr Sarnacki*
- * Engine can load its own environment file *Piotr Sarnacki*
- * Added helpers to call engines' route helpers from application and vice versa *Piotr Sarnacki*
- * Task for copying plugins' and engines' migrations to application's db/migrate directory *Piotr Sarnacki*
- * Changed ActionDispatch::Static to allow handling multiple directories *Piotr Sarnacki*
- * Added isolate_namespace() method to Engine, which sets Engine as isolated *Piotr Sarnacki*
- * Include all helpers from plugins and shared engines in application *Piotr Sarnacki*
- ## Rails 3.0.7 (April 18, 2011) ##
- * No changes.
- * Rails 3.0.6 (April 5, 2011)
- * No changes.
- ## Rails 3.0.5 (February 26, 2011) ##
- * No changes.
- ## Rails 3.0.4 (February 8, 2011) ##
- * No changes.
- ## Rails 3.0.3 (November 16, 2010) ##
- * No changes.
- ## Rails 3.0.2 (November 15, 2010) ##
- * No changes.
- ## Rails 3.0.1 (October 15, 2010) ##
- * No Changes, just a version bump.
- ## Rails 3.0.0 (August 29, 2010) ##
- * Application generation: --skip-testunit and --skip-activerecord become --skip-test-unit and --skip-active-record respectively. *fxn*
- * Added console to Rails::Railtie as a hook called just after console starts. *José Valim*
- * Rails no longer autoload code in lib for application. You need to explicitly require it. *José Valim*
- * Rails::LogSubscriber was renamed to ActiveSupport::LogSubscriber *José Valim*
- * config.load_(once_)paths in config/application.rb got renamed to config.autoload_(once_)paths. *fxn*
- * Abort generation/booting on Ruby 1.9.1. *fxn*
- * Made the rails command work even when you're in a subdirectory *Chad Fowler*
- * Removed Rails Metal [Yehuda Katz, José Valim].
- * Renamed config.cookie_secret to config.secret_token and pass it as env key. *José Valim*
- * Session store configuration has changed *Yehuda Katz, Carl Lerche*
- config.session_store :cookie_store, {:key => "..."}
- config.cookie_secret = "fdsfhisdghfidugnfdlg"
- * railtie_name and engine_name are deprecated. You can now add any object to
- the configuration object: config.your_plugin = {} *José Valim*
- * Added config.generators.templates to provide alternative paths for the generators
- to look for templates *José Valim*
- * Added "rake about" as a replacement for script/about *DHH*
- * Removed all the default commands in script/* and replaced them with script/rails and a rails command that'll act the same when run from within the app [DHH]. Example:
- ./script/generate scaffold post title:string can now be called as rails g scaffold post title:string
- Run rails --help inside an app for more help.
- * Removed config/initializers/new_rails_defaults.rb as all frameworks now follow the settings from it *DHH*
- * Set config.time_zone to UTC by default *DHH*
- * Added default .gitignore (this is just recognizing Git market share, don't throw a hissy if you use another SCM) *DHH*
- * Added cookies.permanent, cookies.signed, and cookies.permanent.signed accessor for common cookie actions [DHH]. Examples:
- cookies.permanent[:prefers_open_id] = true
- # => Set-Cookie: prefers_open_id=true; path=/; expires=Sun, 16-Dec-2029 03:24:16 GMT
- cookies.signed[:discount] = 45
- # => Set-Cookie: discount=BAhpMg==--2c1c6906c90a3bc4fd54a51ffb41dffa4bf6b5f7; path=/
- cookies.signed[:discount]
- # => 45 (if the cookie was changed, you'll get a InvalidSignature exception)
- cookies.permanent.signed[:remember_me] = current_user.id
- # => Set-Cookie: discount=BAhU--848956038e692d7046deab32b7131856ab20e14e; path=/; expires=Sun, 16-Dec-2029 03:24:16 GMT
- ...to use the signed cookies, you need to set a secret to ActionController::Base.cookie_verifier_secret (automatically done in config/initializers/cookie_verification_secret.rb for new Rails applications).
- * Added config/initializers/cookie_verification_secret.rb with an auto-generated secret for using ActionController::Base#cookies.signed *DHH*
- * Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs *DHH*
- * I18n support for plugins. #2325 *Antonio Tapiador, Sven Fuchs*
- * Ruby 1.9: use UTF-8 for default internal and external encodings. *Jeremy Kemper*
- * Added db/seeds.rb as a default file for storing seed data for the database. Can be loaded with rake db:seed (or created alongside the db with db:setup). (This is also known as the "Stop Putting Gawd Damn Seed Data In Your Migrations" feature) *DHH*
- ## 2.3.2 Final (March 15, 2009) ##
- * Remove outdated script/plugin options *Pratik Naik*
- * Allow metal to live in plugins #2045 *Matthew Rudy*
- * Added metal *Josh Peek*
- * Remove script/performance/request in favour of the performance integration tests. *Pratik Naik*
- To continue using script/performance/request, install the request_profiler plugin :
- script/plugin install git://github.com/rails/request_profiler.git
- * Add a rake task to apply a template to an existing application : rake rails:template LOCATION=~/template.rb *Pratik Naik*
- * Add "-m/--template" option to Rails generator to apply a template to the generated application. *Jeremy McAnally*
- This has been extracted from rg - http://github.com/jeremymcanally/rg
- Example:
- # template.rb
- # Install plugins from git or svn
- plugin "will-paginate", :git => "git://github.com/mislav/will_paginate.git"
- plugin "old-restful-auth", :svn => "http://svn.techno-weenie.net/projects/plugins/restful_authentication/"
- # Add gems to environment.rb
- gem "jeremymcanally-context"
- gem "bluecloth"
- # Vendor file. Data in a string or...
- vendor("borrowed.rb", <<CODE
- def helpful_method
- do_something_helpful_here
- end
- CODE
- # ...file data from block return value.
- # #initializer creates a new initializer file
- initializer("crypto.rb") do
- salt = "--#{Time.now}--#{rand}--#{srand(Time.now.to_i)}"
- "SPECIAL_SALT = '#{salt}'"
- end
- Usage:
- To use a template, provide a file path or URL:
- 1. Using a local file :
- rails <application name> -m /path/to/my/template.rb
- 2. Or directly from a URL :
- rails <application name> --template=http://gist.github.com/31208.txt
- * Extracted the process scripts (inspector, reaper, spawner) into the plugin irs_process_scripts *David Heinemeier Hansson*
- * Changed Rails.root to return a Pathname object (allows for Rails.root.join('app', 'controllers') => "#{RAILS_ROOT}/app/controllers") #1482 *Damian Janowski/?*
- * Added view path support for engines *David Heinemeier Hansson*
- * Added that config/routes.rb files in engine plugins are automatically loaded (and reloaded when they change in dev mode) *David Heinemeier Hansson*
- * Added app/[models|controllers|helpers] to the load path for plugins that has an app directory (go engines ;)) *David Heinemeier Hansson*
- * Add config.preload_frameworks to load all frameworks at startup. Default to false so Rails autoloads itself as it's used. Turn this on for Passenger and JRuby. Also turned on by config.threadsafe! *Jeremy Kemper*
- * Add a rake task to generate dispatchers : rake rails:generate_dispatchers *Pratik Naik*
- * "rails <app>" will not generate public/dispatch.cgi/fcgi/rb files by default now. Please use "--with-dispatchers" option if you need them. *Yaroslav Markin, Pratik Naik*
- * Added rake rails:update:application_controller to renamed application.rb to application_controller.rb -- included in rake rails:update so upgrading to 2.3 will automatically trigger it #1439 *kastner*
- * Added Rails.backtrace_cleaner as an accessor for the Rails::BacktraceCleaner instance used by the framework to cut down on backtrace noise and config/initializers/backtrace_silencers.rb to add your own (or turn them all off) *David Heinemeier Hansson*
- * Switch from Test::Unit::TestCase to ActiveSupport::TestCase. *Jeremy Kemper*
- * Added config.i18n settings gatherer to config/environment, auto-loading of all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale *David Heinemeier Hansson*
- * BACKWARDS INCOMPATIBLE: Renamed application.rb to application_controller.rb and removed all the special casing that was in place to support the former. You must do this rename in your own application when you upgrade to this version *David Heinemeier Hansson*
- ## 2.2.1 RC2 (November 14th, 2008) ##
- * Fixed plugin generator so that generated unit tests would subclass ActiveSupport::TestCase, also introduced a helper script to reduce the needed require statements #1137 *Mathias Meyer*
- * Update Prototype to 1.6.0.3 *sam*
- ## 2.2.0 RC1 (October 24th, 2008) ##
- * Fixed that sqlite would report "db/development.sqlite3 already exists" whether true or not on db:create #614 *Antonio Cangiano*
- * Added config.threadsafe! to toggle allow concurrency settings and disable the dependency loader *Josh Peek*
- * Turn cache_classes on by default *Josh Peek*
- * Added configurable eager load paths. Defaults to app/models, app/controllers, and app/helpers *Josh Peek*
- * Introduce simple internationalization support. *Ruby i18n team*
- * Make script/plugin install <plugin> -r <revision> option work with git based plugins. #257. [Tim Pope Jakub Kuźma]. Example:
- script/plugin install git://github.com/mislav/will_paginate.git -r agnostic # Installs 'agnostic' branch
- script/plugin install git://github.com/dchelimsky/rspec.git -r 'tag 1.1.4'
- * Added Rails.initialized? flag *Josh Peek*
- * Make rake test:uncommitted work with Git. *Tim Pope*
- * Added Thin support to script/server. #488 *Bob Klosinski*
- * Fix script/about in production mode. #370 *Cheah Chu Yeow, Xavier Noria, David Krmpotic*
- * Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen.
- * Fix discrepancies with loading rails/init.rb from gems.
- * Plugins check for the gem init path (rails/init.rb) before the standard plugin init path (init.rb) *Jacek Becela*
- * Changed all generated tests to use the test/do declaration style *David Heinemeier Hansson*
- * Wrapped Rails.env in StringInquirer so you can do Rails.env.development? *David Heinemeier Hansson*
- * Fixed that RailsInfoController wasn't considering all requests local in development mode (Edgard Castro) *#310 state:resolved*
- ## 2.1.0 (May 31st, 2008) ##
- * script/dbconsole fires up the command-line database client. #102 *Steve Purcell*
- * Fix bug where plugin init.rb files from frozen gem specs weren't being run. (pjb3) *#122 state:resolved*
- * Made the location of the routes file configurable with config.routes_configuration_file (Scott Fleckenstein) *#88*
- * Rails Edge info returns the latest git commit hash *Francesc Esplugas*
- * Added Rails.public_path to control where HTML and assets are expected to be loaded from (defaults to Rails.root + "/public") #11581 *Nick Sieger*
- * rake time:zones:local finds correct base utc offset for zones in the Southern Hemisphere *Geoff Buesing*
- * Don't require rails/gem_builder during rails initialization, it's only needed for the gems:build task. *Rick Olson*
- * script/performance/profiler compatibility with the ruby-prof >= 0.5.0. Closes #9176. *Jonathan del Strother*
- * 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 Olson*
- * Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants *Pratik Naik*
- * Allow files in plugins to be reloaded like the rest of the application. *Rick Olson*
- 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 Olson*
- \# 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 Olson*
- 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) *David Heinemeier Hansson*
- * 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 *David Heinemeier Hansson*
- * Added that gems can now be plugins if they include rails/init.rb #11444 *John Barnette*
- * Added Plugin#about method to programmatically access the about.yml in a plugin #10979 *James Adam*
- plugin = Rails::Plugin.new(path_to_my_plugin)
- plugin.about["author"] # => "James Adam"
- plugin.about["url"] # => "http://interblah.net"
- * Improve documentation. *Ryan Bigg, Jan De Poorter, Cheah Chu Yeow, Xavier Shay, Jack Danger Canty, Emilio Tagua, 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 *Jack Danger Canty*
- * 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 Olson*
- * 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) *David Heinemeier Hansson*
- * 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" *David Heinemeier Hansson*
- * 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) *David Heinemeier Hansson*
- * 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 *Thijs van der Vossen*
- * 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 *John Barnette*
- * Generated fixtures should not specify ids since theyre expected to be foxy fixtures #10330 *John Barnette*
- * 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 (Phusion)*
- * 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 *David Heinemeier Hansson*
- * 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 *James Adam*
- * 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 *Jeremy McAnally*
- * 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 *David Heinemeier Hansson*
- * 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 Olson*
- * 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 [David Heinemeier Hansson]. (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 *David Heinemeier Hansson*
- * 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 Skjerning*
- * Added VERBOSE option to rake db:migrate to turn off output #8204 *John Barnette*
- * 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 *Michael Koziarski*
- * 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 *David Heinemeier Hansson*
- * Support multiple config.after_initialize blocks so plugins and apps can more easily cooperate. #9582 *Zach Dennis*
- * Added db:drop:all to drop all databases declared in config/database.yml *David Heinemeier Hansson*
- * 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 *Chris Kampmeier*
- * 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 *Ryan Davis*
- * 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 Olson*
- * 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 *David Heinemeier Hansson*
- * 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 *David Heinemeier Hansson*
- 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 [David Heinemeier Hansson] 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 *Jeremy McAnally*
- * 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 *David Heinemeier Hansson*
- * 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 *David Heinemeier Hansson*
- * 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 *David Heinemeier Hansson*
- * For new apps, generate a random secret for the cookie-based session store. *Jeremy Kemper*
- * Stop swallowing errors during rake test *Michael Koziarski*
- * Update Rails Initializer to use ActionController::Base#view_paths *Rick Olson*
- * 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 Olson*
- 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'. *Michael Koziarski, 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) *David Heinemeier Hansson*
- * 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) *David Heinemeier Hansson*
- * Fixed that script/server running against Mongrel should tail the proper log regardless of the environment *David Heinemeier Hansson*
- * 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) *David Heinemeier Hansson*
- * Made RAILS_GEM_VERSION work for beta gems too, so specifying 1.1.6 will give you 1.1.6.4520 if available *David Heinemeier Hansson*
- * Update to Prototype and script.aculo.us [5579]. *Thomas Fuchs*
- * Made script/server work with -e and -d when using Mongrel *David Heinemeier Hansson*
- * 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 Lütke*
- * 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 waiting for another request; active processes gracefully exit when the request is finished. *Jeremy Kemper*
- * Alter prior change to use require_dependency instead of require_or_load. Causes ApplicationController to be reloaded again. Closes #6587. *Nicholas Seckar*
- * Rake: use absolute paths to load lib and vendor tasks so they may be run outside of RAILS_ROOT. #6584 *jchris*
- * Remove temporary crutch to help ApplicationController be unloaded. Closes #6496. *Nicholas Seckar*
- * scaffold_resource generator uses _path named routes and head instead of render :nothing => true. #6545 *Josh Susser*
- * Generator can show diff on file collision to help you decide whether to skip or overwrite. #6364 *jeffw, Jeremy Kemper*
- * Generated directories are recursively svn added, like mkdir -p. #6416 *NeilW*
- * resource and scaffold_resource generators add a restful route to config/routes.rb *Jeremy Kemper*
- * Revert environment changes for autoload_paths. *Michael Koziarski*
- * Update to latest Prototype, which doesn't serialize disabled form elements, adds clone() to arrays, empty/non-string Element.update() and adds a fixes excessive error reporting in WebKit beta versions *Thomas Fuchs*
- * Clean up the output of rake stats, de-emphasise components and apis, and remove the indents for tests *Michael Koziarski*
- * Added option to script/process/spawner of specifying the binding address #5133 *Dee Zsombor*
- * Update environment.rb comments to include config.autoload_paths. Closes #6478 *caio*
- * Update scaffold to use new form_tag block functionality. Closes #6480. *Bob Silva*
- * Plugin generator: check for class collisions. #4833 *vinbarnes@gmail.com*
- * Mailer generator: handle mailers in modules, set mime_version in unit test. *Jeremy Kemper*
- * Set $KCODE to 'u' by default to enable the multibyte safe String#chars proxy. *Michael Koziarski*
- * Added config.plugins to control which plugins are loaded #6269 [Stefan Kaes]. By default, everything in vendor/plugins will be loaded, but if you specify config.plugins, only those will be loaded. Example:
- config.plugins = %w[ routing_navigator simply_helpful ]
- * Clean up html on included error pages. *Tim Lucas*
- * Fixed default 404.html and 500.htmls to remove extreme ugliness and include human language *David Heinemeier Hansson*
- * Update to latest Prototype and script.aculo.us trunk versions *Thomas Fuchs*
- * PostgreSQL: db:test:purge closes open database connections first. #6236 *alex*
- * Fixed test:uncommitted on Windows (backslash issue) #4999 *paul@paulbutcher.com*
- * Fixed migration creation to work with namespaced models, so script/generate model Gallery::Image will use create_table :gallery_images #6327 *Bob Silva*
- * Fixed rename_table on SQLite tables with indexes defined #5942 *brandon@opensoul.org*
- * Added default timeout setting of 5 seconds to SQLite3 database.yml configurations *David Heinemeier Hansson*
- * Added generated attribute options to script/generate model, like the one found in scaffold_resource and resource [David Heinemeier Hansson]. Examples:
- ./script/generate model post title:string created_on:date body:text published:boolean
- * Added script/generate resource which works just like scaffold_resource, but creates empty placeholders instead of predefined *David Heinemeier Hansson*
- * script/runner can run files, pass on arguments, and be used as a shebang. #6286 *Tuxie, dlpond*
- #!/usr/bin/env /path/to/my/app/script/runner
- # Example: just start using your models as if you are in script/console
- Product.find(:all).each { |product| product.check_inventory }
- * Look for rake tasks in plugin subdirs. #6259 *obrie*
- * Added map.connect ':controller/:action/:id.:format' as a default route to config/routes.rb *David Heinemeier Hansson*
- * Updated prototype.js to 1.5.0_rc1 with latest fixes. *Rick Olson*
- - XPATH support
- - Make Form.getElements() return elements in the correct order
- - fix broken Form.serialize return
- * session_migration generator adds an index on updated_at. #6207 *grg*
- * script/server creates the tmp/pids directory. #6204 *jonathan*
- * Fix script/console --sandbox for internal transactions changes. #5738 *Chris McGrath, charles.gerungan@gmail.com*
- * Remove the uncanny default of adding all app/models/*/ directories to the load path. This change will break application which expect the current behavior. As
- documented in initializer.rb, the workaround is:
- config.autoload_paths += Dir*RAILS_ROOT + '/app/models/*/'*
- References #6031. *Nicholas Seckar*
- * Update to script.aculo.us 1.6.3 *Thomas Fuchs*
- * Update to Prototype 1.5.0_rc1 *sam*
- * Formally Deprecate the old rake tasks. *Michael Koziarski*
- * Thoroughly test the FCGI dispatcher. #5970 *Kevin Clark*
- * Remove Dir.chdir in the Webrick DispatchServlet#initialize method. Fix bad path errors when trying to load config/routes.rb. *Rick Olson*
- * Tighten rescue clauses. #5985 *james@grayproductions.net*
- * Cleaning up tests. *Kevin Clark, Jeremy Kemper*
- * Add Dependencies.load_once_paths. *Nicholas Seckar*
- * Updated to script.aculo.us 1.6.2 *Thomas Fuchs*
- * Assign Routing.controller_paths; fix script/about and rails info controller. *Nicholas Seckar*
- * Don't warn dispatcher of Reloadable deprecations. *Nicholas Seckar*
- * Rearrange application resetting and preparation, fix bug with leaking subclasses hash in ActiveRecord::Base *Rick Olson*
- ActiveRecord::Base.reset_subclasses is called before Dependencies are cleared and classes removed.
- ActiveRecord::Base.instantiate_observers is called during a Dispatcher preparation callback.
- * Add missing mock directories from the autoload_paths configuration. *Rick Olson*
- * Nested controller scaffolding also nests the generated layout. *iain d broadfoot*
- * Add "require 'dispatcher'" to webrick server in the continuing quest to squash webrick weirdness. *Nicholas Seckar*
- * Add autoload_paths support to Initializer. *Nicholas Seckar*
- * Fix Dispatcher.reset_application! so that AR subclasses are removed and Observers re-initialized *after* Reloadable classes are removed. Closes #5743. *Rick Olson*
- * Clarify usage of script/plugin source. Closes #5344. *James Adam*
- * Add Dispatcher.to_prepare and config.to_prepare to provide a pre-request hook. *Nicholas Seckar*
- * Tweak the Rails load order so observers are loaded after plugins, and reloaded in development mode. Closed #5279. *Rick Olson*
- * Added that you can change the web server port in config/lighttpd.conf from script/server --port/-p #5465 *mats@imediatec.co.uk*
- * script/performance/profiler compatibility with the new ruby-prof, including an option to choose the results printer. #5679 *Shugo Maeda*
- * Fixed the failsafe response so it uses either the current recognized controller or ApplicationController. *Rick Olson*
- * Make sure script/reaper only reaps dispatcher pids by default, and not the spawner's pid. *Jamis Buck*
- * Fix script/plugin about so it uses about.yml and not meta.yml. *James Adam*
- * Dispatcher processes rescued actions with the same controller that processed the request. #4625 *sd@notso.net*
- * rails -d frontbase to create a new project with a frontbase database.yml. #4945 *mlaster@metavillage.com*
- * Ensure the logger is initialized. #5629 *mike@clarkware.com*
- * Added Mongrel-spawning capabilities to script/process/spawner. Mongrel will be the default choice if installed, otherwise FCGI is tried [David Heinemeier Hansson]. Examples:
- spawner # starts instances on 8000, 8001, and 8002 using Mongrel if available
- spawner fcgi # starts instances on 8000, 8001, and 8002 using FCGI
- spawner mongrel -i 5 # starts instances on 8000, 8001, 8002, 8003, and 8004 using Mongrel
- spawner -p 9100 -i 10 # starts 10 instances counting from 9100 to 9109 using Mongrel if available
- spawner -p 9100 -r 5 # starts 3 instances counting from 9100 to 9102 and attempts start them every 5 seconds
- Also note that script/process/reaper is Mongrel capable. So the combination of spawner and reaper is a built-in alternative to something like mongrel_cluster.
- * Update scaffolding functional tests to use :id => people(:first) instead of :id => 1. #5612 *evan@protest.net*
- * db:test:clone should remove existing tables before reloading the schema. #5607 *sveit@tradeharbor.com*
- * Fixed migration generation for class names like ACLController #5197 *brad@madriska.com*
- * Added show_source_list and show_call_stack to breakpoints to make it easier to get context #5476 [takiuchi@drecom.co.jp]. Examples:
- …
Large files files are truncated, but you can click here to view the full file