evt-event_source-event_store-http 0.1.0.2 → 0.1.1.0
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64b31dd13ca19696703c311b5d8ea529b84e3a83
|
4
|
+
data.tar.gz: 4fc28c6addd420dd2396eb61203c7d8256347f8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8c0b1adf4c141191168395507e2ca23009758182b620d818a8ecd211fe379aa2fcd4d153a6484be3c179217e48d621bfa3fcb63535d643b814cc9564e435ba1
|
7
|
+
data.tar.gz: 15ffe472c1372f7e3ca591c4e3d4e3641752a41bc38fdfde247205442962673118b33ae26e82551e3bb85f4eda40184e60b78f91e4dc4fd03c91a278bd39d540
|
@@ -23,6 +23,7 @@ module EventSource
|
|
23
23
|
|
24
24
|
class Substitute
|
25
25
|
attr_accessor :address
|
26
|
+
attr_accessor :reason_phrase
|
26
27
|
attr_writer :response_body
|
27
28
|
attr_accessor :port
|
28
29
|
attr_accessor :status_code
|
@@ -37,7 +38,8 @@ module EventSource
|
|
37
38
|
|
38
39
|
OpenStruct.new(
|
39
40
|
:code => status_code,
|
40
|
-
:body => response_body
|
41
|
+
:body => response_body,
|
42
|
+
:message => reason_phrase
|
41
43
|
)
|
42
44
|
end
|
43
45
|
|
@@ -46,7 +48,8 @@ module EventSource
|
|
46
48
|
|
47
49
|
OpenStruct.new(
|
48
50
|
:code => status_code,
|
49
|
-
:body => response_body
|
51
|
+
:body => response_body,
|
52
|
+
:message => reason_phrase
|
50
53
|
)
|
51
54
|
end
|
52
55
|
|
@@ -70,9 +73,10 @@ module EventSource
|
|
70
73
|
status_code || Defaults.post_request_status_code
|
71
74
|
end
|
72
75
|
|
73
|
-
def set_response(status_code, response_body=nil)
|
76
|
+
def set_response(status_code, response_body=nil, reason_phrase: nil)
|
74
77
|
self.status_code = status_code
|
75
78
|
self.response_body = response_body if response_body
|
79
|
+
self.reason_phrase = reason_phrase if reason_phrase
|
76
80
|
end
|
77
81
|
|
78
82
|
module Defaults
|
@@ -20,8 +20,12 @@ module EventSource
|
|
20
20
|
instance
|
21
21
|
end
|
22
22
|
|
23
|
-
def set_response(status_code, response_body=nil)
|
24
|
-
net_http.set_response
|
23
|
+
def set_response(status_code, response_body=nil, reason_phrase: nil)
|
24
|
+
net_http.set_response(
|
25
|
+
status_code,
|
26
|
+
response_body,
|
27
|
+
reason_phrase: reason_phrase
|
28
|
+
)
|
25
29
|
end
|
26
30
|
|
27
31
|
module Assertions
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-event_source-event_store-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-configure
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.6.8
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Event source client for EventStore's HTTP interface
|