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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0607caf61a586fda5284bb88ef4500301099c6f4
4
- data.tar.gz: aa588e07e5bb953d824d9c204047598176e8cb4a
3
+ metadata.gz: 710ce37273136fc5bcf4a70c21c592d6784c472b
4
+ data.tar.gz: 1d789bc4642ab1b6f84c07c5b7fe9e2e1eeee0b9
5
5
  SHA512:
6
- metadata.gz: fcb46fa77f9aa1d5d2f42826461824d66339e93c728609192253eb874c9e44552a57b85a146134ac635ff67dc43db638587a881b8505cc6edaaf9835aa5189b3
7
- data.tar.gz: 316efe1f6faeccf5852aed2e9314e70df28b51a1d0f84597cbd45e3d7b05e4fcdf9b9da9cc9df23ac355b881cd695fc64626a88a735fb9cbf50575e03250c593
6
+ metadata.gz: 2d784cdfb50915130712eb47b98621f7d980e29763c6b8e7e183690d408db1ce91deedbd723c4c9409dc554b6e35cb0c8779992a05ed8fbc6419cd2840867c80
7
+ data.tar.gz: ae68b1a304cb6a85287491b29aac14a087b8d9abd5f45130c861849fc786489bbd93241607439655246da53fb9fb7b560a400f7c1823e1551ba6ba6783688247
@@ -1,5 +1,5 @@
1
1
  require File.expand_path('../botch/base', __FILE__)
2
2
 
3
3
  module Botch
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -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" then url =~ map
59
- when "String" then url.include?(map)
60
- else true
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
@@ -1,3 +1,5 @@
1
+ require 'uri'
2
+
1
3
  module Botch
2
4
  module Client
3
5
  class MechanizeResponseError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - namusyaka