winrm 1.3.3 → 1.3.4
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 +4 -4
- data/Gemfile +6 -0
- data/VERSION +1 -1
- data/changelog.md +3 -0
- data/lib/winrm/http/transport.rb +3 -3
- data/lib/winrm/output.rb +3 -3
- data/spec/cmd_spec.rb +3 -2
- data/spec/powershell_spec.rb +2 -1
- data/winrm.gemspec +8 -8
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b66398128e9209e27212568ee72d9da49634c3b7
|
4
|
+
data.tar.gz: b2baaa5e7528c52858eadab3d6782e95a3c3764b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56128b5ab9e4265e9d681a9f32f7447c457402dc364c744bd404d3bf2cc42028aa6c79101eedc9353fb778346bf3f93531237b37b5c863bc225be11d0e155389
|
7
|
+
data.tar.gz: 63a79819c052238d461acda7d7ce05a92503c48508d902a8f6644df9041a3180ac9e1d30976587c040362d18f4b34d1ab418c5e59b35726632af4b199a1a6f89
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
data/changelog.md
CHANGED
data/lib/winrm/http/transport.rb
CHANGED
@@ -218,7 +218,7 @@ Content-Type: application/octet-stream\r
|
|
218
218
|
|
219
219
|
iov1 = GSSAPI::LibGSSAPI::GssIOVBufferDesc.new(
|
220
220
|
FFI::Pointer.new(iov.address + (GSSAPI::LibGSSAPI::GssIOVBufferDesc.size * 1)))
|
221
|
-
iov1[:type] =
|
221
|
+
iov1[:type] = (GSSAPI::LibGSSAPI::GSS_IOV_BUFFER_TYPE_DATA)
|
222
222
|
iov1[:buffer].value = str
|
223
223
|
|
224
224
|
iov2 = GSSAPI::LibGSSAPI::GssIOVBufferDesc.new(
|
@@ -258,11 +258,11 @@ Content-Type: application/octet-stream\r
|
|
258
258
|
|
259
259
|
iov1 = GSSAPI::LibGSSAPI::GssIOVBufferDesc.new(
|
260
260
|
FFI::Pointer.new(iov.address + (GSSAPI::LibGSSAPI::GssIOVBufferDesc.size * 1)))
|
261
|
-
iov1[:type] =
|
261
|
+
iov1[:type] = (GSSAPI::LibGSSAPI::GSS_IOV_BUFFER_TYPE_DATA)
|
262
262
|
|
263
263
|
iov2 = GSSAPI::LibGSSAPI::GssIOVBufferDesc.new(
|
264
264
|
FFI::Pointer.new(iov.address + (GSSAPI::LibGSSAPI::GssIOVBufferDesc.size * 2)))
|
265
|
-
iov2[:type] =
|
265
|
+
iov2[:type] = (GSSAPI::LibGSSAPI::GSS_IOV_BUFFER_TYPE_DATA)
|
266
266
|
|
267
267
|
str.force_encoding('BINARY')
|
268
268
|
str.sub!(/^.*Content-Type: application\/octet-stream\r\n(.*)--Encrypted.*$/m, '\1')
|
data/lib/winrm/output.rb
CHANGED
@@ -23,19 +23,19 @@ module WinRM
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def output
|
26
|
-
self[:data].flat_map do |
|
26
|
+
self[:data].flat_map do |line|
|
27
27
|
[line[:stdout], line[:stderr]]
|
28
28
|
end.compact.join
|
29
29
|
end
|
30
30
|
|
31
31
|
def stdout
|
32
|
-
self[:data].map do |
|
32
|
+
self[:data].map do |line|
|
33
33
|
line[:stdout]
|
34
34
|
end.compact.join
|
35
35
|
end
|
36
36
|
|
37
37
|
def stderr
|
38
|
-
self[:data].map do |
|
38
|
+
self[:data].map do |line|
|
39
39
|
line[:stderr]
|
40
40
|
end.compact.join
|
41
41
|
end
|
data/spec/cmd_spec.rb
CHANGED
@@ -45,7 +45,8 @@ describe 'winrm client cmd', integration: true do
|
|
45
45
|
|
46
46
|
script = 'echo Hello & echo , world! 1>&2'
|
47
47
|
|
48
|
-
@captured_stdout
|
48
|
+
@captured_stdout = ''
|
49
|
+
@captured_stderr = ''
|
49
50
|
@winrm.cmd(script) do |stdout, stderr|
|
50
51
|
@captured_stdout << stdout if stdout
|
51
52
|
@captured_stderr << stderr if stderr
|
@@ -91,7 +92,7 @@ describe 'winrm client cmd', integration: true do
|
|
91
92
|
describe 'ipconfig with a block' do
|
92
93
|
subject(:stdout) do
|
93
94
|
outvar = ''
|
94
|
-
@winrm.cmd('ipconfig') do |stdout, _stderr
|
95
|
+
@winrm.cmd('ipconfig') do |stdout, _stderr|
|
95
96
|
outvar << stdout
|
96
97
|
end
|
97
98
|
outvar
|
data/spec/powershell_spec.rb
CHANGED
@@ -62,7 +62,8 @@ describe 'winrm client powershell', integration: true do
|
|
62
62
|
$host.ui.WriteErrorLine(', world!')
|
63
63
|
eos
|
64
64
|
|
65
|
-
@captured_stdout
|
65
|
+
@captured_stdout = ''
|
66
|
+
@captured_stderr = ''
|
66
67
|
@winrm.powershell(script) do |stdout, stderr|
|
67
68
|
@captured_stdout << stdout if stdout
|
68
69
|
@captured_stderr << stderr if stderr
|
data/winrm.gemspec
CHANGED
@@ -7,26 +7,26 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.name = 'winrm'
|
9
9
|
s.version = version
|
10
|
-
s.date
|
10
|
+
s.date = Date.today.to_s
|
11
11
|
|
12
12
|
s.author = ['Dan Wanek', 'Paul Morton']
|
13
13
|
s.email = ['dan.wanek@gmail.com', 'paul@themortonsonline.com']
|
14
14
|
s.homepage = 'https://github.com/WinRb/WinRM'
|
15
15
|
|
16
16
|
s.summary = 'Ruby library for Windows Remote Management'
|
17
|
-
s.description
|
17
|
+
s.description = <<-EOF
|
18
18
|
Ruby library for Windows Remote Management
|
19
19
|
EOF
|
20
20
|
s.license = 'Apache-2.0'
|
21
21
|
|
22
22
|
s.files = `git ls-files`.split(/\n/)
|
23
23
|
s.require_path = 'lib'
|
24
|
-
s.rdoc_options
|
24
|
+
s.rdoc_options = %w(-x test/ -x examples/)
|
25
25
|
s.extra_rdoc_files = %w(README.md LICENSE)
|
26
26
|
|
27
27
|
s.bindir = 'bin'
|
28
|
-
s.executables
|
29
|
-
s.required_ruby_version
|
28
|
+
s.executables = ['rwinrm']
|
29
|
+
s.required_ruby_version = '>= 1.9.0'
|
30
30
|
s.add_runtime_dependency 'gssapi', '~> 1.2'
|
31
31
|
s.add_runtime_dependency 'httpclient', '~> 2.2', '>= 2.2.0.2'
|
32
32
|
s.add_runtime_dependency 'rubyntlm', '~> 0.4.0'
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.add_runtime_dependency 'nori', '~> 2.0'
|
36
36
|
s.add_runtime_dependency 'gyoku', '~> 1.0'
|
37
37
|
s.add_runtime_dependency 'builder', '>= 2.1.2'
|
38
|
-
s.add_development_dependency 'rspec', '~> 3.2
|
39
|
-
s.add_development_dependency 'rake', '~> 10.3
|
40
|
-
s.add_development_dependency 'rubocop', '~> 0.28
|
38
|
+
s.add_development_dependency 'rspec', '~> 3.2'
|
39
|
+
s.add_development_dependency 'rake', '~> 10.3'
|
40
|
+
s.add_development_dependency 'rubocop', '~> 0.28'
|
41
41
|
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: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Wanek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gssapi
|
@@ -141,42 +141,42 @@ dependencies:
|
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 3.2
|
144
|
+
version: '3.2'
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: 3.2
|
151
|
+
version: '3.2'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: rake
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 10.3
|
158
|
+
version: '10.3'
|
159
159
|
type: :development
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 10.3
|
165
|
+
version: '10.3'
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: rubocop
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.28
|
172
|
+
version: '0.28'
|
173
173
|
type: :development
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 0.28
|
179
|
+
version: '0.28'
|
180
180
|
description: |2
|
181
181
|
Ruby library for Windows Remote Management
|
182
182
|
email:
|