{"id":21431042,"url":"https://github.com/radkomih/attempt","last_synced_at":"2025-10-09T13:33:26.954Z","repository":{"id":172943873,"uuid":"305155178","full_name":"radkomih/attempt","owner":"radkomih","description":"Retry library with configurable waiting strategy.","archived":false,"fork":false,"pushed_at":"2020-10-18T19:03:39.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-15T07:33:34.775Z","etag":null,"topics":["retries","retry","retry-library","retry-strategies","retrying"],"latest_commit_sha":null,"homepage":"https://github.com/radkomih/attempt","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radkomih.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-18T17:14:37.000Z","updated_at":"2020-10-18T19:03:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"765dda13-42ab-4318-bf9b-add6b8488e04","html_url":"https://github.com/radkomih/attempt","commit_stats":null,"previous_names":["radkomih/attempt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/radkomih/attempt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radkomih%2Fattempt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radkomih%2Fattempt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radkomih%2Fattempt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radkomih%2Fattempt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radkomih","download_url":"https://codeload.github.com/radkomih/attempt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radkomih%2Fattempt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001481,"owners_count":26083102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["retries","retry","retry-library","retry-strategies","retrying"],"created_at":"2024-11-22T22:29:29.294Z","updated_at":"2025-10-09T13:33:26.925Z","avatar_url":"https://github.com/radkomih.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Attempt\n\nRetry library with configurable waiting strategy.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'attempt'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install attempt\n\n## Usage\n\n```ruby\nAttempt.new.execute do\n  raise StandardError.new('Wooops!!!')\nend\n\nAttempt.new(tries: 2).execute do\n  raise StandardError.new('Wooops!!!')\nend\n\nAttempt.new(exceptions: [StandardError]).execute do\n  raise StandardError.new('Wooops!!!')\nend\n\n# constant|incremental|random|exponential\nAttempt.new(wait_strategy: :constant).execute do\n  raise StandardError.new('Wooops!!!')\nend\n\ncallback = Proc.new { |e, context_message| puts \"#{e.message} #{context_message}\" }\n\nAttempt.new(failure_callback: callback).execute(context: 'syncing resources') do\n  raise StandardError.new('Wooops!!!')\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo 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](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/radkomih/attempt.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradkomih%2Fattempt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradkomih%2Fattempt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradkomih%2Fattempt/lists"}