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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1ca75e230abc66bf7c5727a7b7b1cf8a91ba371
4
- data.tar.gz: 1ea8c69888c111ddaede020425212a12bda2c650
3
+ metadata.gz: 4f32472802337698a032e6db6da64dd73dbe3ea7
4
+ data.tar.gz: 92356e7a9ad95de8614f2fbcfca57c8c401bed7d
5
5
  SHA512:
6
- metadata.gz: 39fe8cbc177f8d2986758a833a8ead44719951f027b0dc524ac991026cf33f7e374bd8ac4b88209ad05ef5eb74bbd39a952951111dc79212ae306725c18b8fed
7
- data.tar.gz: 0da71b1d4e730c52036ff527d40771d0933b604f16af7ff86b57ee84fd953cfa47a449ba52d40e983d0fe4d5471b7ab7fd18476674b6dc0223d46357f5b3ae6a
6
+ metadata.gz: 66b68419e19e89d9d1d3dea286556f157dad21a00075ffbab6e3a24fd78030491acad6e2b5562ef56af5fc6b74a97b6e3449c30e54316a47478f5d7a933ae675
7
+ data.tar.gz: db8d4d8f50f0a20bf2b2d9c848101039873f83d63567f4b017416905d409357c2712f02d716538814722214ae6e8b2795f8ec118ac82bef7d62d9220a8fdad38
@@ -1,6 +1,7 @@
1
1
  # winrm-s Change Log
2
- Unreleased
2
+ Release: 0.3.3
3
3
  --------------
4
+ * Do not emit warnings for either httpclient versions 2.6 or 2.7
4
5
 
5
6
  Release: 0.3.2
6
7
  --------------
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module WinrmS
20
- VERSION = "0.3.2"
20
+ VERSION = "0.3.3"
21
21
  MAJOR, MINOR, TINY = VERSION.split('.')
22
22
  end
@@ -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
- if loaded_major_ver.to_s != supported_major_ver.to_s
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
@@ -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.2
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: 2015-12-29 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: winrm