domr 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/domr +4 -2
- data/lib/domr.rb +2 -4
- metadata +1 -1
data/bin/domr
CHANGED
data/lib/domr.rb
CHANGED
@@ -30,9 +30,7 @@ class Domr
|
|
30
30
|
# Check for errors
|
31
31
|
if response.code != "200"
|
32
32
|
puts "HTTP error".color(:red).bright # Color is red
|
33
|
-
|
34
|
-
# Exit the program
|
35
|
-
exit
|
33
|
+
return false
|
36
34
|
end
|
37
35
|
|
38
36
|
# Output results
|
@@ -56,6 +54,6 @@ class Domr
|
|
56
54
|
puts string.color(color).bright
|
57
55
|
end
|
58
56
|
|
59
|
-
true
|
57
|
+
return true
|
60
58
|
end
|
61
59
|
end
|