Analysis updated 2026-08-08 · repo last pushed 2026-07-13
Create a temporary folder to stash uploaded files while processing them in a web app.
Use a scratch directory to download and extract data before moving it to a final location.
Generate short-lived working space in scripts that need a holding area for intermediate files.
| ruby/tmpdir | eclectic-coding/rails_health_checks | fastlane/taskqueue | |
|---|---|---|---|
| Stars | 14 | 14 | 13 |
| Language | Ruby | Ruby | Ruby |
| Last pushed | 2026-07-13 | — | 2019-07-29 |
| Maintenance | Active | — | Dormant |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Bundled with Ruby's standard library, no installation needed, just require 'tmpdir' in your script.
The ruby/tmpdir project is a small utility for Ruby applications that need to create temporary folders on the fly. It gives developers a straightforward way to generate a short-lived directory, use it for whatever they need, and have it automatically cleaned up afterward. The main feature is a function called Dir.mktmpdir that creates a fresh temporary directory with restricted permissions, only the person who created it can read or write to it. Developers can optionally customize the folder name by adding a prefix or suffix (like prefixing it with "foo" so the folder looks like "foo...random"). They can also choose where on the computer the folder gets created, defaulting to the system's standard temporary location but allowing alternatives like /var/tmp. The directory is designed to be used within a block of code and then removed automatically once that block finishes running. This tool would be used by Ruby developers building applications that need scratch space, for example, a web app that processes uploaded files might stash them in a temporary folder while working on them, or a script that downloads and extracts data might need a holding area. It is essentially infrastructure plumbing that handles the messy details of creating and tearing down temporary storage safely. One notable design choice is the emphasis on security. The folder is created with 0700 permissions, meaning only the owner can access it, and the README explicitly warns against changing this. This prevents a common pitfall where temporary files accidentally become visible to other users on the same machine, a real concern on shared servers. The project is maintained under the official Ruby organization, making it part of the broader Ruby ecosystem rather than an independent library.
A Ruby utility that creates secure temporary folders for your app to use as scratch space, then automatically deletes them when done. Part of the official Ruby ecosystem.
Mainly Ruby. The stack also includes Ruby.
Active — commit in last 30 days (last push 2026-07-13).
Distributed under Ruby's license, which allows free use including commercial purposes as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.