reel 0.5.0.pre → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of reel might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -0
- data/lib/reel/connection.rb +1 -1
- data/lib/reel/version.rb +1 -1
- data/reel.gemspec +1 -1
- data/spec/reel/connection_spec.rb +12 -2
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51c0dc865d430ed8c784c17406b7f949d52425b1
|
4
|
+
data.tar.gz: f995592d1a542714360c99e20aadbc4281dee482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7d803b74e5e2b272fcb8affd947b1a0804e4b394945d680a38ebaf14ec95a7c994128e50ce95d38e656c68db1d655109c7179235fd3702d0c4eca3ced7cf9b8
|
7
|
+
data.tar.gz: 4501a6d27b87a472529d1cbc3708cb950e8299c1aabae7a7565775450ab362f0f25674a417449c771dfa5b2a4cb500435619bf5f53146e875c6d02cbf24027c4
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
0.5.0 (2014-04-15)
|
2
|
+
------------------
|
3
|
+
* Reel::Server(::SSL) renamed to Reel::Server::HTTP and Reel::Server::HTTPS
|
4
|
+
* New Reel::Spy API for observing requests and responses from the server
|
5
|
+
* Fixes to chunked encoding handling
|
6
|
+
* Update websocket_parser gem to 0.1.6
|
7
|
+
* Update to "The HTTP Gem" 0.6.0
|
8
|
+
* Ensure response bodies are always closed
|
9
|
+
* Support for passing a fixnum status to Connection#respond
|
10
|
+
|
1
11
|
0.4.0
|
2
12
|
-----
|
3
13
|
* Rack adapter moved to the reel-rack project
|
data/lib/reel/connection.rb
CHANGED
data/lib/reel/version.rb
CHANGED
data/reel.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
|
18
18
|
gem.add_runtime_dependency 'celluloid', '>= 0.15.1'
|
19
19
|
gem.add_runtime_dependency 'celluloid-io', '>= 0.15.0'
|
20
|
-
gem.add_runtime_dependency 'http', '>= 0.
|
20
|
+
gem.add_runtime_dependency 'http', '>= 0.6.0.pre'
|
21
21
|
gem.add_runtime_dependency 'http_parser.rb', '>= 0.6.0'
|
22
22
|
gem.add_runtime_dependency 'websocket_parser', '>= 0.1.6'
|
23
23
|
|
@@ -97,7 +97,7 @@ describe Reel::Connection do
|
|
97
97
|
fixture = "5#{crlf}Hello#{crlf}5#{crlf}World#{crlf}0#{crlf*2}"
|
98
98
|
response[(response.length - fixture.length)..-1].should eq fixture
|
99
99
|
end
|
100
|
-
|
100
|
+
|
101
101
|
it "with keep-alive" do
|
102
102
|
with_socket_pair do |client, peer|
|
103
103
|
connection = Reel::Connection.new(peer)
|
@@ -141,7 +141,7 @@ describe Reel::Connection do
|
|
141
141
|
end
|
142
142
|
end
|
143
143
|
end
|
144
|
-
|
144
|
+
|
145
145
|
it "reset the request after a response is sent" do
|
146
146
|
with_socket_pair do |client, peer|
|
147
147
|
connection = Reel::Connection.new(peer)
|
@@ -343,6 +343,16 @@ describe Reel::Connection do
|
|
343
343
|
end
|
344
344
|
end
|
345
345
|
|
346
|
+
context "#respond" do
|
347
|
+
it "accepts Fixnum as status" do
|
348
|
+
with_socket_pair do |client, peer|
|
349
|
+
connection = Reel::Connection.new(peer)
|
350
|
+
|
351
|
+
connection.respond 200, {}, []
|
352
|
+
end
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
346
356
|
context "#each" do
|
347
357
|
it "streams request bodies" do
|
348
358
|
with_socket_pair do |client, peer|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Arcieri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.6.0.pre
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.6.0.pre
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: http_parser.rb
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,9 +187,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
|
-
- - "
|
190
|
+
- - ">="
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version:
|
192
|
+
version: '0'
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
195
|
rubygems_version: 2.2.0
|
@@ -213,4 +213,3 @@ test_files:
|
|
213
213
|
- spec/reel/websocket_spec.rb
|
214
214
|
- spec/spec_helper.rb
|
215
215
|
- spec/support/example_request.rb
|
216
|
-
has_rdoc:
|