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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a061a4268806508794101cac5635f765ec8defa1d647296004d4b1607ec1b64c
4
- data.tar.gz: d575acfd046a94dda410222996a3dff67607060f1ff2369f3f58823881b6aeb6
3
+ metadata.gz: cdf412e1bbb113065e156e779d1537a4c066967e7e77ec2381cb19b1ebd7446e
4
+ data.tar.gz: c37d236becf779ae79b4bf89bc6e83796da39d3a77350a68ebdf2a5c20f5957f
5
5
  SHA512:
6
- metadata.gz: 461e7c9afd0256b3a4324f179fde3c34de3181af134ed036298abb8aa4e5cf9d1fd7d09bd924cb9cb7cc604a31f85f7d27fe10fcd999b66c2659883637ce846e
7
- data.tar.gz: 240f3d9a873e1b872dc58176e348476a98b95d41286933e6d3ec489621f4ab2ee6da1728a78e27ada7e4dc247dfc11a01c98fb1429f30f5f54a8f098c3b84914
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 'erubis'
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
- Erubis::Eruby.new(template).result(context)
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
@@ -1,5 +1,5 @@
1
1
  # WinRM module
2
2
  module WinRM
3
3
  # The version of the WinRM library
4
- VERSION = '2.3.2'.freeze
4
+ VERSION = '2.3.3'.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.2
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-24 00:00:00.000000000 Z
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: 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