nic_ar 0.2.2 → 0.2.3

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/nic_ar/client.rb CHANGED
@@ -52,13 +52,15 @@ module NicAr
52
52
  #412: Precondition Failed
53
53
  when 412
54
54
  raise PreconditionError, message
55
- #408: Request Timeout
56
- #503: Service Unavailable
57
- when 408, 503
58
- raise TimeoutError, message
59
55
  #500: System Error
60
56
  when 500
61
57
  raise ServiceError, message
58
+ #408: Request Timeout
59
+ when 408
60
+ raise TimeoutError, message
61
+ #503: Service Unavailable
62
+ when 503
63
+ raise UnavailableError, message
62
64
  else
63
65
  raise e
64
66
  end
@@ -1,4 +1,4 @@
1
1
  module NicAr
2
2
  # This Gem version does not map the API version in any way.
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
data/lib/nic_ar.rb CHANGED
@@ -34,7 +34,10 @@ module NicAr
34
34
  # Exception for status HTTP 500: System Error
35
35
  class ServiceError < StandardError; end
36
36
 
37
- # Exception for status HTTP 408: Request Timeout
37
+ # Exception for status HTTP 503: Service Unavailable
38
+ class UnavailableError < StandardError; end
39
+
40
+ # Exception for status HTTP 408: Request Timeout, 503: Service Unavailable
38
41
  class TimeoutError < StandardError; end
39
42
  end
40
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nic_ar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-07 00:00:00.000000000 Z
12
+ date: 2013-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: 2623551645560029224
120
+ hash: -1904681061129915795
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  none: false
123
123
  requirements:
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  segments:
128
128
  - 0
129
- hash: 2623551645560029224
129
+ hash: -1904681061129915795
130
130
  requirements: []
131
131
  rubyforge_project:
132
132
  rubygems_version: 1.8.24