From 828a8f214535e59d709fd4862605902d1cc21632 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Wed, 4 Dec 2013 11:54:34 +0100 Subject: add Spring as major feature in the 4.1 release notes. [ci skip] Follow up to #12958. --- guides/source/4_1_release_notes.md | 45 ++++++++++++++++++++++++++++++++ guides/source/upgrading_ruby_on_rails.md | 12 +++++++++ 2 files changed, 57 insertions(+) (limited to 'guides/source') diff --git a/guides/source/4_1_release_notes.md b/guides/source/4_1_release_notes.md index a8ec40adee..c549c14197 100644 --- a/guides/source/4_1_release_notes.md +++ b/guides/source/4_1_release_notes.md @@ -4,6 +4,7 @@ Ruby on Rails 4.1 Release Notes Highlights in Rails 4.1: * Variants +* Spring * Action View extracted from Action Pack These release notes cover only the major changes. To know about various bug @@ -61,6 +62,44 @@ Major Features app/views/projects/show.html+phone.erb ``` +### Spring + +New Rails 4.1 applications will ship with "springified" binstubs. This means +that `bin/rails` and `bin/rake` will automatically take advantage preloaded +spring environments. + +**running rake tasks:** +``` +bin/rake routes +``` + +**running tests:** +``` +bin/rake test +bin/rake test test/models +bin/rake test test/models/user_test.rb +``` + +**running a console:** +``` +bin/rails console +``` + +**spring introspection:** +``` +$ bundle exec spring status +Spring is running: + + 1182 spring server | my_app | started 29 mins ago + 3656 spring app | my_app | started 23 secs ago | test mode + 3746 spring app | my_app | started 10 secs ago | development mode +``` + +Have a look at the +[Spring README](https://github.com/jonleighton/spring/blob/master/README.md) to +see a all available features. + + Documentation ------------- @@ -90,6 +129,12 @@ for detailed changes. ### Notable changes +* The [Spring application + preloader](https://github.com/jonleighton/spring) is now installed + by default for new applications. It uses the development group of + the Gemfile, so will not be installed in + production. ([Pull Request](https://github.com/rails/rails/pull/12958)) + * `BACKTRACE` environment variable to show unfiltered backtraces for test failures. ([Commit](https://github.com/rails/rails/commit/84eac5dab8b0fe9ee20b51250e52ad7bfea36553)) diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 8ad7e62789..f9d5332754 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -27,6 +27,18 @@ Upgrading from Rails 4.0 to Rails 4.1 NOTE: This section is a work in progress. +### Spring + +If you want to use Spring as your application preloader you need to: + +1. add `gem 'spring', group: :development` to your `Gemfile`. +2. install spring using `bundle install`. +3. springify your binstubs with `bundle exec spring binstub --all`. + +NOTE: User defined rake tasks will run in the `development` environment by +default. If you want them to run in other environments consult the +[Spring README](https://github.com/jonleighton/spring#rake). + ### Changes in JSON handling The are a few major changes related to JSON handling in Rails 4.1. -- cgit v1.2.3