winrm-s 0.2.0 → 0.2.2.rc.0

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGRlOWZjZTk0OWI2MzhlMDQxZTMxYjc0YWE3YzYzYzY4ZTU5NjE3NA==
4
+ YmY2MzFiOGI2YTllZDAzNjRkNDYwN2ExY2NkMDY5YWMyOTUyNzE1MQ==
5
5
  data.tar.gz: !binary |-
6
- ZmJjOTZmN2QwYTJkNzZhM2VkMWE4NDNjNzUwOTNmODZiOGJlZmE2MQ==
6
+ Yjk2YzY0OWIwOWUxYmNlZDU2NWU1NGFjOTBiZDE4MWY5MTk1OWE2NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDg2MzQ0NjAyMzE4ZDdkMDk5YTIxYTNhNGFjNmQ0ODBiM2FjMDEzNzRlMDE5
10
- ZGUwYTE5MDVjODQ3YmM5MGJiMDNiNWJmMmIwMGYxZDcxYTlhOWNlMjkzNWUy
11
- ZjdiM2U4NWM2YzJmMTU2MzQ3ZDQwMmFmNmI4NjA2NjUwYmM0MGE=
9
+ ZDhmYmM3NWQwODZkMGIxMWUzZmM0OTk3YTQ3N2NiNjAwOTBhNGViYmQ1N2Iy
10
+ N2YzM2FlYzY1NTBjZGQ1YTMyNzVjNGEyZmU2ZmFhYTI4MDlmNjZiNmJjZWUw
11
+ NmI4YjYyZWViMmEwNmUyMWIzMjg0OGQ2ZTIxOWRkYjlkNGNkMDk=
12
12
  data.tar.gz: !binary |-
13
- ODMzODUyODQzMTdhMmVkZGI0Y2IyYjJkZTI0Njg1MmJlMzA2NjhmMjY2ZmVk
14
- ZDQ5YzdlZDMxMjM2YTgzYzI0MjMxZjhjYWY2NTg5MmM2Zjk0OWYxOWU2ZmZk
15
- MjZmODY3NDdjMGM1Nzg4ZjI3ZWQwMWY0MWJjNjE2ZTBhMmYxMDA=
13
+ OWYzNjk4ZGMwMzRmNjk4NDJiOGIyNzFjZmYzMTQxZDg3YWY2ZDYzMzA5OGZl
14
+ MWE0ZTU5MTI5NjFjNzJkY2JlMzNiYTliNDI0N2I4MDVhZTEyZWU2ZTAwMmE2
15
+ MjdkM2Q2NjcyMGYxZmQ1NzYzOGRlMDZmNWIyYzI0MjFjNjVlODA=
@@ -1,6 +1,6 @@
1
1
  rvm:
2
2
  # - 1.8.7
3
- - 1.9.2
3
+ # - 1.9.2
4
4
  - 1.9.3
5
5
  - 2.0.0
6
6
  - 2.1.0
@@ -3,6 +3,10 @@
3
3
  ## Unreleased
4
4
  None
5
5
 
6
+ Release: 0.2.2
7
+ * [Issue #16](https://github.com/opscode/winrm-s/pull/16): [fix for knife-windows issue 124](https://github.com/opscode/knife-windows/issues/124)
8
+ * [Issue #15](https://github.com/opscode/winrm-s/pull/15): drop Ruby 1.9.2 builds from Travis
9
+
6
10
  Release: 0.2.0
7
11
  --------------
8
12
  * Fix invalid use of frozen string ENV block is used for user and domain
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module WinrmS
20
- VERSION = "0.2.0"
20
+ VERSION = "0.2.2.rc.0"
21
21
  MAJOR, MINOR, TINY = VERSION.split('.')
22
22
  end
@@ -25,7 +25,7 @@ def validate_patch
25
25
  # for encrypt/decrypt as described below.
26
26
  # Add few restriction to make sure the patched methods are still
27
27
  # available, but still give a way to consciously use later versions
28
- PatchAssertions.assert_major_version("httpclient", 2.4, "USE_HTTPCLIENT_MAJOR")
28
+ PatchAssertions.assert_major_version("httpclient", 2.5, "USE_HTTPCLIENT_MAJOR")
29
29
  PatchAssertions.assert_arity_of_patched_method(HTTPClient::WWWAuth, "filter_request", 1)
30
30
  PatchAssertions.assert_arity_of_patched_method(HTTPClient::WWWAuth, "filter_response", 2)
31
31
  PatchAssertions.assert_arity_of_patched_method(HTTPClient::SSPINegotiateAuth, "set", -1)
@@ -97,6 +97,21 @@ class HTTPClient
97
97
  end
98
98
 
99
99
  class SSPINegotiateAuth
100
+
101
+ begin
102
+ require 'win32/sspi'
103
+ SSPIEnabled = true
104
+ rescue LoadError
105
+ SSPIEnabled = false
106
+ end
107
+
108
+ begin
109
+ require 'gssapi'
110
+ GSSAPIEnabled = true
111
+ rescue LoadError
112
+ GSSAPIEnabled = false
113
+ end
114
+
100
115
  # Override to remember creds
101
116
  # Set authentication credential.
102
117
  def set(uri, user, passwd)
@@ -108,6 +123,10 @@ class HTTPClient
108
123
  @passwd = passwd
109
124
  end
110
125
 
126
+ def set?
127
+ SSPIEnabled || GSSAPIEnabled
128
+ end
129
+
111
130
  # Response handler: returns credential.
112
131
  # See win32/sspi for negotiation state transition.
113
132
  def get(req)
@@ -118,6 +137,7 @@ class HTTPClient
118
137
  }
119
138
 
120
139
  return nil unless param
140
+
121
141
  state = param[:state]
122
142
  authenticator = param[:authenticator]
123
143
  authphrase = param[:authphrase]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winrm-s
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2.rc.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaustubh Deorukhkar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-05 00:00:00.000000000 Z
11
+ date: 2014-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: winrm
@@ -126,9 +126,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - ! '>'
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 1.3.1
132
132
  requirements: []
133
133
  rubyforge_project:
134
134
  rubygems_version: 2.1.11