{"id":24461809,"url":"https://github.com/zachahn/proc_party","last_synced_at":"2025-11-11T19:30:54.024Z","repository":{"id":56888858,"uuid":"88352664","full_name":"zachahn/proc_party","owner":"zachahn","description":"Make your objects act like procs!","archived":false,"fork":false,"pushed_at":"2020-02-01T20:39:25.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T09:01:11.972Z","etag":null,"topics":["functional-programming","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/proc_party","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/zachahn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-15T14:37:52.000Z","updated_at":"2020-02-01T20:39:28.000Z","dependencies_parsed_at":"2022-08-20T23:40:27.776Z","dependency_job_id":null,"html_url":"https://github.com/zachahn/proc_party","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zachahn/proc_party","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachahn%2Fproc_party","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachahn%2Fproc_party/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachahn%2Fproc_party/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachahn%2Fproc_party/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachahn","download_url":"https://codeload.github.com/zachahn/proc_party/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachahn%2Fproc_party/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278187830,"owners_count":25944822,"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-03T02:00:06.070Z","response_time":53,"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":["functional-programming","ruby"],"created_at":"2025-01-21T04:29:50.335Z","updated_at":"2025-10-03T15:56:17.358Z","avatar_url":"https://github.com/zachahn.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProcParty\n\nEver had a class with just one method? Maybe it was named `#call` or `#process`?\n\nEver wondered who you were (`(1..3).map(\u0026Identity.new)`) or wanted to give\neveryone in your audience a car (`Guest.all.each(\u0026GiveCar.new)`)?\n\nProc party! 🎉 🎉 🎉\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"proc_party\"\n```\n\nAnd then execute:\n\n    $ bundle\n\n\n## Usage\n\n```ruby\nclass Identity\n  include ProcParty\n\n  def call(n)\n    n\n  end\nend\n\n(1..3).map(\u0026Identity.new) # =\u003e [1, 2, 3]\n```\n\n\n```ruby\nclass GiveCar\n  include ProcParty\n\n  def initialize(make, model)\n    @make = make\n    @model = model\n  end\n\n  def call(guest)\n    car = Car.create(make: @make, model: @model)\n    guest.cars.push(car)\n    guest.save\n  end\nend\n\nGuest.all.select(\u0026GiveCar.new(\"Pontiac\", \"G6\")).each(\u0026:celebrate!)\n```\n\nSo many procs! So easy to make! Proc Party!\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake test` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`.\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\n[https://github.com/zachahn/proc_party][home].\n\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License][mit].\n\n\n[home]: https://github.com/zachahn/proc_party\n[rubygems]: https://rubygems.org\n[mit]: https://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachahn%2Fproc_party","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachahn%2Fproc_party","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachahn%2Fproc_party/lists"}