r-train 0.11.1 → 0.11.2
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 +4 -4
- data/CHANGELOG.md +9 -2
- data/lib/train/extras/file_windows.rb +1 -1
- data/lib/train/version.rb +1 -1
- data/test/unit/extras/windows_file_test.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fea828c9a4659f824ffd3f156f7f2445743202aa
|
4
|
+
data.tar.gz: 902f6a222d4df27318cee696098a2cba59e142c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e05a66c60a4d3777b1743df52ce92564810d779a3e1f9ecedf4ace1b16337b1ddf9ff5d848893c523e9e762845a2d050468c938e778f49c9618852640f89d75
|
7
|
+
data.tar.gz: 3d58d092f13a565cd1d6a56b4b7dcf979b22e592596dd1c1d9f7a3c968a4bb0694991ffebdaec7b9752bff23d46ee8ee03f8cdfbae1afe436e37a35957014a49
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [0.11.
|
4
|
-
[Full Changelog](https://github.com/chef/train/compare/v0.11.
|
3
|
+
## [0.11.2](https://github.com/chef/train/tree/0.11.2) (2016-04-29)
|
4
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.11.1...0.11.2)
|
5
|
+
|
6
|
+
**Fixed bugs:**
|
7
|
+
|
8
|
+
- bugfix: windows file failed to initialize with new symlink handler [\#96](https://github.com/chef/train/pull/96) ([arlimus](https://github.com/arlimus))
|
9
|
+
|
10
|
+
## [v0.11.1](https://github.com/chef/train/tree/v0.11.1) (2016-04-28)
|
11
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.11.0...v0.11.1)
|
5
12
|
|
6
13
|
**Fixed bugs:**
|
7
14
|
|
@@ -11,7 +11,7 @@ require 'train/extras/stat'
|
|
11
11
|
module Train::Extras
|
12
12
|
class WindowsFile < FileCommon
|
13
13
|
attr_reader :path
|
14
|
-
def initialize(backend, path, follow_symlink)
|
14
|
+
def initialize(backend, path, follow_symlink = false)
|
15
15
|
super(backend, path, follow_symlink)
|
16
16
|
@spath = sanitize_filename(@path)
|
17
17
|
end
|
data/lib/train/version.rb
CHANGED
@@ -12,15 +12,15 @@ describe 'file common' do
|
|
12
12
|
}
|
13
13
|
|
14
14
|
it 'provides the full path' do
|
15
|
-
cls.new(backend, 'C:\dir\file'
|
15
|
+
cls.new(backend, 'C:\dir\file').path.must_equal 'C:\dir\file'
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'provides the basename to a unix path' do
|
19
|
-
cls.new(backend, 'C:\dir\file'
|
19
|
+
cls.new(backend, 'C:\dir\file').basename.must_equal 'file'
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'provides the full path with whitespace' do
|
23
|
-
wf = cls.new(backend, 'C:\Program Files\file name'
|
23
|
+
wf = cls.new(backend, 'C:\Program Files\file name')
|
24
24
|
wf.path.must_equal 'C:\Program Files\file name'
|
25
25
|
wf.basename.must_equal 'file name'
|
26
26
|
end
|
@@ -28,11 +28,11 @@ describe 'file common' do
|
|
28
28
|
it 'reads file contents' do
|
29
29
|
out = rand.to_s
|
30
30
|
backend.mock_command('Get-Content("path") | Out-String', out)
|
31
|
-
cls.new(backend, 'path'
|
31
|
+
cls.new(backend, 'path').content.must_equal out
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'check escaping of invalid chars in path' do
|
35
|
-
wf = cls.new(nil, nil
|
35
|
+
wf = cls.new(nil, nil)
|
36
36
|
wf.sanitize_filename('c:/test') .must_equal 'c:/test'
|
37
37
|
wf.sanitize_filename('c:/test directory') .must_equal 'c:/test directory'
|
38
38
|
%w{ < > " * ?}.each do |char|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r-train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|