aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gemfile.lock64
-rw-r--r--actioncable/README.md9
-rw-r--r--actionpack/test/controller/render_test.rb5
-rw-r--r--activerecord/lib/active_record/aggregations.rb2
-rw-r--r--railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb2
-rw-r--r--railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb2
6 files changed, 44 insertions, 40 deletions
diff --git a/Gemfile.lock b/Gemfile.lock
index 61b90d305c..a7b1daaef4 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -29,61 +29,61 @@ GIT
PATH
remote: .
specs:
- actioncable (5.0.0.beta1)
- actionpack (= 5.0.0.beta1)
+ actioncable (5.0.0.beta1.1)
+ actionpack (= 5.0.0.beta1.1)
coffee-rails (~> 4.1.0)
nio4r (~> 1.2)
websocket-driver (~> 0.6.1)
- actionmailer (5.0.0.beta1)
- actionpack (= 5.0.0.beta1)
- actionview (= 5.0.0.beta1)
- activejob (= 5.0.0.beta1)
+ actionmailer (5.0.0.beta1.1)
+ actionpack (= 5.0.0.beta1.1)
+ actionview (= 5.0.0.beta1.1)
+ activejob (= 5.0.0.beta1.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
- actionpack (5.0.0.beta1)
- actionview (= 5.0.0.beta1)
- activesupport (= 5.0.0.beta1)
+ actionpack (5.0.0.beta1.1)
+ actionview (= 5.0.0.beta1.1)
+ activesupport (= 5.0.0.beta1.1)
rack (~> 2.x)
rack-test (~> 0.6.3)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
- actionview (5.0.0.beta1)
- activesupport (= 5.0.0.beta1)
+ actionview (5.0.0.beta1.1)
+ activesupport (= 5.0.0.beta1.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
- activejob (5.0.0.beta1)
- activesupport (= 5.0.0.beta1)
+ activejob (5.0.0.beta1.1)
+ activesupport (= 5.0.0.beta1.1)
globalid (>= 0.3.6)
- activemodel (5.0.0.beta1)
- activesupport (= 5.0.0.beta1)
- activerecord (5.0.0.beta1)
- activemodel (= 5.0.0.beta1)
- activesupport (= 5.0.0.beta1)
+ activemodel (5.0.0.beta1.1)
+ activesupport (= 5.0.0.beta1.1)
+ activerecord (5.0.0.beta1.1)
+ activemodel (= 5.0.0.beta1.1)
+ activesupport (= 5.0.0.beta1.1)
arel (~> 7.0)
- activesupport (5.0.0.beta1)
+ activesupport (5.0.0.beta1.1)
concurrent-ruby (~> 1.0)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
method_source
minitest (~> 5.1)
tzinfo (~> 1.1)
- rails (5.0.0.beta1)
- actioncable (= 5.0.0.beta1)
- actionmailer (= 5.0.0.beta1)
- actionpack (= 5.0.0.beta1)
- actionview (= 5.0.0.beta1)
- activejob (= 5.0.0.beta1)
- activemodel (= 5.0.0.beta1)
- activerecord (= 5.0.0.beta1)
- activesupport (= 5.0.0.beta1)
+ rails (5.0.0.beta1.1)
+ actioncable (= 5.0.0.beta1.1)
+ actionmailer (= 5.0.0.beta1.1)
+ actionpack (= 5.0.0.beta1.1)
+ actionview (= 5.0.0.beta1.1)
+ activejob (= 5.0.0.beta1.1)
+ activemodel (= 5.0.0.beta1.1)
+ activerecord (= 5.0.0.beta1.1)
+ activesupport (= 5.0.0.beta1.1)
bundler (>= 1.3.0, < 2.0)
- railties (= 5.0.0.beta1)
+ railties (= 5.0.0.beta1.1)
sprockets-rails (>= 2.0.0)
- railties (5.0.0.beta1)
- actionpack (= 5.0.0.beta1)
- activesupport (= 5.0.0.beta1)
+ railties (5.0.0.beta1.1)
+ actionpack (= 5.0.0.beta1.1)
+ activesupport (= 5.0.0.beta1.1)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
diff --git a/actioncable/README.md b/actioncable/README.md
index 63e328321b..cad71ddf94 100644
--- a/actioncable/README.md
+++ b/actioncable/README.md
@@ -443,11 +443,10 @@ The Ruby side of things is built on top of [faye-websocket](https://github.com/f
## Deployment
-Action Cable is powered by a combination of EventMachine and threads. The
-framework plumbing needed for connection handling is handled in the
-EventMachine loop, but the actual channel, user-specified, work is handled
-in a normal Ruby thread. This means you can use all your regular Rails models
-with no problem, as long as you haven't committed any thread-safety sins.
+Action Cable is powered by a combination of websockets and threads. All of the
+connection management is handled internally by utilizing Ruby’s native thread
+support, which means you can use all your regular Rails models with no problems
+as long as you haven’t committed any thread-safety sins.
But this also means that Action Cable needs to run in its own server process.
So you'll have one set of server processes for your normal web work, and another
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 3f569230c2..db73de6010 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -253,6 +253,11 @@ end
class ExpiresInRenderTest < ActionController::TestCase
tests TestController
+ def setup
+ super
+ ActionController::Base.view_paths.paths.each(&:clear_cache)
+ end
+
def test_dynamic_render_with_file
# This is extremely bad, but should be possible to do.
assert File.exist?(File.join(File.dirname(__FILE__), '../../test/abstract_unit.rb'))
diff --git a/activerecord/lib/active_record/aggregations.rb b/activerecord/lib/active_record/aggregations.rb
index be88c7c9e8..3ff41ed81b 100644
--- a/activerecord/lib/active_record/aggregations.rb
+++ b/activerecord/lib/active_record/aggregations.rb
@@ -33,7 +33,7 @@ module ActiveRecord
# the database).
#
# class Customer < ActiveRecord::Base
- # composed_of :balance, class_name: "Money", mapping: %w(balance amount)
+ # composed_of :balance, class_name: "Money", mapping: %w(amount currency)
# composed_of :address, mapping: [ %w(address_street street), %w(address_city city) ]
# end
#
diff --git a/railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb b/railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb
index 438c84154d..d56fa30f4d 100644
--- a/railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb
+++ b/railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/channel.rb
@@ -1,4 +1,4 @@
-# Be sure to restart your server when you modify this file. Action Cable runs in an EventMachine loop that does not support auto reloading.
+# Be sure to restart your server when you modify this file. Action Cable runs in a loop that does not support auto reloading.
module ApplicationCable
class Channel < ActionCable::Channel::Base
end
diff --git a/railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb b/railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb
index 965046f3c7..b4f41389ad 100644
--- a/railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb
+++ b/railties/lib/rails/generators/rails/app/templates/app/channels/application_cable/connection.rb
@@ -1,4 +1,4 @@
-# Be sure to restart your server when you modify this file. Action Cable runs in an EventMachine loop that does not support auto reloading.
+# Be sure to restart your server when you modify this file. Action Cable runs in a loop that does not support auto reloading.
module ApplicationCable
class Connection < ActionCable::Connection::Base
end