service_contract_webmock 0.1.6 → 0.1.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fed06c2c20333401760de510fb029b9ed1bfca8
|
4
|
+
data.tar.gz: a8d18f0c51eb9596271df668c7026b6c34afb859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d75f564d1f84c55fcd571d048e9497a8a95d907992c29bccb36dd8d3a3ffc9617c663f61a5372608e029b52dd5f25488a09905b27dbf15742cb402744548b0d7
|
7
|
+
data.tar.gz: c332e54d5c9d1a8a33498e4ddda1a7725a6e0f0670fef73bd9d6aff12835146055caecf68ca4dd51be904ed99d1e8105eae104f87503883072a043b3b0a251ec
|
@@ -46,7 +46,7 @@ module ServiceContractWebmock
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def extract_request(query)
|
49
|
-
params = CGI.parse(query)
|
49
|
+
params = CGI.parse(query).except("includes", "page", "per_page")
|
50
50
|
fields.select {|field| field.name.in?(params.keys)}.each_with_object({}) do |field, acc|
|
51
51
|
data = params[field.name][0].split(',').flat_map {|value| field.convert(value)}
|
52
52
|
acc[field.name] = data
|