r-train 0.11.1 → 0.11.2

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
2
  SHA1:
3
- metadata.gz: 1355c07d0a3f0d3a2a66a77f292a589ffe6226f4
4
- data.tar.gz: 463eca86d15a4561cd2dea687eddb9a4a0f75358
3
+ metadata.gz: fea828c9a4659f824ffd3f156f7f2445743202aa
4
+ data.tar.gz: 902f6a222d4df27318cee696098a2cba59e142c6
5
5
  SHA512:
6
- metadata.gz: 8e82c2c66a620b6b89b31fbc78e5c0ada0456f70894aaa886fa3056851c4fa5e2efcc518cc71e8e7563fdc116983d844d7213c383a5a4a763e30a5a8605d39d5
7
- data.tar.gz: f4a3e253b38d9d7985311fd9ab30054dde379933289a608e9fad5e95bc95d284d2fc470b3482f4ad9dfa1825d815f5062cfb154eeab3daf3f221be695795b90c
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.1](https://github.com/chef/train/tree/0.11.1) (2016-04-28)
4
- [Full Changelog](https://github.com/chef/train/compare/v0.11.0...0.11.1)
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
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = '0.11.1'.freeze
6
+ VERSION = '0.11.2'.freeze
7
7
  end
@@ -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', false).path.must_equal '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', false).basename.must_equal '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', false)
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', false).content.must_equal out
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, false)
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.1
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-28 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json