winrm-elevated 1.2.3 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee0adbdb22c257558248a863ab41505ef63bbe664150084be3cd57ecc56eef3e
4
- data.tar.gz: d3442d4883f6617827977d6c2538f8d4961a1bf45de3e45be4c249e34ec548c3
3
+ metadata.gz: b9b860bb19b1ab0642ba1e7316354c8d5513bb06e458db4bf787069c3af76af6
4
+ data.tar.gz: 9f7842be3d656b15bce6e832d4bed7aaec1020b3617f358a3a6e8e2a12c4eb9b
5
5
  SHA512:
6
- metadata.gz: 439dfd36cc9777886088dccb8172885844f319f3e808fb951b2eac31e115367e500f97b9d6fc2d0006588a7c1a8bedbb034d8af1678bc6d39d10647c6db2a958
7
- data.tar.gz: 63935500fcb295b1359c2222cb1860788fbb2f7859c2f303c8928b61b478197c72e4fa2163070873e333e45d822a7164ea365947cdb5b7c3a6ca117ff20bdbc5
6
+ metadata.gz: 9f6f0631ab3eae3fccdac358fbd3c79fc44bd8cd607cfa5804128ce3e7d7426472ea3d8219168ba5387423d348a9a9887339f6febbab0a8d24571ac17b258f10
7
+ data.tar.gz: 180e9cca1d9130641782567bc984817fe30cd47c695d9582ba5a3d38203d670f73ac0913bfa3a8ee8020870b812d352b9952f466b4d5187fcdcb2f7d0ba27217
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Runs PowerShell commands as elevated over Windows Remote Management (WinRM) via a scheduled task
2
+ [![CI](https://github.com/WinRb/winrm-elevated/actions/workflows/ci.yml/badge.svg)](https://github.com/WinRb/winrm-elevated/actions/workflows/ci.yml)
2
3
  [![Gem Version](https://badge.fury.io/rb/winrm-elevated.svg)](http://badge.fury.io/rb/winrm-elevated)
3
4
 
4
5
  This gem allows you to break out of the magical WinRM constraints thus allowing to reach out to network shares and even install Windows updates, .NET, SQL Server etc.
@@ -71,7 +72,7 @@ first.
71
72
  3. Run the unit and integration tests (bundle exec rake integration)
72
73
  4. Commit your changes (git commit -am "Added a sweet feature")
73
74
  5. Push to the branch (git push origin my_feature_branch)
74
- 6. Create a pull requst from your branch into master (Please be sure to provide enough detail for us to cipher what this change is doing)
75
+ 6. Create a pull request from your branch into main (Please be sure to provide enough detail for us to cipher what this change is doing)
75
76
 
76
77
  ### Running the tests
77
78
 
@@ -87,7 +88,7 @@ Once you have the dependencies, you can run the unit tests with `rake`:
87
88
  $ bundle exec rake spec
88
89
  ```
89
90
 
90
- To run the integration tests you will need a Windows box with the WinRM service properly configured. Its easiest to use the Vagrant Windows box in the Vagrantilfe of this repo.
91
+ To run the integration tests you will need a Windows box with the WinRM service properly configured.
91
92
 
92
93
  1. Create a Windows VM with WinRM configured (see above).
93
94
  2. Copy the config-example.yml to config.yml - edit this file with your WinRM connection details.
@@ -13,7 +13,7 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- require 'erubi'
16
+ require 'erb'
17
17
  require 'winrm' unless defined?(WinRM::Connection)
18
18
  require 'winrm-fs'
19
19
  require 'securerandom' unless defined?(SecureRandom)
@@ -96,7 +96,7 @@ module WinRM
96
96
  b = binding
97
97
  locals = context.collect { |k, _| "#{k} = context[#{k.inspect}]; " }
98
98
  b.eval(locals.join)
99
- b.eval(Erubi::Engine.new(elevated_shell_script_content).src)
99
+ ERB.new(elevated_shell_script_content).result(b)
100
100
  end
101
101
  end
102
102
  end
metadata CHANGED
@@ -1,29 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winrm-elevated
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Neal
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2020-11-11 00:00:00.000000000 Z
10
+ date: 2026-09-15 00:00:00.000000000 Z
12
11
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: erubi
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.8'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.8'
27
12
  - !ruby/object:Gem::Dependency
28
13
  name: winrm
29
14
  requirement: !ruby/object:Gem::Requirement
@@ -72,6 +57,20 @@ dependencies:
72
57
  - - "<"
73
58
  - !ruby/object:Gem::Version
74
59
  version: '13'
60
+ - !ruby/object:Gem::Dependency
61
+ name: rexml
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
75
74
  - !ruby/object:Gem::Dependency
76
75
  name: rspec
77
76
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +91,14 @@ dependencies:
92
91
  requirements:
93
92
  - - "~>"
94
93
  - !ruby/object:Gem::Version
95
- version: 0.51.0
94
+ version: 1.26.0
96
95
  type: :development
97
96
  prerelease: false
98
97
  version_requirements: !ruby/object:Gem::Requirement
99
98
  requirements:
100
99
  - - "~>"
101
100
  - !ruby/object:Gem::Version
102
- version: 0.51.0
101
+ version: 1.26.0
103
102
  description: Ruby library for running commands via WinRM as elevated through a scheduled
104
103
  task
105
104
  email:
@@ -107,8 +106,8 @@ email:
107
106
  executables: []
108
107
  extensions: []
109
108
  extra_rdoc_files:
110
- - README.md
111
109
  - LICENSE
110
+ - README.md
112
111
  files:
113
112
  - LICENSE
114
113
  - README.md
@@ -119,7 +118,6 @@ homepage: https://github.com/WinRb/winrm-elevated
119
118
  licenses:
120
119
  - Apache-2.0
121
120
  metadata: {}
122
- post_install_message:
123
121
  rdoc_options: []
124
122
  require_paths:
125
123
  - lib
@@ -127,15 +125,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
125
  requirements:
128
126
  - - ">="
129
127
  - !ruby/object:Gem::Version
130
- version: 2.3.0
128
+ version: 2.5.0
131
129
  required_rubygems_version: !ruby/object:Gem::Requirement
132
130
  requirements:
133
131
  - - ">="
134
132
  - !ruby/object:Gem::Version
135
133
  version: '0'
136
134
  requirements: []
137
- rubygems_version: 3.1.2
138
- signing_key:
135
+ rubygems_version: 3.6.9
139
136
  specification_version: 4
140
137
  summary: Ruby library for running commands as elevated
141
138
  test_files: []