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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81b92890f6ab3d244353c676d76e4121fa31fed4
4
- data.tar.gz: 82d3959338d38342f31a3dfc979679b02e24848d
3
+ metadata.gz: b13c60b6bb291cff68bbc82a3b5732ef01c4d5eb
4
+ data.tar.gz: e7f26befca1a1a3495d3007415d225482c840df9
5
5
  SHA512:
6
- metadata.gz: 753daa964b3d97941360d8ade0c00895412a9eeec9470a064168031700b22b3b6b69dd4a9b195fb01af5d6e71fb6a2eb7530b9eb040edd34fb3a50c264bb29cc
7
- data.tar.gz: 7af479a962599e6cae377ddb61419cf8fe88cc212f72592f99c2d98fafc5f420408b462e3e0c0e37bb0495bb175082e1a6c28ccee132a88a9ecabc741895ed66
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
- delegate %i[first last map each size count length] => :parsed_input
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
 
@@ -1,3 +1,3 @@
1
1
  module HttpDouble
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
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.5
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-07-24 00:00:00.000000000 Z
11
+ date: 2014-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra