winrm 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/winrm/psrp/message_factory.rb +14 -2
- data/lib/winrm/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdf412e1bbb113065e156e779d1537a4c066967e7e77ec2381cb19b1ebd7446e
|
4
|
+
data.tar.gz: c37d236becf779ae79b4bf89bc6e83796da39d3a77350a68ebdf2a5c20f5957f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b553b8e5795af270a8c3d625869780bcce24af3a2df48c1aabe912be1f512e86dbabcce6c082d8ca3eb08ecb5c1f2629f8fa96f1c300ea1ad9e26ff201e3ebec
|
7
|
+
data.tar.gz: da51371955c3d4e49f4aa2d8698a4dd486ac1ef3673d4e73221b1a261c17e0a55268d4c644c5d7fc03a9462207aa3c352c10f9cc6f14e7d164b860573d1b2071
|
@@ -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 '
|
15
|
+
require 'erubi'
|
16
16
|
require_relative 'message'
|
17
17
|
|
18
18
|
module WinRM
|
@@ -66,7 +66,19 @@ module WinRM
|
|
66
66
|
"#{File.dirname(__FILE__)}/#{template}.xml.erb"
|
67
67
|
)
|
68
68
|
template = File.read(template_path)
|
69
|
-
|
69
|
+
case context
|
70
|
+
when Hash
|
71
|
+
b = binding
|
72
|
+
locals = context.collect { |k, _| "#{k} = context[#{k.inspect}]; " }
|
73
|
+
b.eval(locals.join)
|
74
|
+
when Binding
|
75
|
+
b = context
|
76
|
+
when NilClass
|
77
|
+
b = binding
|
78
|
+
else
|
79
|
+
raise ArgumentError
|
80
|
+
end
|
81
|
+
b.eval(Erubi::Engine.new(template).src)
|
70
82
|
end
|
71
83
|
end
|
72
84
|
end
|
data/lib/winrm/version.rb
CHANGED
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
|
+
version: 2.3.3
|
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-04
|
14
|
+
date: 2019-11-04 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:
|
31
|
+
name: erubi
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
34
|
- - "~>"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
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: '
|
43
|
+
version: '1.8'
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: gssapi
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|