api_sim 1.2.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f99417ce6d0d07679847a4fb57b773fc12bbd5fb
4
- data.tar.gz: f60a112212248f77d3f8008ae46ad729d50b7d67
3
+ metadata.gz: 0c2559ab9bfa83d9c947fcedf4cfe732f65b0b11
4
+ data.tar.gz: d47831b2b6b3ebe60f43d527a35f4612189f3192
5
5
  SHA512:
6
- metadata.gz: 6500c40ebe3656365a91d316f587331da42b33a1b9a76aae4aaf026e6279be56a762013a8d3919440c927a14f24b6713bf525cb6cd16261e693c1cd3c6d01f94
7
- data.tar.gz: f6654077caf4b6493722a355d5fb228ef012a03e03243bbcddf49c19f9acfd119be52a5ca11713d42db6f1ad1ce86f9f1eaa332a699d62a5db607f60d900752d
6
+ metadata.gz: c6bfcf5707bbd3fb63f7bffc8e1b71afa56303b769da443950906f457e61390d391b12cdcd98f2021c2fc800e732ce99193df7559146993ea0b312b39e952f88
7
+ data.tar.gz: d6e350459313d00ec8f1bfa61c104ba7048c4675debda1d1b518750bf650740762d81b9dca5ccc11caf74f91236176b59b349d9d8c8d78ac7abe1522e78da141
@@ -47,6 +47,7 @@ module ApiSim
47
47
  route_tokens = route.split('/')
48
48
  request_tokens = request.path.split('/')
49
49
 
50
+ return false unless route_tokens.count == request_tokens.count
50
51
  route_tokens.zip(request_tokens).all? do |matcher_part, request_part|
51
52
  matcher_part == request_part || matcher_part.start_with?(':')
52
53
  end
@@ -1,3 +1,3 @@
1
1
  module ApiSim
2
- VERSION = "1.2.1"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_sim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Taylor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra