rack-app 7.5.0 → 7.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rack/app/test.rb +5 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40170467c938ef8789f4e59c42a605d37bcf2644
4
- data.tar.gz: 9a836d49866b3593780db3c9301e2fe7179746e3
3
+ metadata.gz: 0fa1cbbfa3a7debe947b55c0f876563c3d41bc29
4
+ data.tar.gz: 7275baae82226050a885bfa29dafb205e41cedab
5
5
  SHA512:
6
- metadata.gz: 04b40eedb586d5fb194e82ef51be394d833f74efd149260244c38c34e1291e1a4c6baee03a1561183f90f8ca39dc39c785e47ec3a374199370b37c2423201c57
7
- data.tar.gz: 34d29a887318350acdcb9879e8fcdddab24c3a1c5800095ea01baa69dc08465b7dee1a0b749d9e68eadf5f016561fb11554e5e414733a059b285a3e7397234ee
6
+ metadata.gz: 495a0e592d611f7ea125c85468efd76a5d254ff4d387e4115da8bf16a135e8779419d182b9eea9b92ab91bbeb7f89609edc2bcce4d9d8fe119e76b22c8e51da4
7
+ data.tar.gz: 043431aa915f8d5eaaabd78f2cb6f62cd95db9af21e5a14ad4356ad27ea293e86761e1b9d81e6951f46962f8fd97cc0103c87640feee8133470929e28f63bce8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.5.0
1
+ 7.5.1
@@ -60,8 +60,11 @@ module Rack::App::Test
60
60
  raise("Can't find any path that fullfill the requirement")
61
61
  end
62
62
 
63
- if matching_endpoints.length != app_class.router.endpoints.length
64
- raise("endpoint count not matching")
63
+ return unless app_class.is_a?(Class) && app_class <= Rack::App
64
+ app_owned_endpoints = app_class.router.endpoints.select(&selector)
65
+
66
+ if matching_endpoints.length != app_owned_endpoints.length
67
+ raise('endpoint count not matching')
65
68
  end
66
69
  end
67
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.5.0
4
+ version: 7.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi