gman 4.7.0 → 4.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gman.gemspec +1 -1
- data/lib/gman/country_codes.rb +2 -0
- data/test/test_gman_country_codes.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 306dd45e78cb3e72bc3a68479eea6dbbadfee91c
|
4
|
+
data.tar.gz: dd3232370c8e0702b254b95a8989f3894ade8732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffea8362edfc9c8e7d0c955e205f3766065e02e82e82a332363f9c305ce2031085df67d2b82a77ec8863fb7570a74e459f2149ee4c62f1a0598d9d71b02195dd
|
7
|
+
data.tar.gz: ef38fcfb520b0268bb5c875627cac4913f33734b2fffaeb918bd374901d91651b9041bb1de0b5662bf860c0d02f58c7c5a9ad144c7b541e44e2b3cad4f7aeeec
|
data/gman.gemspec
CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = "gman"
|
3
3
|
s.summary = "Check if a given domain or email address belong to a governemnt entity"
|
4
4
|
s.description = "A ruby gem to check if the owner of a given email address is working for THE MAN."
|
5
|
-
s.version = '4.7.
|
5
|
+
s.version = '4.7.1'
|
6
6
|
s.authors = ["Ben Balter"]
|
7
7
|
s.email = "ben.balter@github.com"
|
8
8
|
s.homepage = "https://github.com/benbalter/gman"
|
data/lib/gman/country_codes.rb
CHANGED
@@ -7,4 +7,8 @@ class TestGmanCountryCodes < Minitest::Test
|
|
7
7
|
assert_equal "United Kingdom of Great Britain and Northern Ireland", Gman.new("foo.gov.uk").country.name
|
8
8
|
assert_equal "Canada", Gman.new("foo.gc.ca").country.name
|
9
9
|
end
|
10
|
+
|
11
|
+
should "not err out on an unknown country code" do
|
12
|
+
assert_equal nil, Gman.new("foo.eu").country
|
13
|
+
end
|
10
14
|
end
|
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.7.
|
4
|
+
version: 4.7.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: 2015-06-
|
11
|
+
date: 2015-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: swot
|