em-winrm 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,7 +76,9 @@ module EventMachine
76
76
  @winrm ||= begin
77
77
  http_method = ( @options[:port].to_s=~/(443|5986)/ ? 'https' : 'http' )
78
78
  endpoint = "#{http_method}://#{@host}:#{@options[:port]}/wsman"
79
- ::WinRM::WinRMWebService.new(endpoint, @transport, @options)
79
+ client = ::WinRM::WinRMWebService.new(endpoint, @transport, @options)
80
+ client.set_timeout(@options[:operation_timeout]) if @options[:operation_timeout]
81
+ client
80
82
  rescue ::WinRM::WinRMAuthorizationError => error
81
83
  raise ::WinRM::WinRMAuthorizationError.new("#{error.message}@#{@host}")
82
84
  end
@@ -18,7 +18,7 @@
18
18
 
19
19
  module EventMachine
20
20
  module WinRM
21
- VERSION = "0.5.0"
21
+ VERSION = "0.5.2"
22
22
  MAJOR, MINOR, TINY = VERSION.split('.')
23
23
  end
24
24
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: em-winrm
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.5.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Seth Chisamore