Skip to content
Browse files

add Spring as major feature in the 4.1 release notes. [ci skip]

Follow up to #12958.
  • Loading branch information...
1 parent 6f72a6b commit 828a8f214535e59d709fd4862605902d1cc21632 @senny senny committed Dec 4, 2013
Showing with 57 additions and 0 deletions.
  1. +45 −0 guides/source/4_1_release_notes.md
  2. +12 −0 guides/source/upgrading_ruby_on_rails.md
View
45 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
@JuanitoFatas
JuanitoFatas added a note Dec 4, 2013

@senny spring status?

Spring is designed to be used without bundle exec, so use spring [command] rather than bundle exec spring [command].

@senny
Ruby on Rails member
senny added a note Dec 4, 2013

yes that's true. However with the rails integration spring is added to the gemfile and we don't know how the gem will be installed. For example I'm using BUNDLE_PATH: .bundle, which does not install the gem globally. So I have to use bundle exec.

I'll leave it up to @jonleighton if it should be just spring status.

@JuanitoFatas
JuanitoFatas added a note Dec 4, 2013

Ah. That's right! I understand you. Thank you for the explanation and your excellent work. Thumbs up for you.

@jonleighton
Ruby on Rails member
jonleighton added a note Dec 4, 2013

I think it should probably be spring status, as at the moment spring expects to be in the global gem path. But I have started a discussion about the issue raised by @senny at rails/spring#220.

@robin850
Ruby on Rails member
robin850 added a note Dec 6, 2013

The best of both worlds would be to add a note about global installation of Spring to avoid using bundle exec, what do you guys think ?

@senny
Ruby on Rails member
senny added a note Dec 17, 2013

We will keep this using bundle exec see rails/spring@c6e2580

@jonleighton
Ruby on Rails member
jonleighton added a note Dec 17, 2013

@senny no, we should change it to bin/spring status :)

@senny
Ruby on Rails member
senny added a note Dec 17, 2013

@jonleighton 😊 we should. Can you ping me when the new gem is released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+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))
View
12 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.

1 comment on commit 828a8f2

@senny
Ruby on Rails member
senny commented on 828a8f2 Dec 4, 2013
Please sign in to comment.
Something went wrong with that request. Please try again.