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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmZmMmQ2YjdjNzA0MjAwNTg0N2I1N2NiMTUzYzA5MmRlNWEzMDNkOQ==
4
+ Mzc4NDJkMzE0Yjg3NDlmZDg3MjJiMTBiMDQ4NDZiZTc2ZDlkMjIxYg==
5
5
  data.tar.gz: !binary |-
6
- ZWM2ZWZmN2M0YWI3MmU1N2U4NTI1ZDhjNTJiYjQwMWMyYjAxYTIwZQ==
6
+ ZTUxZThkMjBkNmY0YTViMGFhMDgyOGFmOGRkZmY5Y2NjYjNhOTJhMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTMwODhlYjI5OTQyOTA0MWZmMTk0YWUzOTg0YWU1NTU0OTQ5ZmY3YjY5OWVk
10
- MDBmOTAyOTlhYTk2ZTZhYTA2ZWM0MjhjMDU1NzZjYzBlNTJlYjRiYTBjZjU3
11
- YTU3YmM1ZTQxZTE2MmQyZWE1NDlmZjU1OWZkYzgzM2YyZjRmMjk=
9
+ NmQ1MzM0MjkzY2JiYjhjNTNkNDRmZTEyNzU1ODM1MmM3MmE4MTMyYjVlNGU0
10
+ N2Q0MDA0MDQxM2IzZGY2MjJmYzcyNDc4ZTZhNjFkMzAzYWRhZjAwNTAwM2Fm
11
+ ZDljMzM1NTE5NGFlNzcyM2EwNTRlZGJhZjU0Zjk3NTQxOTAzY2Y=
12
12
  data.tar.gz: !binary |-
13
- ZmE3NWFjOWJkZGUxMzNlZTQ5ZTEyYTMyMzNiZTA4NzAxNmI5NDc0ODQ4MWY1
14
- NmVmZTNjYWEwMzUyMjdjMzk0ZTc2M2RiMTY4MDE2MTQ1NjlkNWUwYjU2Njdk
15
- YjMyYzgzMjcyZGJiNTJlZjhjNDVjZjEzOGM2ODVmYzk3NDE2MGE=
13
+ ZWZkMjBhM2UyYmRlMzNhMDcxYTZlZWRlMzUxYzRlMTYxZmZhYWJlNTlhNGJh
14
+ YjU2OTZhNWZjMjBlZDc4Njg2OWJiNDQyNGU4MWZmYWEzNjU2YjMyMTkwODY5
15
+ ZTRkMjJmZTNmOTJkMzU3NzFlZjEyNjhiMjY0YjQxZTg5MmQ3NWY=
data/README.md CHANGED
@@ -24,6 +24,7 @@ Or install it yourself as:
24
24
 
25
25
  Muhimbi::Config.setup do |config|
26
26
  config.wsdl = "http://your_ip/Muhimbi.DocumentConverter.WebService/?wsdl"
27
+ config.timeout = 200 #defaults to 30
27
28
  end
28
29
 
29
30
  ### Client
@@ -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",
@@ -7,7 +7,8 @@ module Muhimbi
7
7
  yield self
8
8
  end
9
9
 
10
- mattr_accessor :wsdl
10
+ mattr_accessor :wsdl, :timeout
11
+
11
12
 
12
13
  end
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module Muhimbi
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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.3
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-07 00:00:00.000000000 Z
11
+ date: 2013-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler