{"id":16863180,"url":"https://github.com/manicmaniac/mailmap","last_synced_at":"2025-09-02T13:33:13.296Z","repository":{"id":64257437,"uuid":"538695674","full_name":"manicmaniac/mailmap","owner":"manicmaniac","description":"Pure Ruby implementation of Git mailmap.","archived":false,"fork":false,"pushed_at":"2025-02-20T16:50:05.000Z","size":233,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T06:24:13.062Z","etag":null,"topics":["git","mailmap","ruby"],"latest_commit_sha":null,"homepage":"https://www.rubydoc.info/gems/mailmap","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/manicmaniac.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-19T21:00:03.000Z","updated_at":"2025-02-20T16:50:13.000Z","dependencies_parsed_at":"2023-02-15T07:31:52.983Z","dependency_job_id":"750ae34e-d980-4091-bb12-b2854b86128f","html_url":"https://github.com/manicmaniac/mailmap","commit_stats":{"total_commits":65,"total_committers":2,"mean_commits":32.5,"dds":"0.27692307692307694","last_synced_commit":"23a5f9ec57f5f96991e58d4f7622026388c00578"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manicmaniac%2Fmailmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manicmaniac%2Fmailmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manicmaniac%2Fmailmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manicmaniac%2Fmailmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manicmaniac","download_url":"https://codeload.github.com/manicmaniac/mailmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248363586,"owners_count":21091392,"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":["git","mailmap","ruby"],"created_at":"2024-10-13T14:37:57.605Z","updated_at":"2025-04-11T08:58:17.872Z","avatar_url":"https://github.com/manicmaniac.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mailmap\n\n[![Test](https://github.com/manicmaniac/mailmap/actions/workflows/main.yml/badge.svg)](https://github.com/manicmaniac/mailmap/actions/workflows/main.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/d43e7ca25cb834a37a99/maintainability)](https://codeclimate.com/github/manicmaniac/mailmap/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/d43e7ca25cb834a37a99/test_coverage)](https://codeclimate.com/github/manicmaniac/mailmap/test_coverage)\n[![Gem Version](https://badge.fury.io/rb/mailmap.svg)](https://rubygems.org/gems/mailmap)\n\nPure Ruby implementation of [Git mailmap](https://git-scm.com/docs/gitmailmap).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'mailmap'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install mailmap\n\n## Usage\n\n```ruby\nrequire 'mailmap'\n\n# Load .mailmap file\nmailmap = Mailmap::Map.load('.mailmap')\n\n# Parse string\nmailmap = Mailmap::Map.parse('Proper Name \u003cproper@example.com\u003e \u003ccommit@example.com\u003e')\n\n# Parse string with optional filename\nmailmap = Mailmap::Map.parse('Proper Name \u003cproper@example.com\u003e \u003ccommit@example.com\u003e', '.mailmap')\n\n# Equivalent to git check-mailmap 'Commit Name' 'commit@example.com'\nmailmap.resolve('Commit Name', 'commit@example.com') # =\u003e ['Proper Name', 'proper@example.com']\n\n# Equivalent to git check-mailmap 'commit@example.com'\nmailmap.resolve(nil, 'commit@example.com') # =\u003e [nil, 'proper@example.com']\n\n# Similar to `Map#resolve` but returns nil if not found\nmailmap.lookup('Nonexistent Name', 'nonexistent@example.com') #=\u003e nil\n```\n\nSee [API reference](https://www.rubydoc.info/gems/mailmap) for more information.\n\n## Command Line\n\nThis gem includes command-line tool named `check-mailmap`.\nIt is pure Ruby implementation of [`git check-mailmap`](https://git-scm.com/docs/git-check-mailmap) and is intended to be a drop-in replacement for `git check-mailmap`.\n\n```sh\n$ bundle exec check-mailmap --help\nusage: check-mailmap [\u003coptions\u003e] \u003ccontact\u003e...\n    -f, --file=FILE                  path to the .mailmap file (default: ./.mailmap)\n        --stdin                      also read contacts from stdin\n```\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies. Then, run `rake test` to run the tests.\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 the created tag, 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/manicmaniac/mailmap.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanicmaniac%2Fmailmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanicmaniac%2Fmailmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanicmaniac%2Fmailmap/lists"}