domr 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/domr.rb +2 -2
  2. metadata +1 -1
@@ -40,12 +40,12 @@ def domr(query, flag = :none)
40
40
  end
41
41
 
42
42
  # Construct final output string
43
- string = ' ' << result['domain'] << ' ' << result['availability']
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.count { |result| result['availability'] == 'available' }
50
+ return results.select { |result| result['availability'] == 'available' }.collect { |result| result['domain'] }
51
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: