From: "ara.t.howard" Date: 2011-01-02T02:24:38+09:00 Subject: [ANN] tmpdir_block-1.0.0 ------=_Part_252_27872021.1293902675607 Content-Type: multipart/alternative; boundary="----=_Part_253_25192485.1293902675608" ------=_Part_253_25192485.1293902675608 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NAME tmpdir_block INSTALL gem install tmpdir_block DESCRIPTION extends ruby's built-in Dir.tmpdir to accept a block. iff a block is given a tmp directory will be created an the calling process chdir'd into it before the block is called. the tmpdirs are automatically cleaned up unless a 'turd' option is given. USAGE require 'tmpdir_block' Dir.tmpdir do puts 'this code is called in a freshly created tmpdir...' p Dir.pwd end enjoy! ------=_Part_253_25192485.1293902675608 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
NAME
  tmpdir_block

INSTALL
  gem install tmpdir_block

DESCRIPTION
  extends ruby's built-in Dir.tmpdir to accept a block.  iff a block is given
  a tmp directory will be created an the calling process chdir'd into it
  before the block is called.  the tmpdirs are automatically cleaned up unless
  a 'turd' option is given.

USAGE
  require 'tmpdir_block'

  Dir.tmpdir do
    puts 'this code is called in a freshly created tmpdir...'

    p Dir.pwd
  end




enjoy!
------=_Part_253_25192485.1293902675608-- ------=_Part_252_27872021.1293902675607--