winrm 2.3.0 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/winrm/http/response_handler.rb +1 -1
  3. data/lib/winrm/http/transport.rb +2 -2
  4. data/lib/winrm/psrp/message.rb +128 -128
  5. data/lib/winrm/psrp/message_data/error_record.rb +2 -0
  6. data/lib/winrm/psrp/message_data/pipeline_output.rb +1 -1
  7. data/lib/winrm/psrp/message_factory.rb +14 -2
  8. data/lib/winrm/psrp/powershell_output_decoder.rb +142 -142
  9. data/lib/winrm/shells/base.rb +1 -0
  10. data/lib/winrm/shells/power_shell.rb +4 -4
  11. data/lib/winrm/version.rb +1 -1
  12. metadata +16 -90
  13. data/.gitignore +0 -10
  14. data/.rubocop.yml +0 -38
  15. data/.travis.yml +0 -10
  16. data/Gemfile +0 -2
  17. data/Rakefile +0 -33
  18. data/Vagrantfile +0 -6
  19. data/WinrmAppveyor.psm1 +0 -32
  20. data/appveyor.yml +0 -50
  21. data/changelog.md +0 -133
  22. data/preamble +0 -17
  23. data/tests/integration/auth_timeout_spec.rb +0 -17
  24. data/tests/integration/cmd_spec.rb +0 -130
  25. data/tests/integration/config-example.yml +0 -16
  26. data/tests/integration/issue_59_spec.rb +0 -25
  27. data/tests/integration/powershell_spec.rb +0 -164
  28. data/tests/integration/spec_helper.rb +0 -62
  29. data/tests/integration/transport_spec.rb +0 -98
  30. data/tests/integration/wql_spec.rb +0 -33
  31. data/tests/matchers.rb +0 -59
  32. data/tests/spec/configuration_spec.rb +0 -183
  33. data/tests/spec/connection_spec.rb +0 -37
  34. data/tests/spec/exception_spec.rb +0 -49
  35. data/tests/spec/http/transport_factory_spec.rb +0 -66
  36. data/tests/spec/http/transport_spec.rb +0 -43
  37. data/tests/spec/output_spec.rb +0 -128
  38. data/tests/spec/psrp/fragment_spec.rb +0 -60
  39. data/tests/spec/psrp/message_data/base_spec.rb +0 -11
  40. data/tests/spec/psrp/message_data/error_record_spec.rb +0 -39
  41. data/tests/spec/psrp/message_data/pipeline_host_call_spec.rb +0 -23
  42. data/tests/spec/psrp/message_data/pipeline_output_spec.rb +0 -30
  43. data/tests/spec/psrp/message_data/pipeline_state_spec.rb +0 -38
  44. data/tests/spec/psrp/message_data/runspace_pool_host_call_spec.rb +0 -23
  45. data/tests/spec/psrp/message_data/runspacepool_state_spec.rb +0 -14
  46. data/tests/spec/psrp/message_data/session_capability_spec.rb +0 -28
  47. data/tests/spec/psrp/message_data_spec.rb +0 -33
  48. data/tests/spec/psrp/message_defragmenter_spec.rb +0 -45
  49. data/tests/spec/psrp/message_fragmenter_spec.rb +0 -103
  50. data/tests/spec/psrp/powershell_output_decoder_spec.rb +0 -98
  51. data/tests/spec/psrp/psrp_message_spec.rb +0 -73
  52. data/tests/spec/psrp/recieve_response_reader_spec.rb +0 -170
  53. data/tests/spec/psrp/uuid_spec.rb +0 -28
  54. data/tests/spec/response_handler_spec.rb +0 -69
  55. data/tests/spec/shells/base_spec.rb +0 -227
  56. data/tests/spec/shells/cmd_spec.rb +0 -75
  57. data/tests/spec/shells/powershell_spec.rb +0 -221
  58. data/tests/spec/spec_helper.rb +0 -46
  59. data/tests/spec/stubs/clixml/error_record.xml.erb +0 -84
  60. data/tests/spec/stubs/clixml/pipeline_state.xml.erb +0 -88
  61. data/tests/spec/stubs/responses/get_command_output_response.xml.erb +0 -13
  62. data/tests/spec/stubs/responses/get_command_output_response_not_done.xml.erb +0 -10
  63. data/tests/spec/stubs/responses/get_omi_command_output_response.xml.erb +0 -23
  64. data/tests/spec/stubs/responses/get_omi_command_output_response_not_done.xml.erb +0 -24
  65. data/tests/spec/stubs/responses/get_omi_config_response.xml +0 -45
  66. data/tests/spec/stubs/responses/get_omi_powershell_keepalive_response.xml.erb +0 -33
  67. data/tests/spec/stubs/responses/get_powershell_keepalive_response.xml.erb +0 -10
  68. data/tests/spec/stubs/responses/get_powershell_output_response.xml.erb +0 -12
  69. data/tests/spec/stubs/responses/get_powershell_output_response_not_done.xml.erb +0 -9
  70. data/tests/spec/stubs/responses/open_shell_omi.xml +0 -43
  71. data/tests/spec/stubs/responses/open_shell_v1.xml +0 -19
  72. data/tests/spec/stubs/responses/open_shell_v2.xml +0 -20
  73. data/tests/spec/stubs/responses/soap_fault_omi.xml +0 -31
  74. data/tests/spec/stubs/responses/soap_fault_v1.xml +0 -36
  75. data/tests/spec/stubs/responses/soap_fault_v2.xml +0 -42
  76. data/tests/spec/stubs/responses/wmi_error_v2.xml +0 -41
  77. data/tests/spec/wsmv/cleanup_command_spec.rb +0 -20
  78. data/tests/spec/wsmv/close_shell_spec.rb +0 -15
  79. data/tests/spec/wsmv/command_output_decoder_spec.rb +0 -35
  80. data/tests/spec/wsmv/command_output_spec.rb +0 -43
  81. data/tests/spec/wsmv/command_spec.rb +0 -17
  82. data/tests/spec/wsmv/configuration_spec.rb +0 -15
  83. data/tests/spec/wsmv/create_pipeline_spec.rb +0 -30
  84. data/tests/spec/wsmv/create_shell_spec.rb +0 -39
  85. data/tests/spec/wsmv/init_runspace_pool_spec.rb +0 -38
  86. data/tests/spec/wsmv/keep_alive_spec.rb +0 -21
  87. data/tests/spec/wsmv/receive_response_reader_spec.rb +0 -124
  88. data/tests/spec/wsmv/send_data_spec.rb +0 -30
  89. data/tests/spec/wsmv/wql_query_spec.rb +0 -11
  90. data/tests/spec/wsmv/write_stdin_spec.rb +0 -20
  91. data/winrm.gemspec +0 -46
