tilia-http 4.1.0.7 → 4.1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tilia/http/message.rb +1 -1
- data/lib/tilia/http/version.rb +1 -1
- data/test/http/message_decorator_test.rb +2 -2
- data/test/http/message_test.rb +5 -5
- data/test/http/sapi_test.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fae342980c68080e5bb173384b10dfc4f751a9c
|
4
|
+
data.tar.gz: ed60d41fc6f0f525a6ba3a0c174f8fa5f911ed07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: addf90a65199857930fd93c198098ea8dd416e8ca3df9d5067399d1aea2be9f66ce89bc6bee4b7fd592cb64e9a4a338075f310ee1dbf69d9709c6e5521aef16d
|
7
|
+
data.tar.gz: fd434315dcc26fb9925a12bf21924ba0dc1817cf9fb892c52aaac83c111c94a4a8bce0f261a9261afc74183b5356d715054ca37ff4cf1630e61331cb16c43b67
|
data/lib/tilia/http/message.rb
CHANGED
data/lib/tilia/http/version.rb
CHANGED
@@ -10,8 +10,8 @@ module Tilia
|
|
10
10
|
|
11
11
|
def test_body
|
12
12
|
@outer.body = 'foo'
|
13
|
-
assert_equal('foo', @inner.body_as_stream.
|
14
|
-
assert_equal('foo', @outer.body_as_stream.
|
13
|
+
assert_equal('foo', @inner.body_as_stream.read)
|
14
|
+
assert_equal('foo', @outer.body_as_stream.read)
|
15
15
|
assert_equal('foo', @inner.body_as_string)
|
16
16
|
assert_equal('foo', @outer.body_as_string)
|
17
17
|
assert_equal('foo', @inner.body)
|
data/test/http/message_test.rb
CHANGED
@@ -20,9 +20,9 @@ module Tilia
|
|
20
20
|
|
21
21
|
assert_equal(body, message.body_as_string)
|
22
22
|
h.rewind
|
23
|
-
assert_equal(body, message.body_as_stream.
|
23
|
+
assert_equal(body, message.body_as_stream.read)
|
24
24
|
h.rewind
|
25
|
-
assert_equal(body, message.body.
|
25
|
+
assert_equal(body, message.body.read)
|
26
26
|
end
|
27
27
|
|
28
28
|
def test_string_body
|
@@ -32,7 +32,7 @@ module Tilia
|
|
32
32
|
message.body = body
|
33
33
|
|
34
34
|
assert_equal(body, message.body_as_string)
|
35
|
-
assert_equal(body, message.body_as_stream.
|
35
|
+
assert_equal(body, message.body_as_stream.read)
|
36
36
|
assert_equal(body, message.body)
|
37
37
|
end
|
38
38
|
|
@@ -40,7 +40,7 @@ module Tilia
|
|
40
40
|
message = MessageMock.new
|
41
41
|
body = message.body_as_stream
|
42
42
|
|
43
|
-
assert_equal('', body.
|
43
|
+
assert_equal('', body.read)
|
44
44
|
end
|
45
45
|
|
46
46
|
def test_get_empty_body_string
|
@@ -126,7 +126,7 @@ module Tilia
|
|
126
126
|
body = message.body
|
127
127
|
body.rewind
|
128
128
|
|
129
|
-
assert_equal('bar', body.
|
129
|
+
assert_equal('bar', body.read)
|
130
130
|
end
|
131
131
|
|
132
132
|
def test_multiple_headers
|
data/test/http/sapi_test.rb
CHANGED
@@ -101,7 +101,7 @@ module Tilia
|
|
101
101
|
headers
|
102
102
|
)
|
103
103
|
|
104
|
-
assert_equal('foo', body.
|
104
|
+
assert_equal('foo', body.read)
|
105
105
|
end
|
106
106
|
|
107
107
|
def test_send_limited_by_content_length_string
|
@@ -112,7 +112,7 @@ module Tilia
|
|
112
112
|
|
113
113
|
(_status, _headers, body) = Sapi.send_response(response)
|
114
114
|
|
115
|
-
assert_equal('Send this sentence.', body.
|
115
|
+
assert_equal('Send this sentence.', body.read)
|
116
116
|
end
|
117
117
|
|
118
118
|
def test_send_limited_by_content_length_stream
|
@@ -126,7 +126,7 @@ module Tilia
|
|
126
126
|
|
127
127
|
(_status, _headers, body) = Sapi.send_response(response)
|
128
128
|
|
129
|
-
assert_equal('Send this sentence.', body.
|
129
|
+
assert_equal('Send this sentence.', body.read)
|
130
130
|
end
|
131
131
|
end
|
132
132
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tilia-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.0.
|
4
|
+
version: 4.1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Sack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|