http-double 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http_double/request_logger.rb +7 -3
- data/lib/http_double/version.rb +1 -1
- 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: b13c60b6bb291cff68bbc82a3b5732ef01c4d5eb
|
4
|
+
data.tar.gz: e7f26befca1a1a3495d3007415d225482c840df9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 394c095214155d902d9efa4f20e74022285e1573c5e4337b35934c28da2c52ae5f9543eea0b30684cb4dcbbb5d6f5102a005cbb707cdcd68799f5a93b39b4de8
|
7
|
+
data.tar.gz: b7e400222be3412194d82ac62f515323473019002d5c585bf1d16b4bf5feaf03b66c1d7b67bd8e8be231de20331854ff4deeb83567fb69a21ac90f556b3642f2
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'rack/utils'
|
2
2
|
require 'ostruct'
|
3
3
|
require 'active_support/hash_with_indifferent_access'
|
4
|
-
require 'forwardable'
|
5
4
|
|
6
5
|
class HttpDouble::RequestLogger
|
7
6
|
|
@@ -25,7 +24,6 @@ class HttpDouble::RequestLogger
|
|
25
24
|
end
|
26
25
|
|
27
26
|
class Request
|
28
|
-
extend Forwardable
|
29
27
|
|
30
28
|
attr_reader :env
|
31
29
|
|
@@ -51,7 +49,13 @@ class HttpDouble::RequestLogger
|
|
51
49
|
result
|
52
50
|
end
|
53
51
|
|
54
|
-
|
52
|
+
def method_missing(sym, *args, &block)
|
53
|
+
parsed_input.__send__ sym, *args, &block
|
54
|
+
end
|
55
|
+
|
56
|
+
def respond_to_missing?(sym)
|
57
|
+
parsed_input.respond_to? sym
|
58
|
+
end
|
55
59
|
|
56
60
|
private
|
57
61
|
|
data/lib/http_double/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http-double
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil E. Pearson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|