domr 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/domr +3 -1
- data/lib/domr.rb +5 -3
- metadata +18 -7
data/bin/domr
CHANGED
data/lib/domr.rb
CHANGED
@@ -39,7 +39,9 @@ class Domr
|
|
39
39
|
|
40
40
|
# Check for errors
|
41
41
|
if response.code != "200"
|
42
|
-
puts "HTTP error".color(:red)
|
42
|
+
puts "HTTP error".color(:red).bright # Color is red
|
43
|
+
|
44
|
+
# Exit the program
|
43
45
|
exit
|
44
46
|
end
|
45
47
|
|
@@ -54,14 +56,14 @@ class Domr
|
|
54
56
|
elsif result['availability'] == 'maybe'
|
55
57
|
color = :yellow
|
56
58
|
else
|
57
|
-
color = :
|
59
|
+
color = :default
|
58
60
|
end
|
59
61
|
|
60
62
|
# Construct final output string
|
61
63
|
string = " " << result['domain'] << " " << result['availability']
|
62
64
|
|
63
65
|
# Output colorized string
|
64
|
-
puts string.color(color)
|
66
|
+
puts string.color(color).bright
|
65
67
|
end
|
66
68
|
end
|
67
69
|
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.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-07-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
16
|
-
requirement: &
|
16
|
+
requirement: &16843056 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *16843056
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rainbow
|
27
|
-
requirement: &
|
27
|
+
requirement: &16841748 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *16841748
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: win32console
|
38
|
-
requirement: &
|
38
|
+
requirement: &16840212 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,18 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *16840212
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: windows-pr
|
49
|
+
requirement: &16837560 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *16837560
|
47
58
|
description: Quickly search for available domains
|
48
59
|
email: shveloo@gmail.com
|
49
60
|
executables:
|