winrm 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,51 +1,51 @@
1
- # encoding: UTF-8
2
- describe 'winrm client primitives' do
3
- before(:all) do
4
- @winrm = winrm_connection
5
- end
6
-
7
- describe 'open and close shell', integration: true do
8
- it 'should #open_shell and #close_shell' do
9
- sid = @winrm.open_shell
10
- expect(sid).to be_a_uid
11
- expect(@winrm.close_shell(sid)).to be true
12
- end
13
-
14
- it 'should #run_command and #cleanup_command' do
15
- sid = @winrm.open_shell
16
-
17
- cmd_id = @winrm.run_command(sid, 'ipconfig', %w(/all))
18
- expect(sid).to be_a_uid
19
-
20
- expect(@winrm.cleanup_command(sid, cmd_id)).to be true
21
- @winrm.close_shell(sid)
22
- end
23
-
24
- it 'should #get_command_output' do
25
- sid = @winrm.open_shell
26
- cmd_id = @winrm.run_command(sid, 'ipconfig', %w(/all))
27
-
28
- output = @winrm.get_command_output(sid, cmd_id)
29
- expect(output).to have_exit_code 0
30
- expect(output).to have_stdout_match(/.+/)
31
- expect(output).to have_no_stderr
32
-
33
- @winrm.cleanup_command(sid, cmd_id)
34
- @winrm.close_shell(sid)
35
- end
36
-
37
- it 'should #get_command_output with a block' do
38
- sid = @winrm.open_shell
39
- cmd_id = @winrm.run_command(sid, 'ipconfig', %w(/all))
40
-
41
- outvar = ''
42
- @winrm.get_command_output(sid, cmd_id) do |stdout, _stderr|
43
- outvar << stdout
44
- end
45
- expect(outvar).to match(/Windows IP Configuration/)
46
-
47
- @winrm.cleanup_command(sid, cmd_id)
48
- @winrm.close_shell(sid)
49
- end
50
- end
51
- end
1
+ # encoding: UTF-8
2
+ describe 'winrm client primitives' do
3
+ before(:all) do
4
+ @winrm = winrm_connection
5
+ end
6
+
7
+ describe 'open and close shell', integration: true do
8
+ it 'should #open_shell and #close_shell' do
9
+ sid = @winrm.open_shell
10
+ expect(sid).to be_a_uid
11
+ expect(@winrm.close_shell(sid)).to be true
12
+ end
13
+
14
+ it 'should #run_command and #cleanup_command' do
15
+ sid = @winrm.open_shell
16
+
17
+ cmd_id = @winrm.run_command(sid, 'ipconfig', %w(/all))
18
+ expect(sid).to be_a_uid
19
+
20
+ expect(@winrm.cleanup_command(sid, cmd_id)).to be true
21
+ @winrm.close_shell(sid)
22
+ end
23
+
24
+ it 'should #get_command_output' do
25
+ sid = @winrm.open_shell
26
+ cmd_id = @winrm.run_command(sid, 'ipconfig', %w(/all))
27
+
28
+ output = @winrm.get_command_output(sid, cmd_id)
29
+ expect(output).to have_exit_code 0
30
+ expect(output).to have_stdout_match(/.+/)
31
+ expect(output).to have_no_stderr
32
+
33
+ @winrm.cleanup_command(sid, cmd_id)
34
+ @winrm.close_shell(sid)
35
+ end
36
+
37
+ it 'should #get_command_output with a block' do
38
+ sid = @winrm.open_shell
39
+ cmd_id = @winrm.run_command(sid, 'ipconfig', %w(/all))
40
+
41
+ outvar = ''
42
+ @winrm.get_command_output(sid, cmd_id) do |stdout, _stderr|
43
+ outvar << stdout
44
+ end
45
+ expect(outvar).to match(/Windows IP Configuration/)
46
+
47
+ @winrm.cleanup_command(sid, cmd_id)
48
+ @winrm.close_shell(sid)
49
+ end
50
+ end
51
+ end
@@ -1,14 +1,14 @@
1
- # encoding: UTF-8
2
- describe 'winrm client wql', integration: true do
3
- before(:all) do
4
- @winrm = winrm_connection
5
- end
6
-
7
- it 'should query Win32_OperatingSystem' do
8
- output = @winrm.run_wql('select * from Win32_OperatingSystem')
9
- expect(output).to_not be_empty
10
- output_caption = output[:win32_operating_system][0][:caption]
11
- expect(output_caption).to include('Microsoft')
12
- expect(output_caption).to include('Windows')
13
- end
14
- end
1
+ # encoding: UTF-8
2
+ describe 'winrm client wql', integration: true do
3
+ before(:all) do
4
+ @winrm = winrm_connection
5
+ end
6
+
7
+ it 'should query Win32_OperatingSystem' do
8
+ output = @winrm.run_wql('select * from Win32_OperatingSystem')
9
+ expect(output).to_not be_empty
10
+ output_caption = output[:win32_operating_system][0][:caption]
11
+ expect(output_caption).to include('Microsoft')
12
+ expect(output_caption).to include('Windows')
13
+ end
14
+ end
@@ -1,41 +1,41 @@
1
- # encoding: UTF-8
2
- require 'date'
3
-
4
- version = File.read(File.expand_path('../VERSION', __FILE__)).strip
5
-
6
- Gem::Specification.new do |s|
7
- s.platform = Gem::Platform::RUBY
8
- s.name = 'winrm'
9
- s.version = version
10
- s.date = Date.today.to_s
11
-
12
- s.author = ['Dan Wanek', 'Paul Morton']
13
- s.email = ['dan.wanek@gmail.com', 'paul@themortonsonline.com']
14
- s.homepage = 'https://github.com/WinRb/WinRM'
15
-
16
- s.summary = 'Ruby library for Windows Remote Management'
17
- s.description = <<-EOF
18
- Ruby library for Windows Remote Management
19
- EOF
20
- s.license = 'Apache-2.0'
21
-
22
- s.files = `git ls-files`.split(/\n/)
23
- s.require_path = 'lib'
24
- s.rdoc_options = %w(-x test/ -x examples/)
25
- s.extra_rdoc_files = %w(README.md LICENSE)
26
-
27
- s.bindir = 'bin'
28
- s.executables = ['rwinrm']
29
- s.required_ruby_version = '>= 1.9.0'
30
- s.add_runtime_dependency 'gssapi', '~> 1.2'
31
- s.add_runtime_dependency 'httpclient', '~> 2.2', '>= 2.2.0.2'
32
- s.add_runtime_dependency 'rubyntlm', '~> 0.4.0'
33
- s.add_runtime_dependency 'uuidtools', '~> 2.1.2'
34
- s.add_runtime_dependency 'logging', ['>= 1.6.1', '< 3.0']
35
- s.add_runtime_dependency 'nori', '~> 2.0'
36
- s.add_runtime_dependency 'gyoku', '~> 1.0'
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'
41
- end
1
+ # encoding: UTF-8
2
+ require 'date'
3
+
4
+ version = File.read(File.expand_path('../VERSION', __FILE__)).strip
5
+
6
+ Gem::Specification.new do |s|
7
+ s.platform = Gem::Platform::RUBY
8
+ s.name = 'winrm'
9
+ s.version = version
10
+ s.date = Date.today.to_s
11
+
12
+ s.author = ['Dan Wanek', 'Paul Morton']
13
+ s.email = ['dan.wanek@gmail.com', 'paul@themortonsonline.com']
14
+ s.homepage = 'https://github.com/WinRb/WinRM'
15
+
16
+ s.summary = 'Ruby library for Windows Remote Management'
17
+ s.description = <<-EOF
18
+ Ruby library for Windows Remote Management
19
+ EOF
20
+ s.license = 'Apache-2.0'
21
+
22
+ s.files = `git ls-files`.split(/\n/)
23
+ s.require_path = 'lib'
24
+ s.rdoc_options = %w(-x test/ -x examples/)
25
+ s.extra_rdoc_files = %w(README.md LICENSE)
26
+
27
+ s.bindir = 'bin'
28
+ s.executables = ['rwinrm']
29
+ s.required_ruby_version = '>= 1.9.0'
30
+ s.add_runtime_dependency 'gssapi', '~> 1.2'
31
+ s.add_runtime_dependency 'httpclient', '~> 2.2', '>= 2.2.0.2'
32
+ s.add_runtime_dependency 'rubyntlm', '~> 0.4.0'
33
+ s.add_runtime_dependency 'uuidtools', '~> 2.1.2'
34
+ s.add_runtime_dependency 'logging', ['>= 1.6.1', '< 3.0']
35
+ s.add_runtime_dependency 'nori', '~> 2.0'
36
+ s.add_runtime_dependency 'gyoku', '~> 1.0'
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'
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.5
4
+ version: 1.3.6
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-11-21 00:00:00.000000000 Z
12
+ date: 2015-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gssapi