Skip to content

Commit

Permalink
Merge branch '3-2-sec' into 3-2-stable
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tenderlove committed Oct 16, 2013
2 parents 6a185aa + 538f8ba commit 5f844d6
Show file tree
Hide file tree
Showing 19 changed files with 40 additions and 21 deletions.
2 changes: 1 addition & 1 deletion RAILS_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.14
3.2.15
4 changes: 4 additions & 0 deletions actionmailer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Rails 3.2.15 (Oct 16, 2013) ##

* No changes.

## Rails 3.2.14 (Jul 22, 2013) ##

* No changes.
Expand Down
6 changes: 3 additions & 3 deletions actionmailer/lib/action_mailer/log_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -19,4 +19,4 @@ def logger
end
end

ActionMailer::LogSubscriber.attach_to :action_mailer
ActionMailer::LogSubscriber.attach_to :action_mailer
2 changes: 1 addition & 1 deletion actionmailer/lib/action_mailer/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down
2 changes: 1 addition & 1 deletion actionpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
11 changes: 5 additions & 6 deletions actionpack/lib/action_controller/log_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def process_action(event)
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)
Expand All @@ -34,17 +34,15 @@ def halted_callback(event)
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)
info "Redirected to #{event.payload[:location]}"
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?
Expand All @@ -53,7 +51,8 @@ def send_data(event)
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
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_pack/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down
4 changes: 4 additions & 0 deletions activemodel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Rails 3.2.15 (Oct 16, 2013) ##

* No changes.

## Rails 3.2.14 (Jul 22, 2013) ##

* No changes.
Expand Down
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down
2 changes: 1 addition & 1 deletion activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down
4 changes: 4 additions & 0 deletions activeresource/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion activeresource/lib/active_resource/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down
2 changes: 1 addition & 1 deletion activesupport/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
4 changes: 4 additions & 0 deletions activesupport/lib/active_support/log_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,9 @@ def color(text, color, bold=false)
bold = bold ? BOLD : ""
"#{bold}#{color}#{text}#{CLEAR}"
end

def format_duration(duration)
"%.1fms" % duration
end
end
end
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down
4 changes: 4 additions & 0 deletions railties/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down
2 changes: 1 addition & 1 deletion version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
Expand Down

0 comments on commit 5f844d6

Please sign in to comment.