b_named 0.0.1 → 0.0.2

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.
@@ -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.domains.each do |domain|
25
- .domain
26
- .name= domain.sld + '.' + domain.tld
27
- .text= domain.availability_text
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.0)
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
1
+ 0.0.2
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module BNamed
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: b_named
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - wout