{"id":31391673,"url":"https://github.com/customink/minitest-pngdiff","last_synced_at":"2025-09-29T02:49:14.184Z","repository":{"id":66315726,"uuid":"60271619","full_name":"customink/minitest-pngdiff","owner":"customink","description":"Minitest assertions to test for PNG differences","archived":false,"fork":false,"pushed_at":"2024-08-02T15:58:48.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":68,"default_branch":"master","last_synced_at":"2025-09-18T03:00:49.740Z","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/customink.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-02T14:38:30.000Z","updated_at":"2024-08-02T15:58:51.000Z","dependencies_parsed_at":"2024-02-27T20:23:38.702Z","dependency_job_id":"05ade3fd-cf8b-42ad-a701-40e8cf80f86f","html_url":"https://github.com/customink/minitest-pngdiff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/customink/minitest-pngdiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fminitest-pngdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fminitest-pngdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fminitest-pngdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fminitest-pngdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/customink","download_url":"https://codeload.github.com/customink/minitest-pngdiff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fminitest-pngdiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277458663,"owners_count":25821319,"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-09-29T02:00:09.175Z","response_time":84,"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":[],"created_at":"2025-09-29T02:49:08.693Z","updated_at":"2025-09-29T02:49:14.167Z","avatar_url":"https://github.com/customink.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minitest::Pngdiff\n\nProvides assertions that allow direct PNG comparison via ChunkyPNG.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'minitest-pngdiff'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install minitest-pngdiff\n\n## Usage\n\n`assert_png_diff(png1, png2, threshold, diff_method: :distance, msg: nil)`\n\nProvide this assertion with two PNGs (can be file paths, PNG blobs, or IO objects) and a difference threshold for success/failure. Optionally, provide a method of pixel difference calculation (only :distance right now) or a custom message.\n\nUse `refute_png_diff` for refuting two PNG diffs.\n\n`assert_png_equal(png1, png2, threshold, msg: nil`\n\nUsed like `assert_png_diff` but assumes that you want a difference threshold of 0.0. See `refute_png_equal` to refute two PNGs having a difference threshold of 0.\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/customink/minitest-pngdiff. 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomink%2Fminitest-pngdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustomink%2Fminitest-pngdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomink%2Fminitest-pngdiff/lists"}