domr 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/domr.rb +2 -2
- metadata +1 -1
data/lib/domr.rb
CHANGED
@@ -40,12 +40,12 @@ def domr(query, flag = :none)
|
|
40
40
|
end
|
41
41
|
|
42
42
|
# Construct final output string
|
43
|
-
string =
|
43
|
+
string = "#{result['domain']} #{result['availability']}"
|
44
44
|
|
45
45
|
# Output colorized string
|
46
46
|
puts string.color(color).bright if !silent
|
47
47
|
end
|
48
48
|
|
49
49
|
# Return number of available domain names
|
50
|
-
return results.
|
50
|
+
return results.select { |result| result['availability'] == 'available' }.collect { |result| result['domain'] }
|
51
51
|
end
|