winrm 1.0.0rc1 → 1.0.0rc2
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.
- data/VERSION +1 -1
- data/lib/winrm/http/transport.rb +2 -4
- data/lib/winrm/winrm_service.rb +4 -1
- data/winrm.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.0rc2
|
data/lib/winrm/http/transport.rb
CHANGED
@@ -30,8 +30,8 @@ module WinRM
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
#
|
34
|
-
#
|
33
|
+
# We'll need this to force basic authentication if desired
|
34
|
+
# TODO: implement this for basic auth needs
|
35
35
|
def basic_auth_only!
|
36
36
|
auths = @httpcli.www_auth.instance_variable_get('@authenticator')
|
37
37
|
auths.delete_if {|i| i.scheme !~ /basic/i}
|
@@ -42,7 +42,6 @@ module WinRM
|
|
42
42
|
def initialize(endpoint, user, pass)
|
43
43
|
super(endpoint)
|
44
44
|
@httpcli.set_auth(nil, user, pass)
|
45
|
-
basic_auth_only!
|
46
45
|
end
|
47
46
|
end
|
48
47
|
|
@@ -52,7 +51,6 @@ module WinRM
|
|
52
51
|
super(endpoint)
|
53
52
|
@httpcli.set_auth(endpoint, user, pass)
|
54
53
|
@httpcli.ssl_config.set_trust_ca(ca_trust_path) unless ca_trust_path.nil?
|
55
|
-
basic_auth_only!
|
56
54
|
end
|
57
55
|
end
|
58
56
|
|
data/lib/winrm/winrm_service.rb
CHANGED
@@ -7,6 +7,8 @@ module WinRM
|
|
7
7
|
DEFAULT_MAX_ENV_SIZE = 153600
|
8
8
|
DEFAULT_LOCALE = 'en-US'
|
9
9
|
|
10
|
+
attr_reader :endpoint
|
11
|
+
|
10
12
|
# @param [String,URI] endpoint the WinRM webservice endpoint
|
11
13
|
# @param [Symbol] transport either :kerberos(default)/:ssl/:plaintext
|
12
14
|
# @param [Hash] opts Misc opts for the various transports.
|
@@ -14,6 +16,7 @@ module WinRM
|
|
14
16
|
# @see WinRM::HTTP::HttpGSSAPI
|
15
17
|
# @see WinRM::HTTP::HttpSSL
|
16
18
|
def initialize(endpoint, transport = :kerberos, opts = {})
|
19
|
+
@endpoint = endpoint
|
17
20
|
@timeout = DEFAULT_TIMEOUT
|
18
21
|
@max_env_sz = DEFAULT_MAX_ENV_SIZE
|
19
22
|
@locale = DEFAULT_LOCALE
|
@@ -115,7 +118,7 @@ module WinRM
|
|
115
118
|
# <rsp:CommandState CommandId="..." State="http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done">
|
116
119
|
# <rsp:ExitCode>0</rsp:ExitCode>
|
117
120
|
# </rsp:CommandState>
|
118
|
-
if((resp/"
|
121
|
+
if((resp/"//*[@State='http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done']").empty?)
|
119
122
|
output.merge!(get_command_output(shell_id,command_id,&block)) do |key, old_data, new_data|
|
120
123
|
old_data += new_data
|
121
124
|
end
|
data/winrm.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.extra_rdoc_files = %w(README COPYING.txt)
|
25
25
|
|
26
26
|
s.required_ruby_version = '>= 1.9.0'
|
27
|
-
s.add_runtime_dependency 'gssapi'
|
27
|
+
s.add_runtime_dependency 'gssapi', '>= 0.1.5'
|
28
28
|
s.add_runtime_dependency 'nokogiri'
|
29
29
|
s.add_runtime_dependency 'httpclient'
|
30
30
|
s.add_runtime_dependency 'rubyntlm'
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: winrm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 5
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.0rc2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Dan Wanek
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-03-03 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: 0.1.5
|
25
25
|
type: :runtime
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|