lib/vfs/storages/local.rb in vfs-0.3.13 vs lib/vfs/storages/local.rb in vfs-0.3.14
- old
+ new
@@ -1,19 +1,14 @@
-warn 'remove trailing spaces'
require 'tempfile'
module Vfs
module Storages
class Local
class Writer
- def initialize out
- @out = out
- end
+ def initialize out; @out = out end
- def write data
- @out.write data
- end
+ def write data; @out.write data end
end
module LocalVfsHelper
DEFAULT_BUFFER = 1000 * 1024
@@ -131,10 +126,10 @@
# Other
#
def local?; true end
def tmp &block
- tmp_dir = "#{::Dir.tmpdir}/#{rand(10**3)}"
+ tmp_dir = "#{::Dir.tmpdir}/#{rand(10**6)}"
if block
begin
create_dir tmp_dir
block.call tmp_dir
ensure
\ No newline at end of file