loco_bill 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/loco_bill/configuration.rb +1 -1
- data/lib/loco_bill/request.rb +2 -2
- metadata +3 -3
data/lib/loco_bill/request.rb
CHANGED
@@ -72,7 +72,7 @@ module LocoBill
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def api(xml_body)
|
75
|
-
|
75
|
+
puts "XML BODY: #{xml_body}" if LocoBill::Configuration.debug
|
76
76
|
https = Net::HTTP.new(LocoBill::Configuration.server, 443)
|
77
77
|
https.use_ssl = true
|
78
78
|
https.read_timeout=5 # 5 second timeout
|
@@ -93,7 +93,7 @@ module LocoBill
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def process_response(raw_response)
|
96
|
-
|
96
|
+
puts "RAW RESPONSE: #{raw_response}" if LocoBill::Configuration.debug
|
97
97
|
res = Hash.from_xml(raw_response)['response']
|
98
98
|
res = res["#{@action}result"] || res["operationresult"]
|
99
99
|
res.symbolize_keys!
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 5
|
9
|
+
version: 0.0.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- chris mcc
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-16 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|