skles 1.0.1 → 1.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.
Files changed (5) hide show
  1. data/Gemfile.lock +8 -11
  2. data/VERSION +1 -1
  3. data/lib/skles.rb +11 -1
  4. data/skles.gemspec +2 -2
  5. metadata +3 -3
@@ -11,18 +11,18 @@ GEM
11
11
  git (>= 1.2.5)
12
12
  rake
13
13
  rake (0.8.7)
14
- rspec (2.1.0)
15
- rspec-core (~> 2.1.0)
16
- rspec-expectations (~> 2.1.0)
17
- rspec-mocks (~> 2.1.0)
18
- rspec-core (2.1.0)
19
- rspec-expectations (2.1.0)
14
+ rspec (2.3.0)
15
+ rspec-core (~> 2.3.0)
16
+ rspec-expectations (~> 2.3.0)
17
+ rspec-mocks (~> 2.3.0)
18
+ rspec-core (2.3.0)
19
+ rspec-expectations (2.3.0)
20
20
  diff-lcs (~> 1.1.2)
21
- rspec-mocks (2.1.0)
21
+ rspec-mocks (2.3.0)
22
22
  savon (0.7.9)
23
23
  builder (>= 2.1.2)
24
24
  crack (>= 0.1.4)
25
- yard (0.6.2)
25
+ yard (0.6.3)
26
26
 
27
27
  PLATFORMS
28
28
  ruby
@@ -33,6 +33,3 @@ DEPENDENCIES
33
33
  rspec
34
34
  savon
35
35
  yard
36
-
37
- METADATA
38
- version: 1.0.6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -146,7 +146,17 @@ class StrongKeyLite
146
146
 
147
147
  # Raised when SOAP responses indicate errors.
148
148
 
149
- class SOAPError < ResponseError; end
149
+ class SOAPError < ResponseError
150
+ attr_reader :code
151
+
152
+ # @private
153
+ def initialize(msg, response)
154
+ super
155
+ if code_match = msg.match(/SKL-ERR-(\d+)/) then
156
+ @code = code_match[1].try(:to_i)
157
+ end
158
+ end
159
+ end
150
160
 
151
161
  # Raised when @Net::HTTP@ returns a response other than 200 OK, or there is a
152
162
  # socket error.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{skles}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Morgan"]
12
- s.date = %q{2010-11-22}
12
+ s.date = %q{2010-12-14}
13
13
  s.description = %q{A Ruby wrapper around the StrongKey Lite SOAP client API.}
14
14
  s.email = %q{git@timothymorgan.info}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tim Morgan
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-22 00:00:00 -08:00
17
+ date: 2010-12-14 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency