mpi_client 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ module MPIClient
15
15
  doc = Nokogiri::XML(xml)
16
16
 
17
17
  unless (doc.xpath("//Transaction")).empty?
18
- @status = doc.xpath("//Transaction").attr('status')
18
+ @status = doc.xpath("//Transaction").attr('status').value
19
19
  @url = doc.xpath("//Transaction/URL").text
20
20
  else
21
21
  get_error(doc)
@@ -33,7 +33,7 @@ module MPIClient
33
33
  def get_error(doc)
34
34
  unless (error = doc.xpath("//Error")).empty?
35
35
  @error_message = error.text
36
- @error_code = error.attr('code')
36
+ @error_code = error.attr('code').value
37
37
  else
38
38
  @error_message = 'Unknown response was received from MPI'
39
39
  @error_code = ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Plashchynski
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-11-17 00:00:00 +02:00
13
+ date: 2010-03-01 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency