{"id":15512619,"url":"https://github.com/sinsoku/gems_comparator","last_synced_at":"2025-04-28T02:31:13.122Z","repository":{"id":17630348,"uuid":"82366636","full_name":"sinsoku/gems_comparator","owner":"sinsoku","description":"GemsComparator generates GitHub's compare view urls from Gemfile.lock","archived":false,"fork":false,"pushed_at":"2022-02-23T06:01:16.000Z","size":64,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T05:11:25.632Z","etag":null,"topics":["bundler","github-compare"],"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/sinsoku.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":null,"security":null,"support":null}},"created_at":"2017-02-18T06:25:54.000Z","updated_at":"2022-02-23T06:01:20.000Z","dependencies_parsed_at":"2022-08-07T09:00:06.216Z","dependency_job_id":null,"html_url":"https://github.com/sinsoku/gems_comparator","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinsoku%2Fgems_comparator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinsoku%2Fgems_comparator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinsoku%2Fgems_comparator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinsoku%2Fgems_comparator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinsoku","download_url":"https://codeload.github.com/sinsoku/gems_comparator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251022091,"owners_count":21524205,"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":["bundler","github-compare"],"created_at":"2024-10-02T09:53:45.157Z","updated_at":"2025-04-28T02:31:12.842Z","avatar_url":"https://github.com/sinsoku.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# GemsComparator\n\n[![Gem Version](https://badge.fury.io/rb/gems_comparator.svg)](https://badge.fury.io/rb/gems_comparator)\n[![Build Status](https://travis-ci.org/sinsoku/gems_comparator.svg?branch=master)](https://travis-ci.org/sinsoku/gems_comparator)\n[![codecov](https://codecov.io/gh/sinsoku/gems_comparator/branch/master/graph/badge.svg)](https://codecov.io/gh/sinsoku/gems_comparator)\n\nGemsComparator generates GitHub's compare view urls from the difference between two `Gemfile.lock`.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'gems_comparator'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install gems_comparator\n\n## Usage\n\n```rb\nrequire 'gems_comparator'\n\nbefore_lockfile = File.read('before_Gemfile.lock')\nafter_lockfile = File.read('after_Gemfile.lock')\n\nGemsComparator.compare(before_lockfile, after_lockfile)\n```\n\nHere's an example that the `compare` method return:\n\n```rb\n[{\n  :name=\u003e\"rake\",\n  :before=\u003e\"11.3.0\",\n  :after=\u003e\"12.0.0\",\n  :homepage=\u003e\"https://github.com/ruby/rake\",\n  :github_url=\u003e\"https://github.com/ruby/rake\",\n  :compare_url=\u003e\"https://github.com/ruby/rake/compare/v11.3.0...v12.0.0\"\n}, {\n  ...\n}]\n```\n\n## Configuring\n\nTo use an access token, set your token to `ENV['GITHUB_TOKEN']`. Or you can also set a token through the `configure` method.\n\n```rb\nGemsComparator.configure do |config|\n  config.client = Octokit::Client.new(access_token: '\u003cyour 40 char token\u003e')\nend\n```\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/sinsoku/gems_comparator. 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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinsoku%2Fgems_comparator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinsoku%2Fgems_comparator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinsoku%2Fgems_comparator/lists"}