{"id":23249606,"url":"https://github.com/wizardone/occupator","last_synced_at":"2026-05-19T10:04:53.311Z","repository":{"id":68987401,"uuid":"80520999","full_name":"wizardone/occupator","owner":"wizardone","description":"Occupator is a gem, handling recurring events in Ruby","archived":false,"fork":false,"pushed_at":"2017-04-17T06:14:07.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T01:26:08.336Z","etag":null,"topics":["events","recurrence","ruby"],"latest_commit_sha":null,"homepage":"","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/wizardone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-01-31T13:04:26.000Z","updated_at":"2017-02-02T16:51:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"579dd688-31f0-4295-928f-5b187dcc90ec","html_url":"https://github.com/wizardone/occupator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wizardone/occupator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Foccupator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Foccupator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Foccupator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Foccupator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wizardone","download_url":"https://codeload.github.com/wizardone/occupator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Foccupator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272632244,"owners_count":24967213,"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-08-29T02:00:10.610Z","response_time":87,"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":["events","recurrence","ruby"],"created_at":"2024-12-19T08:20:11.498Z","updated_at":"2026-05-19T10:04:50.886Z","avatar_url":"https://github.com/wizardone.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Occupator\n\nOccupator is a gem, handling recurring events in Ruby. It gives you a\ncomprehensive structure and an easy DSL.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'occupator'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install occupator\n\n## Usage\n\nEvents can be defined as POROs or other ruby object that responds to `call`.\nSo you can have something like:\n```ruby\nclass EventObject\n  include Occupator\n\n  def self.call\n    #perform any recurring action\n  end\nend\n```\nor\n```ruby\nRecurringEvent = -\u003e () { 'some reccuring event' }\n```\nYou can list all your events in a single file (or whatever you choose),\nwhere they can be evaluated during run time (a config file or an\ninitializer in Rails will do the trick, for example)\n\n```ruby\nEventObject1.occupy(every: :day)\nEventObject2.occupy(every: :week)\nEventObject3.occupy(every: :month)\nEventObject4.occupy(every: :year)\n```\n\nYou can configure the `Occupator` gem by using its config property:\n```ruby\nOccupator.configure do |config|\n  config.default_at = '06.00'\n  config.call_method = :call\n  config.some_option = :blah\n  config.dump_style = String\nend\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/Stefan Slaveykov/occupator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizardone%2Foccupator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwizardone%2Foccupator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizardone%2Foccupator/lists"}