@@ -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'
@@ -147,14 +147,14 @@ module WinRM
147
147
  end
148
148
 
149
149
  def max_envelope_size_kb
150
- # rubocop:disable Layout/RescueEnsureAlignment
151
150
  @max_envelope_size_kb ||= begin
152
151
  config_msg = WinRM::WSMV::Configuration.new(connection_opts)
153
152
  msg = config_msg.build
154
153
  resp_doc = transport.send_request(msg)
155
154
  REXML::XPath.first(resp_doc, "//*[local-name() = 'MaxEnvelopeSizekb']").text.to_i
156
- ensure
157
- 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
158
158
  end
159
159
  # rubocop:enable Layout/RescueEnsureAlignment
160
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.0'.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.0
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: 2018-10-15 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
@@ -28,19 +28,19 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: 2.1.2
30
30
  - !ruby/object:Gem::Dependency
31
- name: erubis
31
+ name: erubi
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - "~>"
35
35
  - !ruby/object:Gem::Version
36
- version: '2.7'
36
+ version: '1.8'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: '2.7'
43
+ version: '1.8'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: gssapi
46
46
  requirement: !ruby/object:Gem::Requirement
@@ -141,16 +141,22 @@ dependencies:
141
141
  name: rake
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - "~>"
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '10.3'
147
+ - - "<"
148
+ - !ruby/object:Gem::Version
149
+ version: '13'
147
150
  type: :development
148
151
  prerelease: false
149
152
  version_requirements: !ruby/object:Gem::Requirement
