{"id":18410942,"url":"https://github.com/packsaddle/ruby-compare_linker_wrapper","last_synced_at":"2025-04-07T10:32:38.282Z","repository":{"id":28558073,"uuid":"32075539","full_name":"packsaddle/ruby-compare_linker_wrapper","owner":"packsaddle","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-17T13:04:58.000Z","size":33,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-29T05:43:03.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://packsaddle.org","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/packsaddle.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}},"created_at":"2015-03-12T12:23:47.000Z","updated_at":"2017-10-04T04:28:40.000Z","dependencies_parsed_at":"2022-08-30T12:10:33.545Z","dependency_job_id":null,"html_url":"https://github.com/packsaddle/ruby-compare_linker_wrapper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packsaddle%2Fruby-compare_linker_wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packsaddle%2Fruby-compare_linker_wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packsaddle%2Fruby-compare_linker_wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packsaddle%2Fruby-compare_linker_wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/packsaddle","download_url":"https://codeload.github.com/packsaddle/ruby-compare_linker_wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247637432,"owners_count":20971129,"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-11-06T03:34:26.700Z","updated_at":"2025-04-07T10:32:37.992Z","avatar_url":"https://github.com/packsaddle.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CompareLinkerWrapper\n\n[![Gem Version](http://img.shields.io/gem/v/compare_linker_wrapper.svg?style=flat)](http://badge.fury.io/rb/compare_linker_wrapper)\n[![Build Status](http://img.shields.io/travis/packsaddle/ruby-compare_linker_wrapper/master.svg?style=flat)](https://travis-ci.org/packsaddle/ruby-compare_linker_wrapper)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'compare_linker_wrapper'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install compare_linker_wrapper\n\n## Usage\n\n```text\ncompare-linker-wrapper 'example/Gemfile.lock' \\\n  --base origin/master \\\n  --formatter CompareLinker::Formatter::Markdown\n\n* [octokit](https://github.com/octokit/octokit.rb): 3.8.0 =\u003e 3.8.1\n\ncompare-linker-wrapper 'example/Gemfile.lock' \\\n  --base origin/master \\\n  --formatter CompareLinker::Formatter::Text\n\noctokit: https://github.com/octokit/octokit.rb 3.8.0 =\u003e 3.8.1\n```\n\n## Useful Usage on CI\n\n```\ngit diff --name-only origin/master \\\n | grep \".*[gG]emfile.lock$\" || RETURN_CODE=$?\n\ncase \"$RETURN_CODE\" in\n \"\" ) echo \"found\" ;;\n \"1\" )\n   echo \"not found\"\n   exit 0 ;;\n * )\n   echo \"Error\"\n   exit $RETURN_CODE ;;\nesac\n\ngit diff --name-only origin/master \\\n | grep \".*[gG]emfile.lock$\" \\\n | xargs compare-linker-wrapper --base origin/master \\\n    --formatter CompareLinker::Formatter::Markdown \\\n | text-to-checkstyle \\\n | saddler report \\\n    --require saddler/reporter/github \\\n    --reporter Saddler::Reporter::Github::PullRequestComment\n```\n\n## Command\n\n```text\nCommands:\n  compare-linker-wrapper compare         # compare gemfile.lock\n  compare-linker-wrapper help [COMMAND]  # Describe available commands or one specific command\n  compare-linker-wrapper version         # Show the CompareLinkerWrapper version\n\nUsage:\n  compare-linker-wrapper compare\n\nOptions:\n  [--debug], [--no-debug]\n  [--verbose], [--no-verbose]\n  [--base=BASE]\n                               # Default: origin/master\n  [--head=HEAD]\n                               # Default: HEAD\n  [--file=one two three]\n  [--formatter=FORMATTER]\n                               # Default: CompareLinker::Formatter::Text\n\ncompare gemfile.lock\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec compare_linker_wrapper` to use the code located in this directory, ignoring other installed copies of this gem.\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` to 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\n1. Fork it ( https://github.com/packsaddle/ruby-compare_linker_wrapper/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacksaddle%2Fruby-compare_linker_wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacksaddle%2Fruby-compare_linker_wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacksaddle%2Fruby-compare_linker_wrapper/lists"}