b_named 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +8 -5
- data/VERSION +1 -1
- data/lib/b_named/availability.rb +1 -1
- data/lib/b_named/version.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -21,14 +21,17 @@ Currently it enables you to retrieve a list of domains and their status.
|
|
21
21
|
# view example (haml)
|
22
22
|
|
23
23
|
.domains
|
24
|
-
- @result.
|
25
|
-
.domain
|
26
|
-
.
|
27
|
-
|
24
|
+
- if @result.error_code == 0
|
25
|
+
- @result.domains.each do |domain|
|
26
|
+
.domain
|
27
|
+
.name= domain.sld + '.' + domain.tld
|
28
|
+
.text= domain.availability_text
|
29
|
+
- else
|
30
|
+
.error= @result.error_text
|
28
31
|
|
29
32
|
== REQUIREMENTS:
|
30
33
|
|
31
|
-
* httparty gem (>= 0.4.
|
34
|
+
* httparty gem (>= 0.4.3)
|
32
35
|
* mash gem (>= 0.0.3)
|
33
36
|
|
34
37
|
== INSTALL:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/b_named/availability.rb
CHANGED
@@ -29,7 +29,7 @@ module BNamed
|
|
29
29
|
result_hash[:domains] = raw_result.each{ |h| Mash.new(h.each_pair{ |k,v| h[underscore(k)] = h.delete(k) }) }
|
30
30
|
result_hash[:time] = response['Time'].tr(',','.').to_f
|
31
31
|
result_hash[:done] = response['Done'] == 'True'
|
32
|
-
result_hash[:error_code] = response['ErrorCode']
|
32
|
+
result_hash[:error_code] = response['ErrorCode'].to_i
|
33
33
|
result_hash[:error_text] = response['ErrorText']
|
34
34
|
|
35
35
|
Mash.new(result_hash)
|
data/lib/b_named/version.rb
CHANGED