right_support 2.8.9 → 2.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/right_support/log/filter_logger.rb +4 -1
- data/lib/right_support/net/request_balancer.rb +3 -2
- data/right_support.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.8.
|
1
|
+
2.8.10
|
@@ -40,6 +40,9 @@ module RightSupport::Log
|
|
40
40
|
FATAL => :fatal,
|
41
41
|
}
|
42
42
|
|
43
|
+
# @return [Logger] a reference to the underlying logger that receives filtered log calls
|
44
|
+
attr_reader :actual_logger
|
45
|
+
|
43
46
|
# Initialize a new instance of this class.
|
44
47
|
#
|
45
48
|
# === Parameters
|
@@ -194,4 +197,4 @@ module RightSupport::Log
|
|
194
197
|
return [severity, message]
|
195
198
|
end
|
196
199
|
end
|
197
|
-
end
|
200
|
+
end
|
@@ -99,10 +99,11 @@ module RightSupport::Net
|
|
99
99
|
#Some Ruby builtin exceptions indicate program errors
|
100
100
|
true
|
101
101
|
elsif e.respond_to?(:http_code) && (e.http_code != nil)
|
102
|
-
#RestClient
|
102
|
+
#RestClient and Net::HTTP exceptions all respond to http_code, allowing us
|
103
103
|
#to decide based on the HTTP response code.
|
104
|
+
#Any HTTP 3xx counts as fatal, in order to force the client to handle it
|
104
105
|
#Any HTTP 4xx code EXCEPT 408 (Request Timeout) counts as fatal.
|
105
|
-
(e.http_code >=
|
106
|
+
(e.http_code >= 300 && e.http_code < 500) && (e.http_code != 408)
|
106
107
|
else
|
107
108
|
#Anything else counts as non-fatal
|
108
109
|
false
|
data/right_support.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "right_support"
|
8
|
-
s.version = "2.8.
|
8
|
+
s.version = "2.8.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tony Spataro", "Sergey Sergyenko", "Ryan Williamson", "Lee Kirchhoff", "Alexey Karpik", "Scott Messier"]
|
12
|
-
s.date = "2014-01-
|
12
|
+
s.date = "2014-01-16"
|
13
13
|
s.description = "A toolkit of useful, reusable foundation code created by RightScale."
|
14
14
|
s.email = "support@rightscale.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 2.8.
|
9
|
+
- 10
|
10
|
+
version: 2.8.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tony Spataro
|
@@ -20,7 +20,7 @@ autorequire:
|
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
22
|
|
23
|
-
date: 2014-01-
|
23
|
+
date: 2014-01-16 00:00:00 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|