teamforge 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/teamforge/ctfsoap.rb +3 -1
- data/lib/teamforge/version.rb +1 -1
- data/lib/teamforge.rb +9 -1
- metadata +5 -5
data/lib/teamforge/ctfsoap.rb
CHANGED
@@ -68,6 +68,7 @@ module TeamForge
|
|
68
68
|
end
|
69
69
|
|
70
70
|
message[:order!] = req_msg.members
|
71
|
+
xml_request = ""
|
71
72
|
|
72
73
|
begin
|
73
74
|
# This is the only place that the Savon::Client is currently used. It creates a SOAP requests with the required namespaces, headers, and the SOAP message that was sent to the request method.
|
@@ -77,11 +78,12 @@ module TeamForge
|
|
77
78
|
soap.namespaces["xmlns:impl"] = SERVICE_NAMESPACE
|
78
79
|
soap.namespaces["xmlns:soapenc"] = SOAP_NAMESPACE
|
79
80
|
soap.body = message
|
81
|
+
xml_request = http
|
80
82
|
end
|
81
83
|
# Return any error messages in a return hash. This error might be SOAP, HTTPI, or generic error. Each method checks for presense of fault but does not raise runtime error.
|
82
84
|
# Raising runtime exceptions is left to the calling program
|
83
85
|
rescue Exception => e
|
84
|
-
raise(
|
86
|
+
raise TeamForgeError.new(e.message, xml_request.body)
|
85
87
|
end
|
86
88
|
|
87
89
|
# if there are no errors our call to CTF was successful and we need to parse the response
|
data/lib/teamforge/version.rb
CHANGED
data/lib/teamforge.rb
CHANGED
@@ -93,7 +93,15 @@ module TeamForge
|
|
93
93
|
|
94
94
|
|
95
95
|
# Error to indicate problems accessing a CTF server
|
96
|
-
class TeamForgeError < RuntimeError
|
96
|
+
class TeamForgeError < RuntimeError
|
97
|
+
|
98
|
+
attr_accessor :request, :response
|
99
|
+
|
100
|
+
def initialize(msg=nil, request=nil)
|
101
|
+
super(msg)
|
102
|
+
@request = request
|
103
|
+
end
|
104
|
+
end
|
97
105
|
|
98
106
|
|
99
107
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamforge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,19 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-21 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
16
|
-
requirement: &
|
16
|
+
requirement: &2157957380 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157957380
|
25
25
|
description: A Ruby SOAP wrapper to communicate with TeamForge WebServices
|
26
26
|
email: pwolf@collab.net
|
27
27
|
executables: []
|