{"id":19692263,"url":"https://github.com/aesthetikx/danger-gem_changes","last_synced_at":"2025-04-29T09:31:26.960Z","repository":{"id":239253110,"uuid":"799019222","full_name":"Aesthetikx/danger-gem_changes","owner":"Aesthetikx","description":"A Danger plugin to assist with Gemfile dependency changes","archived":false,"fork":false,"pushed_at":"2024-05-15T18:57:22.000Z","size":75,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-26T04:53:33.962Z","etag":null,"topics":["danger","danger-plugin"],"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/Aesthetikx.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":"2024-05-11T01:08:39.000Z","updated_at":"2024-06-12T14:51:11.000Z","dependencies_parsed_at":"2024-05-16T06:45:42.164Z","dependency_job_id":null,"html_url":"https://github.com/Aesthetikx/danger-gem_changes","commit_stats":null,"previous_names":["aesthetikx/danger-gems","aesthetikx/danger-gem_changes"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aesthetikx%2Fdanger-gem_changes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aesthetikx%2Fdanger-gem_changes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aesthetikx%2Fdanger-gem_changes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aesthetikx%2Fdanger-gem_changes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aesthetikx","download_url":"https://codeload.github.com/Aesthetikx/danger-gem_changes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251473283,"owners_count":21595034,"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":["danger","danger-plugin"],"created_at":"2024-11-11T19:12:48.928Z","updated_at":"2025-04-29T09:31:26.622Z","avatar_url":"https://github.com/Aesthetikx.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# danger-gem_changes\n\nThis is a [Danger](https://danger.systems/ruby/) plugin that can assist with\nreviews involving Gemfile dependency changes. It can display a helpful table\nwith links to changelogs and diffs, and provides a DSL for evaluating changes\nto your depdencies.\n\n## Installation\n\n```shell\n$ gem install danger-gem_changes\n```\n\n## Usage\n\nThe following examples are changes to your Dangerfile.\n\n### Summary Table\n\n```ruby\n# Print a markdown table summarizing Gemfile.lock changes, if any.\ngem_changes.summarize_changes\n```\n\n\u003e ### Gemfile.lock Changes\n\u003e | Gem | Source | Changelog | Change | Version | Level |\n\u003e | :-: | :----: | :-------: | :----: | :-----: | :---: |\n\u003e | [rubocop-factory_bot](https://rubygems.org/gems/rubocop-factory_bot) | [Source](https://github.com/rubocop/rubocop-factory_bot) | [Changelog](https://github.com/rubocop/rubocop-factory_bot/blob/master/CHANGELOG.md) | Downgraded | [2.25.1 ➘ 2.25.0](https://github.com/rubocop/rubocop-factory_bot/compare/v2.25.0...v2.25.1) | Patch |\n\u003e | [rubocop-performance](https://rubygems.org/gems/rubocop-performance) | [Source](https://github.com/rubocop/rubocop-performance) | [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md) | Added | 1.21.0 |  |\n\u003e | [rubocop-rake](https://rubygems.org/gems/rubocop-rake) | [Source](https://github.com/rubocop/rubocop-rake) | [Changelog](https://github.com/rubocop/rubocop-rake/blob/master/CHANGELOG.md) | Upgraded | [0.5.0 ➚ 0.6.0](https://github.com/rubocop/rubocop-rake/compare/v0.5.0...v0.6.0) | Minor |\n\u003e | [rubocop-rspec](https://rubygems.org/gems/rubocop-rspec) | [Source](https://github.com/rubocop/rubocop-rspec) | [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md) | Removed | 2.29.2 |  |\n\n### Changes DSL\n\nThis gem provides a DSL for accessing metadata about changes to your Gemfile dependencies:\n\n| Method | Description |\n| :----: | ----------- |\n| `changes` | All dependency changes |\n| `additions` | Dependencies that were not present before |\n| `removals` | Dependencies that are no longer present |\n| `upgrades` | Dependencies that have a newer version than before |\n| `downgrades` | Dependencies that have a lower version than before |\n\nEach dependency change has information about the gem and version change:\n\n| Method | Example |\n| :----: | ------- |\n| `gem.name` | `rubocop-rake` |\n| `from` | `0.6.0` |\n| `to` | `0.6.1` |\n| `change?` | `true` |\n| `addition?` | `false` |\n| `removal?` | `false` |\n| `upgrade?` | `true` |\n| `downgrade?` | `false` |\n\nThe `from` attribute will be nil for additions, and `to` will be nil for removals.\n\n### More Examples\n\n```ruby\n# Print a warning if new dependencies were added.\nwarn \"Dependencies added\" if gem_changes.additions.any?\n```\n\n```ruby\n# Print a table of dependency downgrades, if any\ndowngrades = gem_changes.downgrades\ngem_changes.summarize_changes changes: downgrades, title: \"Dependency Downgrades\"\n```\n\n## Development\n\n1. Clone this repo\n2. Run `bundle install` to setup dependencies.\n3. Run `bundle exec rake spec` to run the tests.\n4. Use `bundle exec guard` to automatically have tests run as you make changes.\n5. Make your changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faesthetikx%2Fdanger-gem_changes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faesthetikx%2Fdanger-gem_changes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faesthetikx%2Fdanger-gem_changes/lists"}