domr 0.3.0 → 0.3.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.
- 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
|