150
153
  requirements:
151
- - - "~>"
154
+ - - ">="
152
155
  - !ruby/object:Gem::Version
153
156
  version: '10.3'
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: '13'
154
160
  - !ruby/object:Gem::Dependency
155
161
  name: rb-readline
156
162
  requirement: !ruby/object:Gem::Requirement
@@ -185,14 +191,14 @@ dependencies:
185
191
  requirements:
186
192
  - - "~>"
187
193
  - !ruby/object:Gem::Version
188
- version: '0.51'
194
+ version: 0.51.0
189
195
  type: :development
190
196
  prerelease: false
191
197
  version_requirements: !ruby/object:Gem::Requirement
192
198
  requirements:
193
199
  - - "~>"
194
200
  - !ruby/object:Gem::Version
195
- version: '0.51'
201
+ version: 0.51.0
196
202
  - !ruby/object:Gem::Dependency
197
203
  name: rubyntlm
198
204
  requirement: !ruby/object:Gem::Requirement
@@ -226,18 +232,9 @@ extra_rdoc_files:
226
232
  - README.md
227
233
  - LICENSE
228
234
  files:
229
- - ".gitignore"
230
- - ".rubocop.yml"
231
- - ".travis.yml"
232
- - Gemfile
233
235
  - LICENSE
234
236
  - README.md
235
- - Rakefile
236
- - Vagrantfile
237
- - WinrmAppveyor.psm1
238
- - appveyor.yml
239
237
  - bin/rwinrm
240
- - changelog.md
241
238
  - lib/winrm.rb
242
239
  - lib/winrm/connection.rb
243
240
  - lib/winrm/connection_opts.rb
@@ -291,76 +288,6 @@ files:
291
288
  - lib/winrm/wsmv/wql_pull.rb
292
289
  - lib/winrm/wsmv/wql_query.rb
293
290
  - lib/winrm/wsmv/write_stdin.rb
