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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f0f709ab1c583eaa7566b5adc461aaf46cf2b65e
4
- data.tar.gz: c8cdda9ef2983370cbc964dc9d89eddf348dbd22
2
+ SHA256:
3
+ metadata.gz: 906e09af384b4685d053fdd0654978757d26e3d2d281841706db04c78c44139c
4
+ data.tar.gz: d708a910d83ecfde7357a4ba9b42c138d375264c7ca126705fbfbacc5e7e842e
5
5
  SHA512:
6
- metadata.gz: b0d362238781bb50982b7b3f8947b754c3dde755fe4f727197579d943534c717db891b3a197150f2ad975661d12bfc8be66b2e6e9eee9f1395efa6e70cf15a39
7
- data.tar.gz: f5daea2da6036290bca6446936f6d79105578a8106746c809a3887725ba2d7171470451f5c7e0290a8ec4264f7f597af86e77dcb0b01697d697ca35dd433bcc9
6
+ metadata.gz: b1ad3a5cf262cfe8ea47db2072600c328cb672816b122fe9340afacb364fefc620de0467d9d65d1bb1290ce215cbe521d74ba852307ea94edd7fa31765e11dab
7
+ data.tar.gz: 6cf1d092f268dc0d0afba76653e56df120938fde974a597ee1d930aa64bdc553bb9254e7a5f4f614d654255ce01acc2b53efd336a6ba5ea0ae78fe6f40fb49b3
data/.rubocop.yml CHANGED
@@ -7,6 +7,9 @@ Naming/FileName:
7
7
  Style/Encoding:
8
8
  Enabled: true
9
9
 
10
+ Layout/EndOfLine:
11
+ Enabled: false
12
+
10
13
  Metrics/LineLength:
11
14
  Max: 120
12
15
 
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
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.0
3
+ - 2.2.0
4
4
  - 2.3.4
5
5
  - 2.4.1
6
6
 
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rspec/core/rake_task'
4
4
  require 'rubocop/rake_task'
5
5
 
6
6
  # Change to the directory of this file.
7
- Dir.chdir(File.expand_path('../', __FILE__))
7
+ Dir.chdir(File.expand_path(__dir__))
8
8
 
9
9
  # For gem creation and bundling
10
10
  require 'bundler/gem_tasks'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
data/appveyor.yml CHANGED
@@ -9,7 +9,7 @@ environment:
9
9
  winrm_password: Pass@word1
10
10
 
11
11
  matrix:
12
- - ruby_version: "21"
12
+ - ruby_version: "22"
13
13
  winrm_endpoint: http://localhost:5985/wsman
14
14
 
15
15
  clone_folder: c:\projects\winrm-fs
data/changelog.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # WinRM-fs Gem Changelog
2
+ # 1.2.1
3
+ - Correctly handle unicode filenames
4
+
2
5
  # 1.2.0
3
6
  - Add ability to download directories
4
7
 
@@ -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
- EOS
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
- @guest_temp ||= begin
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
@@ -9,7 +9,6 @@ module ConnectionHelper
9
9
  def winrm_connection
10
10
  WinRM::Connection.new(config)
11
11
  end
12
- # rubocop:enable AbcSize
13
12
 
14
13
  def config
15
14
  @config ||= begin
data/winrm-fs.gemspec CHANGED
@@ -1,30 +1,30 @@
1
1
  require 'date'
2
2
 
3
- version = File.read(File.expand_path('../VERSION', __FILE__)).strip
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 = Date.today.to_s
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 = <<-EOF
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 = %w[-x test/ -x examples/]
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 = '>= 2.1.0'
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.0
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-01-12 00:00:00.000000000 Z
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.1.0
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.11
200
+ rubygems_version: 2.7.6
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: WinRM File System