{"id":13879983,"url":"https://github.com/mbj/concord","last_synced_at":"2025-04-04T11:11:29.141Z","repository":{"id":5911265,"uuid":"7130423","full_name":"mbj/concord","owner":"mbj","description":"Mixin to ease compositions in ruby","archived":false,"fork":false,"pushed_at":"2020-09-10T15:08:48.000Z","size":73,"stargazers_count":112,"open_issues_count":4,"forks_count":6,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-30T03:42:46.273Z","etag":null,"topics":[],"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/mbj.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-12T13:24:20.000Z","updated_at":"2023-11-10T13:04:22.000Z","dependencies_parsed_at":"2022-07-29T18:09:22.179Z","dependency_job_id":null,"html_url":"https://github.com/mbj/concord","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fconcord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fconcord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fconcord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbj%2Fconcord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbj","download_url":"https://codeload.github.com/mbj/concord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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","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":[],"created_at":"2024-08-06T08:02:42.075Z","updated_at":"2025-04-04T11:11:29.121Z","avatar_url":"https://github.com/mbj.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"concord\n=======\n\n[![Gem Version](http://img.shields.io/gem/v/concord.svg)][https://rubygems.org/gems/concord]\n![CI](https://github.com/mbj/concord/workflows/CI/badge.svg)\n\nLibrary to transform this:\n\n```ruby\nclass ComposedObject\n  include Equalizer.new(:foo, :bar)\n\n  # Return foo\n  #\n  # @return [Foo]\n  #\n  # @api private\n  #\n  attr_reader :foo\n  protected :foo\n\n  # Return bar\n  #\n  # @return [Bar]\n  #\n  # @api private\n  #\n  attr_reader :bar\n  protected :bar\n\n  # Initialize object\n  #\n  # @param [Foo] foo\n  # @param [Bar] bar\n  #\n  # @return [undefined]\n  #\n  # @api private\n  #\n  def initialize(foo, bar)\n    @foo, @bar = foo, bar\n  end\nend\n```\n\nInto shorter and easier to parse by eyes:\n\n```ruby\nclass ComposedObject\n  include Concord.new(:foo, :bar)\nend\n```\n\nYou can still add YARD docs for generated interface.\n\nRubies\n------\n\nTested under all \u003e= 1.9 rubies.\n\nInstallation\n------------\n\nInstall the gem `concord` via your preferred method.\n\nCredits\n-------\n\n* [mbj](https://github.com/mbj)\n\nContributing\n-------------\n\n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a\n  future version unintentionally.\n* Commit, do not mess with Rakefile or version\n  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\nLicense\n-------\n\nSee LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbj%2Fconcord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbj%2Fconcord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbj%2Fconcord/lists"}