Skip to content

Commit 49ed3a6

Browse files
authored
Jfm/winrm fs update 2 (#6)
* Updating chef-winrm-fs Signed-off-by: John McCrae <john.mccrae@progress.com>
1 parent d6ffa80 commit 49ed3a6

22 files changed

+20
-20
lines changed

Diff for: .rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ AllCops:
44

55
Naming/FileName:
66
Exclude:
7-
- 'lib/winrm-fs.rb'
7+
- 'lib/chef-winrm-fs.rb'
88

99
Style/Encoding:
1010
Enabled: true

Diff for: .rubocop_todo.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Metrics/PerceivedComplexity:
3434
Naming/HeredocDelimiterNaming:
3535
Exclude:
3636
- 'spec/matchers.rb'
37-
- 'winrm-fs.gemspec'
37+
- 'chef-winrm-fs.gemspec'
3838

3939
# Offense count: 2
4040
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
@@ -47,7 +47,7 @@ Style/FormatStringToken:
4747
# Configuration parameters: AllowedReceivers.
4848
Style/HashEachMethods:
4949
Exclude:
50-
- 'lib/winrm-fs/core/file_transporter.rb'
50+
- 'lib/chef-winrm-fs/core/file_transporter.rb'
5151

5252
# Offense count: 5
5353
# This cop supports unsafe auto-correction (--auto-correct-all).
@@ -56,21 +56,21 @@ Style/HashEachMethods:
5656
Style/NumericPredicate:
5757
Exclude:
5858
- 'spec/**/*'
59-
- 'lib/winrm-fs/core/file_transporter.rb'
60-
- 'lib/winrm-fs/file_manager.rb'
59+
- 'lib/chef-winrm-fs/core/file_transporter.rb'
60+
- 'lib/chef-winrm-fs/file_manager.rb'
6161

6262
# Offense count: 1
6363
# Configuration parameters: AllowedMethods.
6464
# AllowedMethods: respond_to_missing?
6565
Style/OptionalBooleanParameter:
6666
Exclude:
67-
- 'lib/winrm-fs/file_manager.rb'
67+
- 'lib/chef-winrm-fs/file_manager.rb'
6868

6969
# Offense count: 1
7070
# This cop supports safe auto-correction (--auto-correct).
7171
Style/RedundantBegin:
7272
Exclude:
73-
- 'lib/winrm-fs/file_manager.rb'
73+
- 'lib/chef-winrm-fs/file_manager.rb'
7474

7575
# Offense count: 4
7676
# This cop supports unsafe auto-correction (--auto-correct-all).

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Uploading files
77
Files may be copied from the local machine to the winrm endpoint. Individual files or directories, as well as arrays of files and directories may be specified. Data from a `StringIO` object may also be uploaded to a remote file.
88
```ruby
9-
require 'winrm-fs'
9+
require 'chef-winrm-fs'
1010

1111
connection = WinRM::Connection.new(...
1212
file_manager = WinRM::FS::FileManager.new(connection)

Diff for: VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.6
1+
1.3.7

Diff for: bin/rwinrmcp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$LOAD_PATH.push File.expand_path('../../lib', __FILE__)
2323

2424
require 'io/console'
25-
require 'winrm-fs'
25+
require 'chef-winrm-fs'
2626

2727
def help_msg
2828
puts 'Usage: rwinrmcp sourcefile user@host:directory/targetfile'

Diff for: winrm-fs.gemspec renamed to chef-winrm-fs.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
2828
s.bindir = 'bin'
2929
s.executables = ['rwinrmcp']
3030
s.required_ruby_version = '>= 3.0'
31-
s.add_runtime_dependency 'chef-winrm', '>= 2.3.10'
31+
s.add_runtime_dependency 'chef-winrm', '>= 2.3.11'
3232
s.add_runtime_dependency 'erubi', '>= 1.7'
3333
s.add_runtime_dependency 'logging', ['>= 1.6.1', '< 3.0']
3434
s.add_runtime_dependency 'rubyzip', '~> 2.0'

Diff for: lib/winrm-fs.rb renamed to lib/chef-winrm-fs.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
require 'winrm' unless defined?(WinRM::Connection)
18+
require 'chef-winrm' unless defined?(WinRM::Connection)
1919
require 'logger'
2020
require 'pathname' unless defined?(Pathname)
21-
require_relative 'winrm-fs/exceptions'
22-
require_relative 'winrm-fs/file_manager'
21+
require_relative 'chef-winrm-fs/exceptions'
22+
require_relative 'chef-winrm-fs/file_manager'
2323

2424
module WinRM
2525
# WinRM File System

Diff for: lib/winrm-fs/core/file_transporter.rb renamed to lib/chef-winrm-fs/core/file_transporter.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
require 'securerandom' unless defined?(SecureRandom)
2424
require 'stringio' unless defined?(StringIO)
2525

26-
require 'winrm/exceptions'
27-
require 'winrm-fs/core/tmp_zip'
26+
require 'chef-winrm/exceptions'
27+
require 'chef-winrm-fs/core/tmp_zip'
2828

2929
module WinRM
3030
module FS
File renamed without changes.
File renamed without changes.

Diff for: lib/winrm-fs/file_manager.rb renamed to lib/chef-winrm-fs/file_manager.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
require 'winrm' unless defined?(WinRM::Connection)
18+
require 'chef-winrm' unless defined?(WinRM::Connection)
1919
require_relative 'scripts/scripts'
2020
require_relative 'core/file_transporter'
2121

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: spec/integration/tmp_zip_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require_relative '../../lib/winrm-fs/core/tmp_zip'
3+
require_relative '../../lib/chef-winrm-fs/core/tmp_zip'
44

55
describe WinRM::FS::Core::TmpZip do
66
let(:winrm_fs_dir) { File.expand_path('../../lib/winrm-fs', File.dirname(__FILE__)) }

Diff for: spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'rubygems' unless defined?(Gem)
44
require 'bundler/setup'
5-
require 'winrm-fs'
5+
require 'chef-winrm-fs'
66
require 'json' unless defined?(JSON)
77
require_relative 'matchers'
88

Diff for: spec/unit/tmp_zip_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
1919

20-
require 'winrm-fs/core/tmp_zip'
20+
require 'chef-winrm-fs/core/tmp_zip'
2121

2222
describe WinRM::FS::Core::TmpZip do
2323
let(:src_dir) do

0 commit comments

Comments
 (0)