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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/server/mock_response_set.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 224a5f945b7e5a6141efdf2d0e69cfebbb55546f
4
- data.tar.gz: d15b39a80c0d32ccf2eaeda7fa5b48435da57d2d
3
+ metadata.gz: d515c9196308c045d6d8bfbba86ef54214e4994d
4
+ data.tar.gz: 4c8795fbae565b9f3c51baa5fcef5d1d0bcb52bf
5
5
  SHA512:
6
- metadata.gz: 81e98272e32815fc4d3ec0d3b6b129f40a7a6f2a60993ae8f6050199adea19b92454a39d01178140ce5602e9b34791e24664940f6691ecb727fb1fe65ae5b80d
7
- data.tar.gz: 1aa92fbfb9dd42cddb20a57e8b8ad677aab17729913526a452ca4334003d9c0f205ceca045bf06322e051c3099d5339898f590085995844c01ba22f49f62a73d
6
+ metadata.gz: 97438ad78627aa8f1198fdf56b41dbaf705ae52e228a085c9564114d770714fecb078eb142d0ac1c0cd1e8d7171eefb3411c2e90b32eaad775f169a8072842c2
7
+ data.tar.gz: 2ee6762d6d516771a446b6528a77cd9cef6af742a2d7fb616e44b07d4c9325b6d7195b81fba0834e47a81855b6add3b6b318e9cb5ff91d7b738820b1b8eb252a
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirage
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha5
4
+ version: 4.0.0.alpha6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Davis