Permalink
Browse files

refs #7162, AWS gem monkey patches ActiveSupport methods

  • Loading branch information...
1 parent 4038644 commit fe5c7f2edfe881dd3951eedf2c67a73def5e36e7 @konstantin-dzreev konstantin-dzreev committed Jun 28, 2010
Showing with 6 additions and 3 deletions.
  1. +3 −0 History.txt
  2. +3 −3 lib/right_http_connection.rb
View
@@ -57,3 +57,6 @@ Initial public release
* fixed a bug: <NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.body_stream>
+== 1.2.5 (not released yet)
+
+- ActiveSupport dependency removal
@@ -34,7 +34,7 @@ module RightHttpConnection #:nodoc:
module VERSION #:nodoc:
MAJOR = 1 unless defined?(MAJOR)
MINOR = 2 unless defined?(MINOR)
- TINY = 99 unless defined?(TINY)
+ TINY = 5 unless defined?(TINY)
STRING = [MAJOR, MINOR, TINY].join('.') unless defined?(STRING)
end
@@ -237,7 +237,7 @@ def eof_time
# Returns true if we are receiving EOFs during last @params[:http_connection_retry_delay] seconds
# and there were no successful response from server
def raise_on_eof_exception?
- @eof[@server].blank? ? false : ( (Time.now.to_i-@params[:http_connection_retry_delay]) > @eof[@server].last.to_i )
+ @eof[@server].nil? ? false : ( (Time.now.to_i-@params[:http_connection_retry_delay]) > @eof[@server].last.to_i )
end
# Reset a list of EOFs for this server.
@@ -439,7 +439,7 @@ def request(request_params, &block)
def finish(reason = '')
if @http && @http.started?
- reason = ", reason: '#{reason}'" unless reason.blank?
+ reason = ", reason: '#{reason}'" unless reason.empty?
@logger.info("Closing #{@http.use_ssl? ? 'HTTPS' : 'HTTP'} connection to #{@http.address}:#{@http.port}#{reason}")
@http.finish
end

0 comments on commit fe5c7f2

Please sign in to comment.