muhimbi 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -0
- data/lib/muhimbi/client.rb +2 -0
- data/lib/muhimbi/config.rb +2 -1
- data/lib/muhimbi/version.rb +1 -1
- data/spec/functional/client_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mzc4NDJkMzE0Yjg3NDlmZDg3MjJiMTBiMDQ4NDZiZTc2ZDlkMjIxYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTUxZThkMjBkNmY0YTViMGFhMDgyOGFmOGRkZmY5Y2NjYjNhOTJhMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmQ1MzM0MjkzY2JiYjhjNTNkNDRmZTEyNzU1ODM1MmM3MmE4MTMyYjVlNGU0
|
10
|
+
N2Q0MDA0MDQxM2IzZGY2MjJmYzcyNDc4ZTZhNjFkMzAzYWRhZjAwNTAwM2Fm
|
11
|
+
ZDljMzM1NTE5NGFlNzcyM2EwNTRlZGJhZjU0Zjk3NTQxOTAzY2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWZkMjBhM2UyYmRlMzNhMDcxYTZlZWRlMzUxYzRlMTYxZmZhYWJlNTlhNGJh
|
14
|
+
YjU2OTZhNWZjMjBlZDc4Njg2OWJiNDQyNGU4MWZmYWEzNjU2YjMyMTkwODY5
|
15
|
+
ZTRkMjJmZTNmOTJkMzU3NzFlZjEyNjhiMjY0YjQxZTg5MmQ3NWY=
|
data/README.md
CHANGED
data/lib/muhimbi/client.rb
CHANGED
@@ -6,6 +6,8 @@ module Muhimbi
|
|
6
6
|
def self.client
|
7
7
|
Savon.client do
|
8
8
|
wsdl Muhimbi::Config.wsdl
|
9
|
+
open_timeout Muhimbi::Config.timeout || 30
|
10
|
+
read_timeout Muhimbi::Config.timeout || 30
|
9
11
|
namespaces(
|
10
12
|
"xmlns:ns" =>"http://services.muhimbi.com/2009/10/06",
|
11
13
|
"xmlns:ns1"=>"http://types.muhimbi.com/2009/10/06",
|
data/lib/muhimbi/config.rb
CHANGED
data/lib/muhimbi/version.rb
CHANGED
@@ -4,6 +4,7 @@ describe "Client class" do
|
|
4
4
|
before(:all) do
|
5
5
|
Muhimbi::Config.setup do |config|
|
6
6
|
config.wsdl = config_options["wsdl"]
|
7
|
+
config.timeout = config_options["timeout"]
|
7
8
|
end
|
8
9
|
@client = Muhimbi::Client.client
|
9
10
|
end
|
@@ -12,6 +13,11 @@ describe "Client class" do
|
|
12
13
|
@client.class.should == Savon::Client
|
13
14
|
end
|
14
15
|
|
16
|
+
it "timeout should configurable" do
|
17
|
+
@client.instance_variable_get("@wsdl").request.open_timeout.should == config_options["timeout"]
|
18
|
+
@client.instance_variable_get("@wsdl").request.read_timeout.should == config_options["timeout"]
|
19
|
+
end
|
20
|
+
|
15
21
|
it "should have operations" do
|
16
22
|
@client.operations.class.should == Array
|
17
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muhimbi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- miguel michelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|