gman 4.2.0 → 4.2.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/config/domains.txt +1 -0
  3. data/lib/gman.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 104d96c5d8cfb2d0534ded82a952868fd7b34032
4
- data.tar.gz: cf87df897b4b6723bcf140b3082b149b2b16844a
3
+ metadata.gz: 47045b40573328c474ade0acf9482ecc5e45f133
4
+ data.tar.gz: 2e06e6464f1ee65a110d5bd2742cbe3e8faf62e1
5
5
  SHA512:
6
- metadata.gz: d89dab2d210dd835393554fe92cc7326b8a36cff2fa9a549e2c2fe4f3431862b72fa1f77f6c1585261281c531e88447b162fac5554b1fcbce475c55e261bcf14
7
- data.tar.gz: ea80bfbebfaefdbc8083979837783d4762207a19e79d741e0e16e45fea29b81f17e6d8ef1da5b0c18c22164d04ceb727d5f000e2269bc7d600aaec9acbdc5f0d
6
+ metadata.gz: 8b1cc42cbf64c3d5a7cd1ff28f1d1d698fd3c93d1aaed925166017283c6fe520dfe6b74741bded475e65f8dde2d236cab486741a93096add87f66b24088249b0
7
+ data.tar.gz: 19c3447a32921e4803da07307678a07a76217ce317b1610faead42939150e47ac97fea2572e0c842fe79260f451682159a4ea37932c6f7a33f2f97ed92587597
data/config/domains.txt CHANGED
@@ -1518,6 +1518,7 @@ gov.hk
1518
1518
  gov.ie
1519
1519
  gov.im
1520
1520
  gov.in
1521
+ nic.in
1521
1522
  gov.iq
1522
1523
  gov.ir
1523
1524
  gov.is
data/lib/gman.rb CHANGED
@@ -34,7 +34,7 @@ class Gman < NaughtyOrNice
34
34
  # Returns boolean true if a government domain
35
35
  def valid?
36
36
  # Ensure it's a valid domain
37
- return false unless PublicSuffix.valid?(domain)
37
+ return false unless PublicSuffix.valid?(".#{domain}")
38
38
 
39
39
  # Ensure non-edu
40
40
  return false if Swot::is_academic?(domain)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gman
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-26 00:00:00.000000000 Z
11
+ date: 2014-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: swot