gman 4.4.2 → 4.4.3

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
  SHA1:
3
- metadata.gz: 7e1ea536c2011579faf44f7dd44b0b09c2fe75f9
4
- data.tar.gz: 88522904a237f14096f5778d2f5bfec53bb006fc
3
+ metadata.gz: 99d4f1edc2e2e2e463e445d24620e9fe2be2ba73
4
+ data.tar.gz: 1d72f716a432b6351dc635e171c0526c29f7b6eb
5
5
  SHA512:
6
- metadata.gz: 02c49adb7b5539aaae47dbaab7ccdb91da1a3a64722ef9f2f659c3670bdc066337721ce95449598984a261701ede25182eb35ebfcba66677584c6314d825eaf3
7
- data.tar.gz: 15c417cb45774a8fcee4f497bca4b21326cd116ef25262ac5eb0003a2d199fd60c3477618e5be473b3c185aaf940c0ba367d46089f117105dd5f9769b27d4b75
6
+ metadata.gz: 649a0450105a4de7d913684677bf20211169cc68989fb35951fd6945508d8d243b1cccebb035802af66cdde4f25e39307d5006f32c3f01cd7b2f9323d6deba17
7
+ data.tar.gz: fb87052259126e43790f40e235cc5ff4cdc63f16c2ae3166fd8c2036d553fb3fee27a9bf1d8a269664e9434533e2986c7d9b034b156e3c7b0be1bb7c5a8c285b
data/bin/gman CHANGED
@@ -16,7 +16,7 @@ end
16
16
  domain = ARGV[0]
17
17
  String.disable_colorization = true if ARGV.last == "--no-color"
18
18
 
19
- if domain.nil?
19
+ if domain.to_s.empty? || domain == "--no-color"
20
20
  puts "USAGE: gman <domain or email address> [--no-color]".red
21
21
  exit 1
22
22
  end
@@ -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.2'
5
+ s.version = '4.4.3'
6
6
  s.authors = ["Ben Balter"]
7
7
  s.email = "ben.balter@github.com"
8
8
  s.homepage = "https://github.com/benbalter/gman"
@@ -62,4 +62,15 @@ class TestGmanBin < Minitest::Test
62
62
  should "color by default" do
63
63
  assert_match /\[0;32;49m/, @output
64
64
  end
65
+
66
+ should "show help text" do
67
+ output, status = test_bin
68
+ assert_match /Usage/i, output
69
+
70
+ output, status = test_bin("")
71
+ assert_match /Usage/i, output
72
+
73
+ output, status = test_bin("--no-color")
74
+ assert_match /Usage/i, output
75
+ end
65
76
  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.2
4
+ version: 4.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter