botch 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/botch.rb +1 -1
- data/lib/botch/base.rb +4 -3
- data/lib/botch/clients/mechanize_client.rb +2 -0
- 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: 710ce37273136fc5bcf4a70c21c592d6784c472b
|
4
|
+
data.tar.gz: 1d789bc4642ab1b6f84c07c5b7fe9e2e1eeee0b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d784cdfb50915130712eb47b98621f7d980e29763c6b8e7e183690d408db1ce91deedbd723c4c9409dc554b6e35cb0c8779992a05ed8fbc6419cd2840867c80
|
7
|
+
data.tar.gz: ae68b1a304cb6a85287491b29aac14a087b8d9abd5f45130c861849fc786489bbd93241607439655246da53fb9fb7b560a400f7c1823e1551ba6ba6783688247
|
data/lib/botch.rb
CHANGED
data/lib/botch/base.rb
CHANGED
@@ -55,9 +55,10 @@ module Botch
|
|
55
55
|
|
56
56
|
def map_validation(url, map)
|
57
57
|
case map.class.to_s
|
58
|
-
when "Regexp"
|
59
|
-
when "String"
|
60
|
-
|
58
|
+
when "Regexp" then url =~ map
|
59
|
+
when "String" then url.include?(map)
|
60
|
+
when "NilClass" then true
|
61
|
+
else nil
|
61
62
|
end
|
62
63
|
end
|
63
64
|
end
|