{"id":15175171,"url":"https://github.com/msuliq/distributed_merge","last_synced_at":"2026-02-28T11:41:09.161Z","repository":{"id":153157346,"uuid":"625509179","full_name":"msuliq/distributed_merge","owner":"msuliq","description":"Gem that adds a method to merge arrays of varying length with even distribution and interleaving.","archived":false,"fork":false,"pushed_at":"2024-12-29T13:27:19.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T02:19:32.621Z","etag":null,"topics":["ruby","ruby-gem","ruby-on-rails","rubygem","rubygems"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/distributed_merge","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/msuliq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-04-09T10:35:06.000Z","updated_at":"2024-12-29T13:27:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7c705da-3848-4331-ae2f-02fcae7833ec","html_url":"https://github.com/msuliq/distributed_merge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msuliq/distributed_merge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msuliq%2Fdistributed_merge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msuliq%2Fdistributed_merge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msuliq%2Fdistributed_merge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msuliq%2Fdistributed_merge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msuliq","download_url":"https://codeload.github.com/msuliq/distributed_merge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msuliq%2Fdistributed_merge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29932454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ruby","ruby-gem","ruby-on-rails","rubygem","rubygems"],"created_at":"2024-09-27T12:04:28.595Z","updated_at":"2026-02-28T11:41:09.133Z","avatar_url":"https://github.com/msuliq.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DistributedMerge\n\n`distributed_merge` is a Ruby gem that extends the `Array` class with a method for merging \nand interleaving arrays of varying lengths, ensuring that elements are distributed as \nevenly as possible. This method can be applied to any two-dimensional array containing two \nor more sub-arrays of different sizes.\n\n## Installation\n\nAdd the gem to your project by running:\n```bash\n  bundle add distributed_merge\n```\n\nIf you are not using Bundler to manage dependencies, install the gem directly with:\n```bash\n  gem install distributed_merge\n```\n\n## Usage\n\nTo use the `distributed_merge` method, include the gem in your project:\n```ruby\nrequire 'distributed_merge'\n```\n\nOnce included, you can call the `distributed_merge` method on any two-dimensional array \ncontaining sub-arrays of varying lengths. The method will return a single merged array \nwith all elements interleaved and evenly distributed.\n\n```ruby\n[[1, 2, 3, 4], ['a', 'b'], ['C']].distributed_merge\n# =\u003e [1, \"b\", 2, \"C\", 3, \"a\", 4]\n```\n\nIn this example:\n* The method merges the sub-arrays `[1, 2, 3, 4]`, `['a', 'b']`, and `['C']`.\n* It ensures the elements are interleaved and distributed as evenly as possible in the final array.\n\n## Contributing\n\nBug reports and pull requests are welcome at https://github.com/msuliq/distributed_merge. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/msuliq/distributed_merge/blob/main/CODE_OF_CONDUCT.md).\n\nThe best way to contribute would be to fork this repo, create a new branch from main, to merge the branch into main of the fork once the new code is in place and then open a pull request to merge forked main into the main of the present repo.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the DistributedMerge project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/msuliq/distributed_merge/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsuliq%2Fdistributed_merge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsuliq%2Fdistributed_merge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsuliq%2Fdistributed_merge/lists"}