mirage 4.0.0.alpha5 → 4.0.0.alpha6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/server/mock_response_set.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: d515c9196308c045d6d8bfbba86ef54214e4994d
|
4
|
+
data.tar.gz: 4c8795fbae565b9f3c51baa5fcef5d1d0bcb52bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97438ad78627aa8f1198fdf56b41dbaf705ae52e228a085c9564114d770714fecb078eb142d0ac1c0cd1e8d7171eefb3411c2e90b32eaad775f169a8072842c2
|
7
|
+
data.tar.gz: 2ee6762d6d516771a446b6528a77cd9cef6af742a2d7fb616e44b07d4c9325b6d7195b81fba0834e47a81855b6add3b6b318e9cb5ff91d7b738820b1b8eb252a
|
data/server/mock_response_set.rb
CHANGED
@@ -4,7 +4,7 @@ module Mirage
|
|
4
4
|
result = self[desired_key]
|
5
5
|
return result unless result.nil?
|
6
6
|
result = find_all do |key, value|
|
7
|
-
key.is_a?(Regexp) && desired_key.is_a?(String) && key.match(desired_key) && value[http_method]
|
7
|
+
key.is_a?(Regexp) && desired_key.is_a?(String) && key.match(desired_key) && value[http_method.upcase]
|
8
8
|
end.sort do |a,b|
|
9
9
|
b.first.source.size <=> a.first.source.size
|
10
10
|
end
|