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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22e786bdd973c7d46928dbd9f74d7d0ee644581a
4
- data.tar.gz: d8777411e380d9665ef1a8fed1018ffd68ef82ec
3
+ metadata.gz: 4fae342980c68080e5bb173384b10dfc4f751a9c
4
+ data.tar.gz: ed60d41fc6f0f525a6ba3a0c174f8fa5f911ed07
5
5
  SHA512:
6
- metadata.gz: 2c808ff3526e4409d61887dfc8416f0de2ace31565e96491cc33b11b830fa7ff6b8129e344ac1521456f30ce9de080c6e62728ecd87870f4d22790f51f26791e
7
- data.tar.gz: e7da5601a4587470a508a5177ce3c82e6313a737390b8666bceb6a5294334be779b01ed697e1c701c2b240005dc5fcdf0d7d295194efce24a4dd69e37e9e6ff7
6
+ metadata.gz: addf90a65199857930fd93c198098ea8dd416e8ca3df9d5067399d1aea2be9f66ce89bc6bee4b7fd592cb64e9a4a338075f310ee1dbf69d9709c6e5521aef16d
7
+ data.tar.gz: fd434315dcc26fb9925a12bf21924ba0dc1817cf9fb892c52aaac83c111c94a4a8bce0f261a9261afc74183b5356d715054ca37ff4cf1630e61331cb16c43b67
@@ -58,7 +58,7 @@ module Tilia
58
58
  elsif body.nil?
59
59
  ''
60
60
  else
61
- body.readlines.join("\n")
61
+ body.read
62
62
  end
63
63
  end
64
64
 
@@ -3,7 +3,7 @@ module Tilia
3
3
  # This class contains the version number for the HTTP package
4
4
  class Version
5
5
  # Full version number
6
- VERSION = '4.1.0.7'
6
+ VERSION = '4.1.0.8'
7
7
  end
8
8
  end
9
9
  end
@@ -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.readlines.join(''))
14
- assert_equal('foo', @outer.body_as_stream.readlines.join(''))
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)
@@ -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.readlines.join(''))
23
+ assert_equal(body, message.body_as_stream.read)
24
24
  h.rewind
25
- assert_equal(body, message.body.readlines.join(''))
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.readlines.join(''))
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.readlines.join(''))
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.readlines.join(''))
129
+ assert_equal('bar', body.read)
130
130
  end
131
131
 
132
132
  def test_multiple_headers
@@ -101,7 +101,7 @@ module Tilia
101
101
  headers
102
102
  )
103
103
 
104
- assert_equal('foo', body.readlines.join(''))
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.readlines.join(''))
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.readlines.join(''))
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.7
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-02 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport