http_stub 0.15.2 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http_stub/server/stub_response/file.rb +3 -3
- data/lib/http_stub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ce903432525a6be7ca09e19d0ab38d4e9a4fdd8
|
4
|
+
data.tar.gz: 5851fd5ffc47448f50e02491b3bb9e32d1097b21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 267d2f39bd292b6d6e34147bfcef6568adfe6878f27314c2ada04932a26bbd36bbbbd2ab13ed962fb6ef56516f6787b41ac4089f44008b2e9dd03474abbd45ba
|
7
|
+
data.tar.gz: f624649d74f4498a143f03c3475b3b3efea428c4ab0b9bf5f0d6d130e539a4e6880a45228b60f42a9d346881efa303b8f7023611caa2e366248c12ced600415d
|
@@ -7,12 +7,12 @@ module HttpStub
|
|
7
7
|
add_default_headers "content-type" => "application/octet-stream"
|
8
8
|
|
9
9
|
def initialize(args)
|
10
|
-
@
|
11
|
-
super(args.merge("body" => @
|
10
|
+
@file = args["body"][:tempfile]
|
11
|
+
super(args.merge("body" => @file.path))
|
12
12
|
end
|
13
13
|
|
14
14
|
def serve_on(server)
|
15
|
-
server.send_file(@
|
15
|
+
server.send_file(@file.path, send_options)
|
16
16
|
end
|
17
17
|
|
18
18
|
private
|
data/lib/http_stub/version.rb
CHANGED