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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 473cfd88f509d2e18bbf47ffbcd7d013d5bae137
4
- data.tar.gz: 3c2afdb69d93618e52df58e22a7e1fd9de623756
3
+ metadata.gz: 1ce903432525a6be7ca09e19d0ab38d4e9a4fdd8
4
+ data.tar.gz: 5851fd5ffc47448f50e02491b3bb9e32d1097b21
5
5
  SHA512:
6
- metadata.gz: e024dcbeb70730ee13353fde8845fff7f6b2bedb3a668d3f33428f5069c40b3f0ed3a7104ef6c6f803644fe8f5bf42a74b6511524e07ff33cec4c00744f40f97
7
- data.tar.gz: d191926b0caf32e8553cc7c109912f23ada60a360f211c682214476bfca9ea41f269bce5ebce0fae1d615c1b6da4b9660d1fe7f07e46108c49428f28ca4b61fa
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
- @file_path = args["body"][:tempfile].path
11
- super(args.merge("body" => @file_path))
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(@file_path, send_options)
15
+ server.send_file(@file.path, send_options)
16
16
  end
17
17
 
18
18
  private
@@ -1,3 +1,3 @@
1
1
  module HttpStub
2
- VERSION = "0.15.2".freeze
2
+ VERSION = "0.15.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_stub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ueckerman