decimate 0.0.4 → 0.0.5

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.
@@ -1,3 +1,3 @@
1
1
  module Decimate
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -63,7 +63,7 @@ describe Decimate do
63
63
  end
64
64
 
65
65
  it 'should securely delete the given file' do
66
- Open3.should_receive(:capture3).with("shred -uv #{file}").and_return([stdout,"",nil])
66
+ Open3.should_receive(:capture3).with("shred -uv #{File.expand_path(file)}").and_return([stdout,"",nil])
67
67
  Decimate.file!(file).should == stdout
68
68
  end
69
69
 
@@ -84,7 +84,7 @@ describe Decimate do
84
84
  end
85
85
 
86
86
  it 'should securely delete all files under the given file' do
87
- Open3.should_receive(:capture3).with("find #{dir} -type f -exec shred -uv {} +")
87
+ Open3.should_receive(:capture3).with("find #{File.expand_path(dir)} -type f -exec shred -uv {} +")
88
88
  Decimate.dir! dir
89
89
  end
90
90
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decimate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: