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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- data.tar.gz: 2d39dcf06279924cb91e044fb914714e6a7efae1
4
- metadata.gz: 332f6d1e003e14abd4c20eb30b1d9168b4e86404
3
+ data.tar.gz: be152ddfab1bc45693e6d3f7770fb2dcac53e7ac
4
+ metadata.gz: 550b49e83a11d06488fbdddcec205ef4adb7df58
5
5
  SHA512:
6
- data.tar.gz: 88c2e5e40a390a2aab63fd231b95007125a65756f3e00d6ad018f06a96875c300dffb3b725d8285140aca7d06025d41edf7fcadf36920befa8871aeff4111f41
7
- metadata.gz: a4887a0f928f25f4ca8e29024dd21f00007e4a10059332f621b17758d4c3a8cce3138dbfa4a34bc4a6ced7c48e4a85146e7004ee0f853dcd128701d7f7139e62
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[:server_data]
80
- @request = args[:request]
81
- @handler_class = args[:handler_class]
82
- @response = args[:response]
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
@@ -1,3 +1,3 @@
1
1
  module Sanford
2
- VERSION = "0.18.2"
2
+ VERSION = "0.19.0"
3
3
  end
@@ -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.18.2
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-06-29 00:00:00 Z
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.5.1
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