gman 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/gman +2 -1
- data/gman.gemspec +1 -1
- data/test/test_gman_bin.rb +9 -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: 61dca12e06b25bbadcff0e6c2a0213ded8fa889d
|
4
|
+
data.tar.gz: 76a64ce5a7672129a185314591a31d7a435196ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e7d45e6b2c27b94c305a1e74185ef012b0aa43b4afe48b6c02eb327c66a0bf55e2f01ff5bc6928e6ce45c836742e779cc59f590952b5c4cf6cff92d8208cb3e
|
7
|
+
data.tar.gz: a3f906e7730a13c43af5a2d74db551de52498664502033f34be6f9729d529fb8654b8cc8dcc4e88113039d434d71ef1fa07ce06b2635484dc26be1a7276a722a
|
data/bin/gman
CHANGED
@@ -14,9 +14,10 @@ class IsoCountryCodes
|
|
14
14
|
end
|
15
15
|
|
16
16
|
domain = ARGV[0]
|
17
|
+
String.disable_colorization = true if ARGV[1] == "--no-color"
|
17
18
|
|
18
19
|
if domain.nil?
|
19
|
-
puts "USAGE: gman <domain or email address>".red
|
20
|
+
puts "USAGE: gman <domain or email address> [--no-color]".red
|
20
21
|
exit 1
|
21
22
|
end
|
22
23
|
|
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.4.
|
5
|
+
s.version = '4.4.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/test/test_gman_bin.rb
CHANGED
@@ -53,4 +53,13 @@ class TestGmanBin < Minitest::Test
|
|
53
53
|
assert_match /DC/, @output
|
54
54
|
assert_equal 0, @status.exitstatus
|
55
55
|
end
|
56
|
+
|
57
|
+
should "allow you to disable colorization" do
|
58
|
+
output, status = test_bin("whitehouse.gov", "--no-color")
|
59
|
+
refute_match /\[0;32;49m/, output
|
60
|
+
end
|
61
|
+
|
62
|
+
should "color by default" do
|
63
|
+
assert_match /\[0;32;49m/, @output
|
64
|
+
end
|
56
65
|
end
|