winrm-s 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fe95dd37da3da6c1086e54af81ee41a014eee5e
4
- data.tar.gz: cb34e1952b1e46cb7ed05f06f1a48243792dd295
3
+ metadata.gz: 75dccd077fbd8acfe0ffffed3307456ccfc21377
4
+ data.tar.gz: 822adb188680aa6817cc4961f489fb7e04ce87cc
5
5
  SHA512:
6
- metadata.gz: b2cdbb900ec5b64f22972ccac8d95da645a9018854a2ab239f582e63192298f96705421d92d2b90af2a79242fe20bec05688d900cad067c64bd40df67955d774
7
- data.tar.gz: 38e93c9eb50579c9fb57dfdce072bf7064f5f226985fd733bd5a288ff612be7f77ed5ff1129143ca84db809a08cd55a3997f7d252bfb84d0a465f5ebdb0df6ab
6
+ metadata.gz: fea5977424fcfe8b8eec5bfba065e84f7f2f5cdbb98883327cff132f049aaaf0e8679243e348c61c71483a1d4610f12ae350c15717ad58def287a5ef67df3d1b
7
+ data.tar.gz: e634208bc2d2a68620e2c355e5b2949af1fe1fab2552883d715dffd92cbe0a00a29242d097b7f901aa464cedc4db00ef61ff0b5727f8ddfa74afd4dca1180b47
@@ -1,8 +1,11 @@
1
1
  # winrm-s Change Log
2
-
3
2
  Unreleased
4
3
  --------------
5
4
 
5
+ Release: 0.3.1
6
+ --------------
7
+ * [Issue #27](https://github.com/chef/winrm-s/pull/27): Fixes problem with AllowUnencrypted being true and using negotiate
8
+
6
9
  Release: 0.3.0
7
10
  --------------
8
11
  * [Issue #21](https://github.com/chef/winrm-s/issues/21): Bumps winrm dependency from 1.2 to 1.3.
@@ -17,6 +17,6 @@
17
17
  #
18
18
 
19
19
  module WinrmS
20
- VERSION = "0.3.0"
20
+ VERSION = "0.3.1"
21
21
  MAJOR, MINOR, TINY = VERSION.split('.')
22
22
  end
@@ -87,13 +87,18 @@ class HTTPClient
87
87
  decrypted_content = res.content
88
88
  @authenticator.each do |auth|
89
89
  next unless auth.set? # hasn't be set, don't use it
90
- decrypted_content = auth.decrypt_payload(res.content) if auth.respond_to?(:encrypted_channel?) and auth.encrypted_channel?
90
+ decrypted_content = auth.decrypt_payload(res.content) if auth.respond_to?(:encrypted_channel?) && auth.encrypted_channel? && encrypted_content?(res.content)
91
91
  end
92
92
  # update with decrypted content
93
93
  res.content.replace(decrypted_content) if res.content and !res.content.empty?
94
94
  end
95
95
  command
96
96
  end
97
+
98
+ private
99
+ def encrypted_content? content
100
+ content.start_with?('--Encrypted ')
101
+ end
97
102
  end
98
103
 
99
104
  class SSPINegotiateAuth
@@ -22,7 +22,7 @@ describe "Test if patch is applied on Platform" do
22
22
 
23
23
  describe 'Winrm cannot be patched for unix', :unix_only do
24
24
  it 'require winrm-s should raise exception' do
25
- expect{require 'winrm-s'}.to raise_exception
25
+ expect{require 'winrm-s'}.to raise_exception RuntimeError
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winrm-s
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
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-05-21 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: winrm
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-expectations
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec-mocks
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec_junit_formatter
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Gem that extends the functionality of the WinRM gem to support the Microsoft
@@ -92,9 +92,9 @@ extra_rdoc_files:
92
92
  - README.md
93
93
  - LICENSE
94
94
  files:
95
- - .gitignore
96
- - .rspec
97
- - .travis.yml
95
+ - ".gitignore"
96
+ - ".rspec"
97
+ - ".travis.yml"
98
98
  - CHANGELOG.md
99
99
  - CONTRIBUTING.md
100
100
  - Gemfile
@@ -121,17 +121,17 @@ require_paths:
121
121
  - lib
122
122
  required_ruby_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - '>='
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.0.14
134
+ rubygems_version: 2.4.4
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Gem that extends the functionality of the WinRM gem to support the Microsoft