winrm 2.3.4 → 2.3.5

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
  SHA256:
3
- metadata.gz: a3fe57504656ba3f9273234cea67b48c19927af78611682b7a6ed6f037942260
4
- data.tar.gz: 8d8d08b8a0af7b33543421a1745c955ebf2d4f54c925f94557c8fef1b93892f1
3
+ metadata.gz: 83ddbf7bb422d247c6719bac48f839c8415622056719da00b5a9fc3b36daea43
4
+ data.tar.gz: ff0a22885967f76514207f8742f1c673eb2a3f2ba641b0ab5b8e9f97de2deeec
5
5
  SHA512:
6
- metadata.gz: dcc8a6e0743788294da51518d0c10888fbedeb48942438604f432a1213fdfee9ac5a8dca684560a2fe1ed6a52c8bb27cfec2312ec63dc1a9dcf766e5866deed9
7
- data.tar.gz: d27d5a7fd49283cd340098305551972990368c23eaca0f21ebd3478dbc2c90e5d867cbcb640838a0b7721572264fc9d48367e00d7b1882f4de2a25934094ed1e
6
+ metadata.gz: 854abafdd7d5484bc2611c0bc65d4852c2b2ba84e175185b486b66b9d4ec802ac65ded1b763b734f43d3994d60f7d85b1416fbf13ac0f61120e37c5e335b7488
7
+ data.tar.gz: fe87f65ada719004ae3ccb349517823f103981b1377c7d0c1b70dea755c183be203e99eab72cbfcbf9b05ce0366f069344a21cedebd772931ad85ef8f6212884
@@ -12,7 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'rexml/document'
15
+ require 'rexml/document' unless defined?(REXML::Document)
16
16
  require_relative '../wsmv/soap'
17
17
 
18
18
  module WinRM
@@ -12,7 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'rexml/document'
15
+ require 'rexml/document' unless defined?(REXML::Document)
16
16
 
17
17
  module WinRM
18
18
  module PSRP
@@ -12,7 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'base64'
15
+ require 'base64' unless defined?(Base64)
16
16
  require_relative 'message'
17
17
  require_relative 'message_data/pipeline_state'
18
18
 
@@ -147,6 +147,7 @@ module WinRM
147
147
  end
148
148
 
149
149
  def cleanup_command(command_id)
150
+ return unless shell_id
150
151
  logger.debug("[WinRM] cleaning up command_id: #{command_id} on shell_id #{shell_id}")
151
152
  cleanup_msg = WinRM::WSMV::CleanupCommand.new(
152
153
  connection_opts,
@@ -12,7 +12,7 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'securerandom'
15
+ require 'securerandom' unless defined?(SecureRandom)
16
16
  require_relative 'base'
17
17
  require_relative '../psrp/message_fragmenter'
18
18
  require_relative '../psrp/receive_response_reader'
@@ -152,8 +152,9 @@ module WinRM
152
152
  msg = config_msg.build
153
153
  resp_doc = transport.send_request(msg)
154
154
  REXML::XPath.first(resp_doc, "//*[local-name() = 'MaxEnvelopeSizekb']").text.to_i
155
- ensure
156
- logger.debug("[WinRM] Endpoint doesn't support config request for MaxEnvelopsizekb")
155
+ rescue REXML::ParseException
156
+ logger.debug("[WinRM] Endpoint doesn't support config request for MaxEnvelopeSizekb")
157
+ raise
157
158
  end
158
159
  # rubocop:enable Layout/RescueEnsureAlignment
159
160
  end
@@ -1,5 +1,5 @@
1
1
  # WinRM module
2
2
  module WinRM
3
3
  # The version of the WinRM library
4
- VERSION = '2.3.4'.freeze
4
+ VERSION = '2.3.5'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Wanek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-12-26 00:00:00.000000000 Z
14
+ date: 2020-10-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: builder
@@ -311,8 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  - !ruby/object:Gem::Version
312
312
  version: '0'
313
313
  requirements: []
314
- rubyforge_project:
315
- rubygems_version: 2.7.8
314
+ rubygems_version: 3.1.2
316
315
  signing_key:
317
316
  specification_version: 4
318
317
  summary: Ruby library for Windows Remote Management