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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94f77accd5bd6449f6f58a0cc0e2e3566555003d
4
- data.tar.gz: 570a30e2c58019f9ca18bed1c797f6d0d2260cce
3
+ metadata.gz: 61dca12e06b25bbadcff0e6c2a0213ded8fa889d
4
+ data.tar.gz: 76a64ce5a7672129a185314591a31d7a435196ec
5
5
  SHA512:
6
- metadata.gz: ffd38055c145a9a48b85c0c83de8b2e0a60636750f89978859e52aa1f908551d90d12b6f117c058fa02c9aa742fe660ba56e0d0fdee8e0166e4d8784bfce762b
7
- data.tar.gz: e937086398523d2030af950c07ded2b644d0a2d491eb7e5f4b23fa8f4f33a21e9af285f0bd561a392359ff5ff5085e084cecc45e7e4d9138e1940c5d1d9ae87e
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.0'
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"
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gman
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter