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 CHANGED
@@ -1 +1 @@
1
- 1.0.0rc1
1
+ 1.0.0rc2
@@ -30,8 +30,8 @@ module WinRM
30
30
  end
31
31
  end
32
32
 
33
- # This will remove Negotiate authentication for plaintext and SSL because it supercedes Basic
34
- # when it shouldn't for these types of transports.
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
 
@@ -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/"//#{NS_WIN_SHELL}:ExitCode").empty?)
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.0rc1
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-02-28 00:00:00 -06:00
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: "0"
24
+ version: 0.1.5
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency