sanford 0.18.2 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sanford/error_handler.rb +6 -6
- data/lib/sanford/version.rb +1 -1
- data/test/unit/error_handler_tests.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
data.tar.gz:
|
4
|
-
metadata.gz:
|
3
|
+
data.tar.gz: be152ddfab1bc45693e6d3f7770fb2dcac53e7ac
|
4
|
+
metadata.gz: 550b49e83a11d06488fbdddcec205ef4adb7df58
|
5
5
|
SHA512:
|
6
|
-
data.tar.gz:
|
7
|
-
metadata.gz:
|
6
|
+
data.tar.gz: 5ffb0877eaf187acc36e3a681478d90f867ab5e5156074ab56427c03df8f35eea17be19071d5bffbef79f1ed1784bfa6f6fbcfc5c12c8c6b91f5e02580cbcdd5
|
7
|
+
metadata.gz: 688a1b30785ba2d731e93f7b4ca513a6b8797654177b3414999f28330d9b78efd7a555b4f3e2314bb6ae7f0112d6146f346170aea3cb2d7ad79a7340337d74b2
|
@@ -76,16 +76,16 @@ module Sanford
|
|
76
76
|
attr_reader :request, :handler_class, :response
|
77
77
|
|
78
78
|
def initialize(args)
|
79
|
-
@server_data = args
|
80
|
-
@request = args
|
81
|
-
@handler_class = args
|
82
|
-
@response = args
|
79
|
+
@server_data = args.fetch(:server_data)
|
80
|
+
@request = args.fetch(:request)
|
81
|
+
@handler_class = args.fetch(:handler_class)
|
82
|
+
@response = args.fetch(:response)
|
83
83
|
end
|
84
84
|
|
85
85
|
def ==(other)
|
86
86
|
if other.kind_of?(self.class)
|
87
|
-
self.server_data == other.server_data
|
88
|
-
self.request == other.request
|
87
|
+
self.server_data == other.server_data &&
|
88
|
+
self.request == other.request &&
|
89
89
|
self.handler_class == other.handler_class &&
|
90
90
|
self.response == other.response
|
91
91
|
else
|
data/lib/sanford/version.rb
CHANGED
@@ -292,7 +292,12 @@ class Sanford::ErrorHandler
|
|
292
292
|
exp = Sanford::ErrorContext.new(@context_hash)
|
293
293
|
assert_equal exp, subject
|
294
294
|
|
295
|
-
exp = Sanford::ErrorContext.new({
|
295
|
+
exp = Sanford::ErrorContext.new({
|
296
|
+
:server_data => Sanford::ServerData.new,
|
297
|
+
:request => Factory.string,
|
298
|
+
:handler_class => Factory.string,
|
299
|
+
:response => Factory.string
|
300
|
+
})
|
296
301
|
assert_not_equal exp, subject
|
297
302
|
end
|
298
303
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanford
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Collin Redding
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-09-15 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: assert
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
requirements: []
|
155
155
|
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.6.4
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Sanford TCP protocol server for hosting services
|