mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:08 -05:00
Merge branch '3-2-sec' into 3-2-stable
* 3-2-sec: updating changelogs bumping to 3.2.15 bumping to rc3 Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build" Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target" bumping to rc2 Merge pull request #12443 from arthurnn/add_inverse_of_add_target bumping version to 3.2.15.rc1 Remove the use of String#% when formatting durations in log messages Conflicts: activerecord/CHANGELOG.md
This commit is contained in:
@@ -1 +1 @@
|
||||
3.2.14
|
||||
3.2.15
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
## Rails 3.2.15 (Oct 16, 2013) ##
|
||||
|
||||
* No changes.
|
||||
|
||||
## Rails 3.2.14 (Jul 22, 2013) ##
|
||||
|
||||
* No changes.
|
||||
|
||||
@@ -4,12 +4,12 @@ module ActionMailer
|
||||
class LogSubscriber < ActiveSupport::LogSubscriber
|
||||
def deliver(event)
|
||||
recipients = Array.wrap(event.payload[:to]).join(', ')
|
||||
info("\nSent mail to #{recipients} (%1.fms)" % event.duration)
|
||||
info("\nSent mail to #{recipients} (#{format_duration(event.duration)})")
|
||||
debug(event.payload[:mail])
|
||||
end
|
||||
|
||||
def receive(event)
|
||||
info("\nReceived mail (%.1fms)" % event.duration)
|
||||
info("\nReceived mail (#{format_duration(event.duration)})")
|
||||
debug(event.payload[:mail])
|
||||
end
|
||||
|
||||
@@ -19,4 +19,4 @@ module ActionMailer
|
||||
end
|
||||
end
|
||||
|
||||
ActionMailer::LogSubscriber.attach_to :action_mailer
|
||||
ActionMailer::LogSubscriber.attach_to :action_mailer
|
||||
|
||||
@@ -2,7 +2,7 @@ module ActionMailer
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 2
|
||||
TINY = 14
|
||||
TINY = 15
|
||||
PRE = nil
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## unreleased ##
|
||||
## Rails 3.2.15 (Oct 16, 2013) ##
|
||||
|
||||
* Fix `ActionDispatch::RemoteIp::GetIp#calculate_ip` to only check for spoofing
|
||||
attacks if both `HTTP_CLIENT_IP` and `HTTP_X_FORWARDED_FOR` are set.
|
||||
|
||||
@@ -23,7 +23,7 @@ module ActionController
|
||||
exception_class_name = payload[:exception].first
|
||||
status = ActionDispatch::ExceptionWrapper.status_code_for_exception(exception_class_name)
|
||||
end
|
||||
message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in %.0fms" % event.duration
|
||||
message = "Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{format_duration(event.duration)}"
|
||||
message << " (#{additions.join(" | ")})" unless additions.blank?
|
||||
|
||||
info(message)
|
||||
@@ -34,9 +34,7 @@ module ActionController
|
||||
end
|
||||
|
||||
def send_file(event)
|
||||
message = "Sent file %s"
|
||||
message << " (%.1fms)"
|
||||
info(message % [event.payload[:path], event.duration])
|
||||
info("Sent file #{event.payload[:path]} (#{format_duration(event.duration)})")
|
||||
end
|
||||
|
||||
def redirect_to(event)
|
||||
@@ -44,7 +42,7 @@ module ActionController
|
||||
end
|
||||
|
||||
def send_data(event)
|
||||
info("Sent data %s (%.1fms)" % [event.payload[:filename], event.duration])
|
||||
info("Sent data #{event.payload[:filename]} (#{format_duration(event.duration)})")
|
||||
end
|
||||
|
||||
%w(write_fragment read_fragment exist_fragment?
|
||||
@@ -53,7 +51,8 @@ module ActionController
|
||||
def #{method}(event)
|
||||
key_or_path = event.payload[:key] || event.payload[:path]
|
||||
human_name = #{method.to_s.humanize.inspect}
|
||||
info("\#{human_name} \#{key_or_path} \#{"(%.1fms)" % event.duration}")
|
||||
duration = format_duration(event.duration)
|
||||
info("\#{human_name} \#{key_or_path} \#{duration}")
|
||||
end
|
||||
METHOD
|
||||
end
|
||||
|
||||
@@ -2,7 +2,7 @@ module ActionPack
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 2
|
||||
TINY = 14
|
||||
TINY = 15
|
||||
PRE = nil
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
## Rails 3.2.15 (Oct 16, 2013) ##
|
||||
|
||||
* No changes.
|
||||
|
||||
## Rails 3.2.14 (Jul 22, 2013) ##
|
||||
|
||||
* No changes.
|
||||
|
||||
@@ -2,7 +2,7 @@ module ActiveModel
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 2
|
||||
TINY = 14
|
||||
TINY = 15
|
||||
PRE = nil
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## unreleased ##
|
||||
## Rails 3.2.15 (Oct 16, 2013) ##
|
||||
|
||||
* When calling the method .find_or_initialize_by_* from a collection_proxy
|
||||
it should set the inverse_of relation even when the entry was found on the db.
|
||||
|
||||
@@ -2,7 +2,7 @@ module ActiveRecord
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 2
|
||||
TINY = 14
|
||||
TINY = 15
|
||||
PRE = nil
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
## Rails 3.2.15 (Oct 16, 2013) ##
|
||||
|
||||
* No changes.
|
||||
|
||||
## Rails 3.2.14 (Jul 22, 2013) ##
|
||||
|
||||
* Fixes an issue that ActiveResource models ignores ActiveResource::Base.include_root_in_json.
|
||||
|
||||
@@ -2,7 +2,7 @@ module ActiveResource
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 2
|
||||
TINY = 14
|
||||
TINY = 15
|
||||
PRE = nil
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## unreleased ##
|
||||
## Rails 3.2.15 (Oct 16, 2013) ##
|
||||
|
||||
* Fix ActiveSupport::Cache::FileStore#cleanup to no longer rely on missing each_key method.
|
||||
|
||||
|
||||
@@ -118,5 +118,9 @@ module ActiveSupport
|
||||
bold = bold ? BOLD : ""
|
||||
"#{bold}#{color}#{text}#{CLEAR}"
|
||||
end
|
||||
|
||||
def format_duration(duration)
|
||||
"%.1fms" % duration
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,7 +2,7 @@ module ActiveSupport
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 2
|
||||
TINY = 14
|
||||
TINY = 15
|
||||
PRE = nil
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
## Rails 3.2.15 (Oct 16, 2013) ##
|
||||
|
||||
* No changes.
|
||||
|
||||
## Rails 3.2.14 (Jul 22, 2013) ##
|
||||
|
||||
* Fix bugs that crashed `rake test:benchmark`, `rails profiler` and
|
||||
|
||||
@@ -2,7 +2,7 @@ module Rails
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 2
|
||||
TINY = 14
|
||||
TINY = 15
|
||||
PRE = nil
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
@@ -2,7 +2,7 @@ module Rails
|
||||
module VERSION #:nodoc:
|
||||
MAJOR = 3
|
||||
MINOR = 2
|
||||
TINY = 14
|
||||
TINY = 15
|
||||
PRE = nil
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
Reference in New Issue
Block a user