294
- - preamble
295
- - tests/integration/auth_timeout_spec.rb
296
- - tests/integration/cmd_spec.rb
297
- - tests/integration/config-example.yml
298
- - tests/integration/issue_59_spec.rb
299
- - tests/integration/powershell_spec.rb
300
- - tests/integration/spec_helper.rb
301
- - tests/integration/transport_spec.rb
302
- - tests/integration/wql_spec.rb
303
- - tests/matchers.rb
304
- - tests/spec/configuration_spec.rb
305
- - tests/spec/connection_spec.rb
306
- - tests/spec/exception_spec.rb
307
- - tests/spec/http/transport_factory_spec.rb
308
- - tests/spec/http/transport_spec.rb
309
- - tests/spec/output_spec.rb
310
- - tests/spec/psrp/fragment_spec.rb
311
- - tests/spec/psrp/message_data/base_spec.rb
312
- - tests/spec/psrp/message_data/error_record_spec.rb
313
- - tests/spec/psrp/message_data/pipeline_host_call_spec.rb
314
- - tests/spec/psrp/message_data/pipeline_output_spec.rb
315
- - tests/spec/psrp/message_data/pipeline_state_spec.rb
316
- - tests/spec/psrp/message_data/runspace_pool_host_call_spec.rb
317
- - tests/spec/psrp/message_data/runspacepool_state_spec.rb
318
- - tests/spec/psrp/message_data/session_capability_spec.rb
319
- - tests/spec/psrp/message_data_spec.rb
320
- - tests/spec/psrp/message_defragmenter_spec.rb
321
- - tests/spec/psrp/message_fragmenter_spec.rb
322
- - tests/spec/psrp/powershell_output_decoder_spec.rb
323
- - tests/spec/psrp/psrp_message_spec.rb
324
- - tests/spec/psrp/recieve_response_reader_spec.rb
325
- - tests/spec/psrp/uuid_spec.rb
326
- - tests/spec/response_handler_spec.rb
327
- - tests/spec/shells/base_spec.rb
328
- - tests/spec/shells/cmd_spec.rb
329
- - tests/spec/shells/powershell_spec.rb
330
- - tests/spec/spec_helper.rb
331
- - tests/spec/stubs/clixml/error_record.xml.erb
332
- - tests/spec/stubs/clixml/pipeline_state.xml.erb
333
- - tests/spec/stubs/responses/get_command_output_response.xml.erb
334
- - tests/spec/stubs/responses/get_command_output_response_not_done.xml.erb
335
- - tests/spec/stubs/responses/get_omi_command_output_response.xml.erb
336
- - tests/spec/stubs/responses/get_omi_command_output_response_not_done.xml.erb
337
- - tests/spec/stubs/responses/get_omi_config_response.xml
338
- - tests/spec/stubs/responses/get_omi_powershell_keepalive_response.xml.erb
339
- - tests/spec/stubs/responses/get_powershell_keepalive_response.xml.erb
340
- - tests/spec/stubs/responses/get_powershell_output_response.xml.erb
341
- - tests/spec/stubs/responses/get_powershell_output_response_not_done.xml.erb
342
- - tests/spec/stubs/responses/open_shell_omi.xml
343
- - tests/spec/stubs/responses/open_shell_v1.xml
344
- - tests/spec/stubs/responses/open_shell_v2.xml
345
- - tests/spec/stubs/responses/soap_fault_omi.xml
346
- - tests/spec/stubs/responses/soap_fault_v1.xml
347
- - tests/spec/stubs/responses/soap_fault_v2.xml
348
- - tests/spec/stubs/responses/wmi_error_v2.xml
349
- - tests/spec/wsmv/cleanup_command_spec.rb
350
- - tests/spec/wsmv/close_shell_spec.rb
351
- - tests/spec/wsmv/command_output_decoder_spec.rb
352
- - tests/spec/wsmv/command_output_spec.rb
353
- - tests/spec/wsmv/command_spec.rb
354
- - tests/spec/wsmv/configuration_spec.rb
355
- - tests/spec/wsmv/create_pipeline_spec.rb
356
- - tests/spec/wsmv/create_shell_spec.rb
357
- - tests/spec/wsmv/init_runspace_pool_spec.rb
358
- - tests/spec/wsmv/keep_alive_spec.rb
359
- - tests/spec/wsmv/receive_response_reader_spec.rb
360
- - tests/spec/wsmv/send_data_spec.rb
361
- - tests/spec/wsmv/wql_query_spec.rb
362
- - tests/spec/wsmv/write_stdin_spec.rb
363
- - winrm.gemspec
364
291
  homepage: https://github.com/WinRb/WinRM
365
292
  licenses:
366
293
  - Apache-2.0
@@ -384,8 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
311
  - !ruby/object:Gem::Version
385
312
  version: '0'
386
313
  requirements: []
387
- rubyforge_project:
388
- rubygems_version: 2.7.6
314
+ rubygems_version: 3.1.2
389
315
  signing_key:
390
316
  specification_version: 4
