STemp - Secure tempfile extension for Ruby

Pure Ruby tempfile implementations appear to suffer from well-known race conditions. The 'mkstemp' family of functions now popular on Linux & *BSD attempt to work around these issues. This module makes them available to Ruby programmers on platforms where they are present.

Note that you should set your umask appropriately when using this library: not all implementations of these functions use a reasonable file creation mask by default.

Author

Cian Synnott <cian@nospam@gmail.com>

Copyright

Copyright © 2006 Cian Synnott

License

MIT License

Copyright © 2006 Cian Synnott

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

$Id: README 6 2006-11-15 18:25:26Z cian $