winrm-fs 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +0 -7
- data/.travis.yml +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/appveyor.yml +1 -1
- data/changelog.md +3 -0
- data/lib/winrm-fs/core/file_transporter.rb +2 -1
- data/lib/winrm-fs/file_manager.rb +2 -2
- data/spec/spec_helper.rb +0 -1
- data/winrm-fs.gemspec +5 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 906e09af384b4685d053fdd0654978757d26e3d2d281841706db04c78c44139c
|
4
|
+
data.tar.gz: d708a910d83ecfde7357a4ba9b42c138d375264c7ca126705fbfbacc5e7e842e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1ad3a5cf262cfe8ea47db2072600c328cb672816b122fe9340afacb364fefc620de0467d9d65d1bb1290ce215cbe521d74ba852307ea94edd7fa31765e11dab
|
7
|
+
data.tar.gz: 6cf1d092f268dc0d0afba76653e56df120938fde974a597ee1d930aa64bdc553bb9254e7a5f4f614d654255ce01acc2b53efd336a6ba5ea0ae78fe6f40fb49b3
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -34,13 +34,6 @@ Naming/HeredocDelimiterNaming:
|
|
34
34
|
- 'spec/matchers.rb'
|
35
35
|
- 'winrm-fs.gemspec'
|
36
36
|
|
37
|
-
# Offense count: 2
|
38
|
-
# Cop supports --auto-correct.
|
39
|
-
# Configuration parameters: AutoCorrect.
|
40
|
-
Performance/HashEachMethods:
|
41
|
-
Exclude:
|
42
|
-
- 'lib/winrm-fs/core/file_transporter.rb'
|
43
|
-
|
44
37
|
# Offense count: 1
|
45
38
|
# Configuration parameters: .
|
46
39
|
# SupportedStyles: annotated, template, unannotated
|
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.1
|
data/appveyor.yml
CHANGED
data/changelog.md
CHANGED
@@ -56,6 +56,7 @@ module WinRM
|
|
56
56
|
@shell = shell
|
57
57
|
@logger = shell.logger
|
58
58
|
@id_generator = opts.fetch(:id_generator) { -> { SecureRandom.uuid } }
|
59
|
+
Zip.unicode_names = true
|
59
60
|
end
|
60
61
|
|
61
62
|
# Uploads a collection of files and/or directories to the remote host.
|
@@ -432,7 +433,7 @@ module WinRM
|
|
432
433
|
# ClearScriptBlockCache to clear it.
|
433
434
|
$bindingFlags= [Reflection.BindingFlags] "NonPublic,Static"
|
434
435
|
$method = [scriptblock].GetMethod("ClearScriptBlockCache", $bindingFlags)
|
435
|
-
|
436
|
+
EOS
|
436
437
|
)
|
437
438
|
|
438
439
|
while input_io.read(read_size, buffer)
|
@@ -83,7 +83,7 @@ module WinRM
|
|
83
83
|
# 'C:/Windows/Temp'
|
84
84
|
# @return [String] Full path to the temp directory
|
85
85
|
def temp_dir
|
86
|
-
@
|
86
|
+
@temp_dir ||= begin
|
87
87
|
(@connection.shell(:powershell) { |e| e.run('$env:TEMP') }).stdout.chomp.tr('\\', '/')
|
88
88
|
end
|
89
89
|
end
|
@@ -116,7 +116,7 @@ module WinRM
|
|
116
116
|
private
|
117
117
|
|
118
118
|
def download_dir(remote_path, local_path, first)
|
119
|
-
local_path = File.join(local_path, File.basename(remote_path)) if first
|
119
|
+
local_path = File.join(local_path, File.basename(remote_path.to_s)) if first
|
120
120
|
FileUtils.mkdir_p(local_path) unless File.directory?(local_path)
|
121
121
|
command = "Get-ChildItem #{remote_path} | Select-Object Name"
|
122
122
|
@connection.shell(:powershell) { |e| e.run(command) }.stdout.strip.split(/\n/).drop(2).each do |file|
|
data/spec/spec_helper.rb
CHANGED
data/winrm-fs.gemspec
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
|
-
version = File.read(File.expand_path('
|
3
|
+
version = File.read(File.expand_path('VERSION', __dir__)).strip
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.name = 'winrm-fs'
|
8
8
|
s.version = version
|
9
|
-
s.date
|
9
|
+
s.date = Date.today.to_s
|
10
10
|
|
11
11
|
s.author = ['Shawn Neal', 'Matt Wrock']
|
12
12
|
s.email = ['sneal@sneal.net', 'matt@mattwrock.com']
|
13
13
|
s.homepage = 'http://github.com/WinRb/winrm-fs'
|
14
14
|
|
15
15
|
s.summary = 'WinRM File System'
|
16
|
-
s.description
|
16
|
+
s.description = <<-EOF
|
17
17
|
Ruby library for file system operations via Windows Remote Management
|
18
18
|
EOF
|
19
19
|
|
20
20
|
s.files = `git ls-files`.split(/\n/)
|
21
21
|
s.require_path = 'lib'
|
22
|
-
s.rdoc_options
|
22
|
+
s.rdoc_options = %w[-x test/ -x examples/]
|
23
23
|
s.extra_rdoc_files = %w[README.md LICENSE]
|
24
24
|
|
25
25
|
s.bindir = 'bin'
|
26
26
|
s.executables = ['rwinrmcp']
|
27
|
-
s.required_ruby_version
|
27
|
+
s.required_ruby_version = '>= 2.2.0'
|
28
28
|
s.add_runtime_dependency 'erubis', '~> 2.7'
|
29
29
|
s.add_runtime_dependency 'logging', ['>= 1.6.1', '< 3.0']
|
30
30
|
s.add_runtime_dependency 'rubyzip', '~> 1.1'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: winrm-fs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Neal
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erubis
|
@@ -189,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
189
|
requirements:
|
190
190
|
- - ">="
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version: 2.
|
192
|
+
version: 2.2.0
|
193
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
194
|
requirements:
|
195
195
|
- - ">="
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
199
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.6
|
200
|
+
rubygems_version: 2.7.6
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: WinRM File System
|