391
317
  summary: Ruby library for Windows Remote Management
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- *.swp
2
- *.gem
3
- pkg/*
4
- .rvmrc
5
- .idea
6
- .bundle
7
- tests/integration/config.yml
8
- traces/
9
- Gemfile.lock
10
- .vagrant
@@ -1,38 +0,0 @@
1
- AllCops:
2
- Exclude:
3
- - 'appveyor.yml'
4
- - 'Vagrantfile'
5
- - 'scripts/**/*'
6
-
7
- Style/Encoding:
8
- Enabled: true
9
-
10
- Style/NumericLiterals:
11
- Enabled: false
12
-
13
- Layout/EndOfLine:
14
- Enabled: false
15
-
16
- Layout/IndentHeredoc:
17
- Enabled: false
18
-
19
- Metrics/BlockLength:
20
- Max: 200
21
-
22
- Metrics/LineLength:
23
- Max: 120
24
-
25
- Metrics/MethodLength:
26
- Max: 20
27
-
28
- ModuleLength:
29
- Max: 250
30
-
31
- Naming/HeredocDelimiterNaming:
32
- Enabled: false
33
-
34
- ClassLength:
35
- Max: 250
36
-
37
- Metrics/AbcSize:
38
- Max: 25
@@ -1,10 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.0
4
- before_install:
5
- - gem update bundler
6
-
7
- # This prevents testing branches that are created just for PRs
8
- branches:
9
- only:
10
- - master
data/Gemfile DELETED
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
data/Rakefile DELETED
@@ -1,33 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
- require 'rspec/core/rake_task'
4
- require 'rubocop/rake_task'
5
- require 'bundler/gem_tasks'
6
-
7
- # Change to the directory of this file.
8
- Dir.chdir(File.expand_path(__dir__))
9
-
10
- desc 'Open a Pry console for this library'
11
- task :console do
12
- require 'pry'
13
- require 'winrm'
14
- ARGV.clear
15
- Pry.start
16
- end
17
-
18
- RSpec::Core::RakeTask.new(:spec) do |task|
19
- task.pattern = 'tests/spec/**/*_spec.rb'
20
- task.rspec_opts = ['--color', '-f documentation', '-r ./tests/spec/spec_helper']
21
- end
22
-
23
- # Run the integration test suite
24
- RSpec::Core::RakeTask.new(:integration) do |task|
25
- task.pattern = 'tests/integration/*_spec.rb'
26
- task.rspec_opts = ['--color', '-f documentation', '-r ./tests/integration/spec_helper']
27
- end
28
-
29
- RuboCop::RakeTask.new
30
-
31
- task default: %i[spec rubocop]
32
-
33
- task all: %i[default integration]
@@ -1,6 +0,0 @@
1
- # -*- mode: ruby -*-
2
- # vi: set ft=ruby :
3
-
4
- Vagrant.configure("2") do |config|
5
- config.vm.box = "mwrock/WindowsNano"
6
- end
@@ -1,32 +0,0 @@
1
- function New-ClientCertificate {
2
- param([String]$username, [String]$basePath = ((Resolve-Path .).Path))
3
-
4
- $env:OPENSSL_CONF=[System.IO.Path]::GetTempFileName()
5
-
6
- Set-Content -Path $env:OPENSSL_CONF -Value @"
7
- distinguished_name = req_distinguished_name
8
- [req_distinguished_name]
9
- [v3_req_client]
10
- extendedKeyUsage = clientAuth
11
- subjectAltName = otherName:1.3.6.1.4.1.311.20.2.3;UTF8:$username@localhost
12
- "@
13
-
14
- $user_path = Join-Path $basePath user.pem
15
- $key_path = Join-Path $basePath key.pem
16
- $pfx_path = Join-Path $basePath user.pfx
17
-
18
- openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -out $user_path -outform PEM -keyout $key_path -subj "/CN=$username" -extensions v3_req_client 2>&1
19
-
20
- openssl pkcs12 -export -in $user_path -inkey $key_path -out $pfx_path -passout pass: 2>&1
21
-
22
- del $env:OPENSSL_CONF
23
- }
24
-
25
- function New-WinrmUserCertificateMapping {
26
- param([String]$issuer)
27
- $secure_pass = ConvertTo-SecureString $env:winrm_password -AsPlainText -Force
28
- $cred = New-Object System.Management.Automation.PSCredential ($env:winrm_user, $secure_pass)
29
- New-Item -Path WSMan:\localhost\ClientCertificate -Subject "$env:winrm_user@localhost" -URI * -Issuer $issuer -Credential $cred -Force
30
- }
31
-
32
- Export-ModuleMember New-ClientCertificate, New-WinrmUserCertificateMapping
@@ -1,50 +0,0 @@
1
- version: "master-{build}"
2
-
3
- os: Windows Server 2012 R2
4
- platform:
5
- - x64
6
-
7
- environment:
8
- winrm_user: test_user
9
- winrm_password: Pass@word1
10
- user_cert: c:\projects\winrm\user.pem
11
- user_key: c:\projects\winrm\key.pem
12
-
13
- matrix:
14
- - ruby_version: "22"
15
- winrm_endpoint: http://localhost:5985/wsman
16
-
17
- clone_folder: c:\projects\winrm
18
- clone_depth: 1
19
- branches:
20
- only:
21
- - master
22
-
23
- install:
24
- - ps: net user /add $env:winrm_user $env:winrm_password
25
- - ps: net localgroup administrators $env:winrm_user /add
26
- - ps: $env:PATH="C:\OpenSSL-Win64\bin;$env:PATH"
27
- - ps: Import-Module c:\projects\winrm\WinrmAppveyor.psm1
28
- - ps: New-ClientCertificate $env:winrm_user c:\projects\winrm
29
- - ps: $env:user_cert_thumb = (Import-pfxCertificate -FilePath c:\projects\winrm\user.pfx -CertStoreLocation Cert:\LocalMachine\root).Thumbprint
30
- - ps: Import-pfxCertificate -FilePath c:\projects\winrm\user.pfx -CertStoreLocation Cert:\LocalMachine\TrustedPeople
31
- - ps: $env:winrm_cert = (New-SelfSignedCertificate -DnsName localhost -CertStoreLocation cert:\localmachine\my).Thumbprint
32
- - ps: winrm create winrm/config/Listener?Address=*+Transport=HTTPS "@{Hostname=`"localhost`";CertificateThumbprint=`"$($env:winrm_cert)`"}"
33
- - ps: winrm set winrm/config/client/auth '@{Basic="true"}'
34
- - ps: winrm set winrm/config/service/auth '@{Basic="true"}'
35
- - ps: winrm set winrm/config/service/auth '@{Certificate="true"}'
36
- - ps: winrm set winrm/config/service/auth '@{CbtHardeningLevel="Strict"}'
37
- - ps: winrm set winrm/config/service '@{AllowUnencrypted="true"}'
38
- - ps: New-WinrmUserCertificateMapping $env:user_cert_thumb
39
- - ps: $env:PATH="C:\Ruby$env:ruby_version\bin;$env:PATH"
40
- - ps: Write-Host $env:PATH
41
- - ps: ruby --version
42
- - ps: gem --version
43
- - ps: bundler --version
44
-
45
- build_script:
46
- - bundle install || bundle install || bundle install
47
-
48
- test_script:
49
- - SET SPEC_OPTS=--format progress
50
- - bundle exec rake integration
@@ -1,133 +0,0 @@
1
- # WinRM Gem Changelog
2
-
3
- # 2.3.0
4
- - Fixes rwinrm command
5
- - Use pack('S*') instead of .chr so full utf-16 can be supported
6
- - Omi Server compatibility fixes
7
-
8
- # 2.2.3
9
- - Revert change made in 2.2.2 that retries network errors in Close and cleanup
10
-
11
- # 2.2.2
12
- - Update PSRP buffer size
13
- - Close and cleanup should retry on error and never raise net errors
14
-
15
- # 2.2.1
16
- - Ignore error 2150858843 during shell closing
17
-
18
- # 2.2.0
19
- - Allow run_wql to accept custom namespace
20
- - Allow enumeration of WQL result sets
21
-
22
- # 2.1.3
23
- - Ignore WSManFault 2150858843 during command cleanup
24
- - Uns `Integer` in place of `Fixnum` to remove deprecation warnings in ruby 2.4
25
-
26
- # 2.1.2
27
- - Fix kerberos transport
28
-
29
- # 2.1.1
30
- - Fix rendering of powershell output with non ascii UTF-8 characters emitted from executables
31
-
32
- # 2.1.0
33
- - Expose shell options when creating a winrm shell
34
-
35
- # 2.0.3
36
- - Do not swallow exit codes from executables
37
-
38
- # 2.0.2
39
- - Constrain to rubyntlm `>= 0.6.1` to avoid mutating frozen strings
40
- - When using certificate authentication, do not validate presense of user and password
41
- - Handle failed `PIPELINE_STATE` messages so that `throw` errors are not swallowed
42
-
43
- # 2.0.1
44
- - Fixed Powershell shell leakage when not explicitly closed
45
- - Fixed cmd commands with responses that extend beyond one stream
46
-
47
- # 2.0.0
48
- - Cleaned up API and implemented Powershell Remoting Protocol (PSRP) for all powershell calls.
49
-
50
- # 1.8.1
51
- - Http receive timeout should always be equal to 10 seconds greater than the winrm operation timeout and not default to one hour
52
-
53
- # 1.8.0
54
- - Add certificate authentication
55
-
56
- # 1.7.3
57
- - Open a new shell if the current shell has been deleted
58
-
59
- # 1.7.2
60
- - Fix regression where BOM appears in 2008R2 output and is not stripped
61
-
62
- # 1.7.1
63
- - Fix OS version comparisons for Windows 10 using `Gem::Version` instead of strings
64
-
65
- # 1.7.0
66
- - Bump rubyntlm gem to 0.6.0 to get channel binding support for HTTPS fixing connections to endoints with `CbtHardeningLevel` set to `Strict`
67
- - Fix for parsing binary data in command output
68
-
69
- # 1.6.1
70
- - Use codepage 437 by default on os versions older than Windows 7 and Windows Server 2008 R2
71
-
72
- # 1.6.0
73
- - Adding `:negotiate` transport providing NTLM/Negotiate encryption of WinRM requests and responses
74
- - Removed dependency on UUIDTools gem
75
- - Extending accepted error codes for retry behavior to include `Errno::ETIMEDOUT`
76
- - Correct deprecation warning for WinRMWebService.run_powershell_script
77
-
78
- # 1.5.0
79
- - Deprecating `WinRM::WinRMWebService` methods `cmd`, `run_cmd`, `powershell`, and `run_powershell_script` in favor of the `run_cmd` and `run_powershell_script` methods of the `WinRM::CommandExecutor` class. The `CommandExecutor` allows multiple commands to be run from the same WinRM shell providing a significant performance improvement when issuing multiple calls.
80
- - Added an `:ssl_peer_fingerprint` option to be used instead of `:no_ssl_peer_verification` and allows a specific certificate to be verified.
81
- - Opening a winrm shell is retriable with configurable delay and retry limit.
82
- - Logging apends to `stdout` by default and can be replaced with a logger from a consuming application.
83
-
84
- # 1.4.0
85
- - Added WinRM::Version so the gem version is available at runtime for consumers.
86
-
87
- # 1.3.6
88
- - Remove BOM from response (Issue #159) added by Windows 2008R2
89
-
90
- # 1.3.5
91
- - Widen logging version constraints to include 2.0
92
- - Use codepage 65001 (UTF-8)
93
-
94
- # 1.3.4
95
- - Relaxed version pins on dev dependencies
96
-
97
- # 1.3.3
98
- - Fixed issue 133, rwinrm allow hostnames with dashes
99
- - Use duck typing for powershell script read
100
-
101
- # 1.3.2
102
- - Add spec.license attribute to gemspec
103
- - Bump RSpec dependency 3.0 to 3.2
104
-
105
- # 1.3.1
106
- - Fixed issue 129, long running commands could cause a stackoverflow exception
107
- - Fixed use of sub! in run_command results in spurious capture/replacement of \& sequences
108
- - Fixed issue 124 rwinrm won't take '.' characters in username
109
-
110
- # 1.3.0
111
- - Fixed multiple issues with WinRMHTTPTransportError incorrectly being raised
112
- - Refactored and added more unit and integration tests
113
- - Added ability to write to stdin
114
- - Added rwinrm binary to launch remote shell
115
- - Added WINRM_LOG env var to set log level
116
- - Retry Kerberos auth once if 401 response is received
117
- - Remove Savon dependency and use newer versions of underlying dependencies
118
- - Remove Nokogiri dependency and replace with native Ruby XML
119
- - Fixed issue 85, ensure WQL response is not nil
120
- - All WinRM library errors inherit from base class WinRMError
121
- - Integrations tests should now pass on Windows Server 2008+
122
- - Bump Ruby NTLM gem version dependency
123
- - HTTP client receive timeout is now configurable via set_timeout
124
- - Added backwards compatible Output class to make it easier to collect output
125
- - Bumped gssapi dependency from 1.0 to 1.2 and fixed issue 54
126
- - Added Rubocop to build
127
- - Fixed error when commands contain a newline character
128
-
129
- # 1.2.0
130
- - Allow user to disable SSL peer ceritifcate validation #44
131
- - Allow commands with "'" chars on Ruby 2.x, fixes #69
132
- - Fixed uninitialized constant Module::Kconv in Ruby 2.x, fixes #65
133
- - Commands with non-ASCII chars should work, #70