ultrasoap 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/client.rb +4 -3
- data/ultrasoap-ruby.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 507ea593167429507f8f5a47997780f19e61ce30
|
4
|
+
data.tar.gz: ef8bba16c630b6f9c2460112c3adce843595cfc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eadaebea9c0581a8ceb5c408a607661b7f886e9f5432df058952d74b0c620a5ebd5c0f6ef48eaf608351fb66fac8ec56eec1d5a615c682404c0109d3b69f7803
|
7
|
+
data.tar.gz: 41e2a9e910cdc75d768b2ba134b5f58c51eaa21c3939ef96bb4e8712a4d07868e16aa9ba97a634a163322d67feed7e25f9d97488634be580bd9f05c09ea8b99b
|
data/lib/client.rb
CHANGED
@@ -25,12 +25,13 @@ module UltraSOAP
|
|
25
25
|
attr_accessor :test_wsdl
|
26
26
|
attr_accessor :prod_wsdl
|
27
27
|
attr_accessor :environment
|
28
|
+
attr_accessor :use_transactions
|
28
29
|
end
|
29
30
|
|
30
31
|
# Instance variables
|
31
32
|
attr_accessor :logging
|
32
33
|
attr_accessor :loglevel
|
33
|
-
attr_accessor :
|
34
|
+
attr_accessor :transactions
|
34
35
|
|
35
36
|
# Constructor
|
36
37
|
def initialize()
|
@@ -47,7 +48,7 @@ module UltraSOAP
|
|
47
48
|
|
48
49
|
# Setting up parameter values, if provided. If not, defaults are assumed
|
49
50
|
|
50
|
-
@
|
51
|
+
@transactions = Settings['use_transactions'] || Client.use_transactions
|
51
52
|
@logdest = Settings['logfile'] || Client.logdest
|
52
53
|
|
53
54
|
@logger = Logger.new(@logdest)
|
@@ -81,7 +82,7 @@ module UltraSOAP
|
|
81
82
|
# * message: the message hash
|
82
83
|
def send_request(method, message, strip_namespaces=true)
|
83
84
|
# If the client is using transactions, append the transaction id to the message hash
|
84
|
-
if @
|
85
|
+
if @transactions == true
|
85
86
|
transaction_hash = { :transaction_id => @transaction_id }
|
86
87
|
message.merge(transaction_hash)
|
87
88
|
end
|
data/ultrasoap-ruby.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'ultrasoap'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.2'
|
4
4
|
s.summary = "Simple Ruby client library for UltraDNS SOAP API"
|
5
5
|
s.description = "Connect to Neustar's UltraDNS SOAP API.\nFKA ultrasoap-ruby.\nAny feedback or contribution is appreciated."
|
6
6
|
s.authors = ["Gabriel Sambarino"]
|