https://github.com/ruby/timeout
Timeout provides a way to auto-terminate a potentially long-running operation if it hasn't finished in a fixed amount of time.
https://github.com/ruby/timeout
Keywords
ruby
Keywords from Contributors
rubygems repl webrick debugger bigdecimal debugging-tool documentation-tool strscan activerecord activejob
Last synced: about 2 hours ago
JSON representation
Repository metadata
Timeout provides a way to auto-terminate a potentially long-running operation if it hasn't finished in a fixed amount of time.
- Host: GitHub
- URL: https://github.com/ruby/timeout
- Owner: ruby
- License: other
- Created: 2019-08-06T03:47:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-02-09T03:11:29.000Z (22 days ago)
- Last Synced: 2026-02-14T02:34:32.070Z (18 days ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 204 KB
- Stars: 154
- Watchers: 34
- Forks: 31
- Open Issues: 2
- Releases: 13
-
Metadata Files:
- Readme: README.md
- License: COPYING
README.md
Timeout
Timeout provides a way to auto-terminate a potentially long-running
operation if it hasn't finished in a fixed amount of time.
Installation
Add this line to your application's Gemfile:
gem 'timeout'
And then execute:
$ bundle
Or install it yourself as:
$ gem install timeout
Usage
require 'timeout'
status = Timeout.timeout(5) {
# Something that should be interrupted if it takes more than 5 seconds...
}
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/timeout.
Owner metadata
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Release event: 5
- Delete event: 15
- Member event: 1
- Pull request event: 40
- Fork event: 3
- Issues event: 8
- Watch event: 4
- Issue comment event: 18
- Push event: 34
- Pull request review comment event: 13
- Pull request review event: 20
- Create event: 15
Last Year
- Release event: 3
- Delete event: 9
- Pull request event: 29
- Issues event: 5
- Watch event: 2
- Issue comment event: 8
- Push event: 23
- Pull request review event: 13
- Pull request review comment event: 7
- Create event: 8
Committers metadata
Last synced: 3 days ago
Total Commits: 213
Total Committers: 33
Avg Commits per committer: 6.455
Development Distribution Score (DDS): 0.793
Commits in past year: 44
Committers in past year: 11
Avg Commits per committer in past year: 4.0
Development Distribution Score (DDS) in past year: 0.682
| Name | Commits | |
|---|---|---|
| nobu | n****u@b****e | 44 |
| Hiroshi SHIBATA | h****t@r****g | 41 |
| Benoit Daloze | e****p@g****m | 22 |
| dependabot[bot] | 4****] | 21 |
| matz | m****z@b****e | 12 |
| John Bachir | j****b | 9 |
| CosmicOppai | c****i@p****m | 8 |
| kazu | k****u@b****e | 7 |
| Jeremy Evans | c****e@j****t | 5 |
| Jean Boussier | j****r@g****m | 4 |
| Samuel Williams | s****s@o****z | 4 |
| akr | a****r@b****e | 4 |
| Olle Jonsson | o****n@g****m | 4 |
| Koichi Sasada | k****1@a****t | 3 |
| drbrain | d****n@b****e | 3 |
| kosaki | k****i@b****e | 3 |
| Takashi Kokubun | t****n@g****m | 2 |
| zzak | z****k@b****e | 2 |
| tarui | t****i@b****e | 1 |
| aamine | a****e@b****e | 1 |
| ryan | r****n@b****e | 1 |
| t-mangoe | m****r@g****m | 1 |
| shyouhei | s****i@b****e | 1 |
| rm155 | r****n@v****t | 1 |
| naruse | n****e@b****e | 1 |
| Yusuke Endoh | m****e@r****g | 1 |
| Ryunosuke Sato | t****s@g****m | 1 |
| Rick Blommers | r****k@b****l | 1 |
| Masafumi Koba | 4****s | 1 |
| Mark Young | m****g@a****o | 1 |
| and 3 more... | ||
Committer domains:
- ruby-lang.org: 2
- jpcamara.com: 1
- greiz-reinsdorf.de: 1
- shopify.com: 1
- atg.auto: 1
- blommersit.nl: 1
- verizon.net: 1
- atdot.net: 1
- oriontransfer.co.nz: 1
- jeremyevans.net: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 14
Total pull requests: 81
Average time to close issues: 6 months
Average time to close pull requests: 11 days
Total issue authors: 12
Total pull request authors: 21
Average comments per issue: 4.86
Average comments per pull request: 1.89
Merged pull request: 68
Bot issues: 0
Bot pull requests: 26
Past year issues: 0
Past year pull requests: 26
Past year average time to close issues: N/A
Past year average time to close pull requests: about 9 hours
Past year issue authors: 0
Past year pull request authors: 8
Past year average comments per issue: 0
Past year average comments per pull request: 0.77
Past year merged pull request: 20
Past year bot issues: 0
Past year bot pull requests: 13
Top Issue Authors
- jjb (3)
- akihikodaki (1)
- docu-tyler-harris (1)
- gamecreature (1)
- headius (1)
- voxik (1)
- gaffneyc (1)
- trogd0r (1)
- donnygitsome (1)
- HoneyryderChuck (1)
- jsvd (1)
- ShockwaveNN (1)
Top Pull Request Authors
- dependabot[bot] (26)
- jjb (11)
- eregon (8)
- olleolleolle (5)
- hsbt (4)
- nobu (4)
- ko1 (2)
- joelibaceta (2)
- headius (2)
- jpcamara (2)
- casperisfine (2)
- jeremyevans (2)
- k0kubun (2)
- Cosmicoppai (2)
- gamecreature (1)
Top Issue Labels
Top Pull Request Labels
- dependencies (26)
- github_actions (13)
- documentation (1)
Package metadata
- Total packages: 3
-
Total downloads:
- rubygems: 562,181,053 total
- Total docker downloads: 7,279,679,966
- Total dependent packages: 38 (may contain duplicates)
- Total dependent repositories: 35,095 (may contain duplicates)
- Total versions: 39
- Total maintainers: 1
gem.coop: timeout
Auto-terminate potentially long-running operations in Ruby.
- Homepage: https://github.com/ruby/timeout
- Documentation: http://www.rubydoc.info/gems/timeout/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 0.6.0 (published 3 months ago)
- Last Synced: 2026-03-02T06:22:49.275Z (1 day ago)
- Versions: 13
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 281,277,706 Total
- Docker Downloads: 3,639,839,983
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Docker downloads count: 0.017%
- Average: 0.03%
- Downloads: 0.103%
- Maintainers (1)
rubygems.org: timeout
Auto-terminate potentially long-running operations in Ruby.
- Homepage: https://github.com/ruby/timeout
- Documentation: http://www.rubydoc.info/gems/timeout/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 0.6.0 (published 3 months ago)
- Last Synced: 2026-02-28T11:02:31.482Z (3 days ago)
- Versions: 13
- Dependent Packages: 38
- Dependent Repositories: 35,095
- Downloads: 280,903,347 Total
- Docker Downloads: 3,639,839,983
-
Rankings:
- Docker downloads count: 0.019%
- Dependent repos count: 0.177%
- Downloads: 0.208%
- Dependent packages count: 0.67%
- Average: 2.014%
- Stargazers count: 4.782%
- Forks count: 6.23%
- Maintainers (1)
proxy.golang.org: github.com/ruby/timeout
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby/timeout#section-documentation
- Licenses: other
- Latest release: v0.6.0 (published 3 months ago)
- Last Synced: 2026-03-02T06:22:50.579Z (1 day ago)
- Versions: 13
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 4.407%
- Forks count: 5.604%
- Average: 7.597%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
Dependencies
- bundler >= 0 development
- rake >= 0 development
- test-unit >= 0 development
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout v6 composite
- actions/create-github-app-token v2 composite
- convictional/trigger-workflow-and-wait v1.6.5 composite
- actions/checkout 1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 composite
- ruby/setup-ruby d5126b9b3579e429dd52e51e68624dda2e05be25 composite
- rubygems/release-gem 1c162a739e8b4cb21a676e97b087e8268d8fc40b composite
- step-security/harden-runner 20cf305ff2072d973412fa9b1e3a4f227bda3c76 composite
Score: 31.329110799252838