validators 3.0.1 → 3.0.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
  SHA256:
3
- metadata.gz: 414477d8902b0d37dc91199fe230b37e37131a33bcfec8e61ea8b187f6d30532
4
- data.tar.gz: '084b6d7df7b47f7753790955ab5d403d6c7d1584f808ce65e29c8a9da976d875'
3
+ metadata.gz: 9d5c727e9a21b2596930b6b24926f6bfc170d6699967bbfeb4524da9cb7368e4
4
+ data.tar.gz: 5966aab9385578ef07128226926e2963521ba7fdd414852035223c422ff29f09
5
5
  SHA512:
6
- metadata.gz: 3f6dedd7eb97652ea82ebb4ba3cab3ea089b8219c3e158dd93e3ff57316fb7e42053a5db72cfdbce3d0d5bd897b431b7348ba4438240d636c3b013bfb00a4ddc
7
- data.tar.gz: aea4115b4b68b0d2870f194eba56a8b92b17aaa62a35e86ea2e9e9d1748850d90dc6064b461dad7f2f3be2e5786baff6a54bed6385de8d6cb1a2f0b682977afa
6
+ metadata.gz: 6bda3f7557010898f2891974a9c78f076be86371a22b9054e422ef7fe12f203883cac9340cb56f814ebf58ec1cae7cec143e3b7b3476937826cff571e7dca524
7
+ data.tar.gz: 9bcf1de06d029d21f15aa31f9dead13e5a442ca5f5e340795f074ff3d06ab00d28f189d3551c90b7241fc56e4767d2e385a0ae1751cb585937964ed582b71ee9
@@ -9,7 +9,9 @@ module Validators
9
9
  end
10
10
 
11
11
  def self.host_with_valid_tld?(host)
12
- return false if host.to_s.split(".").size == 1
12
+ host = host.to_s
13
+
14
+ return false if host.split(".").size == 1
13
15
 
14
16
  valid?(host[/\.([^.]+)$/, 1].to_s.downcase)
15
17
  end
@@ -4,7 +4,7 @@ module Validators
4
4
  module Version
5
5
  MAJOR = 3
6
6
  MINOR = 0
7
- PATCH = 1
7
+ PATCH = 2
8
8
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira