winrm-s 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -1
- data/lib/winrm-s/version.rb +1 -1
- data/lib/winrm/helpers/assert_patch.rb +8 -1
- data/lib/winrm/http/auth.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f32472802337698a032e6db6da64dd73dbe3ea7
|
4
|
+
data.tar.gz: 92356e7a9ad95de8614f2fbcfca57c8c401bed7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66b68419e19e89d9d1d3dea286556f157dad21a00075ffbab6e3a24fd78030491acad6e2b5562ef56af5fc6b74a97b6e3449c30e54316a47478f5d7a933ae675
|
7
|
+
data.tar.gz: db8d4d8f50f0a20bf2b2d9c848101039873f83d63567f4b017416905d409357c2712f02d716538814722214ae6e8b2795f8ec118ac82bef7d62d9220a8fdad38
|
data/CHANGELOG.md
CHANGED
data/lib/winrm-s/version.rb
CHANGED
@@ -5,7 +5,14 @@ module PatchAssertions
|
|
5
5
|
supported_major_ver = ENV[override_var_name] || expected_major
|
6
6
|
loaded_ver = Gem.loaded_specs[library_name].version
|
7
7
|
loaded_major_ver = loaded_ver.to_s.match(/(^\d+\.\d+)\.(.*)$/)[1]
|
8
|
-
|
8
|
+
|
9
|
+
version_match = false
|
10
|
+
Array(supported_major_ver).each do |version|
|
11
|
+
if loaded_major_ver.to_s == version.to_s
|
12
|
+
version_match = true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
unless version_match
|
9
16
|
puts "WARNING: Unsupported version of #{library_name}. The supported major version of library is #{library_name} version #{expected_major}. This code path monkey patches few methods in #{library_name} to support additional features. This could possibly work, but it is advised to extensively test your version. If you are aware of the impact of using #{loaded_ver}, this warning can be disabled by setting #{override_var_name} to the major version #{loaded_major_ver}. "
|
10
17
|
end
|
11
18
|
end
|
data/lib/winrm/http/auth.rb
CHANGED
@@ -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.6, "USE_HTTPCLIENT_MAJOR")
|
28
|
+
PatchAssertions.assert_major_version("httpclient", [2.6,2.7], "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)
|
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.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaustubh Deorukhkar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: winrm
|