wildcard_finders 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/wildcard_finders/finders.rb +4 -6
- 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: ed29d090ae1f3af132e01c6f25a40b0510365e42
|
4
|
+
data.tar.gz: ef106df94815078b473ba54162859594da248640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2bbd11eebc82111c4a97bb3f0ebbab5eb6822a22d364544e99bd626b3617e411da0f7211f258d0a790c8f02fafc2f3fb558715a172d0231afba94be6ba0e306
|
7
|
+
data.tar.gz: cb9d374607994c4b3a2d1d931b9fbe813c8e3d121b8891d745fe5bedca5d8aff739526d0f139d24b4af54c94955c7f04dcc3fb1022fe7e4777c8ef080c6df27e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -23,14 +23,12 @@ module WildcardFinders
|
|
23
23
|
WildcardMatchers.wildcard_match?(element, block || matcher)
|
24
24
|
end
|
25
25
|
end
|
26
|
-
end
|
27
26
|
|
28
|
-
|
29
|
-
raise Capybara::ElementNotFound, "no <#{tag}> to match #{matcher}"
|
30
|
-
else
|
31
|
-
# not compatible for capybara 2.0
|
32
|
-
results.first
|
27
|
+
raise Capybara::ElementNotFound, "no <#{tag}> to match #{matcher}" if results.empty?
|
33
28
|
end
|
29
|
+
|
30
|
+
# not compatible for capybara 2.0
|
31
|
+
results.first
|
34
32
|
end
|
35
33
|
end
|
36
34
|
|