RubyGems Navigation menu

ion1-mischacks 0.0.5

Miscellaneous methods that may or may not be useful. sh:: Safely pass untrusted parameters to sh scripts. fork_and_check:: Run a block in a forked process and raise an exception if the process returns a non-zero value. do_and_exit, do_and_exit!:: Run a block. If the block does not run exit!, a successful exec or equivalent, run exit(1) or exit!(1) ourselves. Useful to make sure a forked block either runs a successful exec or dies. Any exceptions from the block are printed to standard error. overwrite:: Safely replace a file. Writes to a temporary file and then moves it over the old file. tempname_for:: Generates an unique temporary path based on a filename. The generated filename resides in the same directory as the original one. try_n_times:: Retries a block of code until it succeeds or a maximum number of attempts (default 10) is exceeded. Exception#to_formatted_string:: Returns a string that looks like how Ruby would dump an uncaught exception. IO#best_datasync:: Tries fdatasync, falling back to fsync, falling back to flush.

Gemfile:
= Copiar al portapapeles ¡Copiado!

instalar:
=

Versiones:

  1. 0.0.5 - August 11, 2014 (9,5 KB)
  2. 0.0.4 - August 11, 2014 (9,5 KB)
  3. 0.0.3 - August 11, 2014 (7,5 KB)
  4. 0.0.2 - August 11, 2014 (7 KB)
  5. 0.0.1 - August 11, 2014 (7 KB)

dependencias de Development (1):

hoe >= 2.3.1

Autores:

  • Johan Kiviniemi

SHA 256 checksum:

c12ccce62f22e1418945a70e2b38cb9e26b8a805f7aecb412a03ad5749ee66bf

Total de descargas 12.830

Para esta versión 3.299

Licencias:

N/A

Versión de Ruby requerida: >= 0

Enlace: