Skip to content

Latest commit

 

History

History
89 lines (62 loc) · 3.6 KB

README.md

File metadata and controls

89 lines (62 loc) · 3.6 KB

danger-spm_version_updates

CI CodeFactor Gem Version codecov Documentation License: MIT

A Danger plugin to detect if there are any updates to your Swift Package Manager dependencies.

It's fast, lightweight, and does not require swift to be installed on the CI where it is run.

Note that version 0.1.0 is the last version to support Ruby 2.7

Installation

gem install danger-spm_version_updates

or add the following to your Gemfile:

gem "danger-spm_version_updates"

Usage

Just add this to your Dangerfile! Note that it is required to pass the path to your Xcode project.

spm_version_updates.check_for_updates("Example.xcodeproj")

You can also configure custom behaviors:

# Whether to check when dependencies are exact versions or commits, default false
spm_version_updates.check_when_exact = true

# Whether to report versions above the maximum version range, default false
spm_version_updates.report_above_maximum = true

# Whether to report pre-release versions, default false
spm_version_updates.report_pre_releases = true

# A list of repository URLs for packages to ignore entirely
spm_version_updates.ignore_repos = ["https://github.com/pointfreeco/swift-snapshot-testing"]

Development

  1. Clone this repo
  2. Run bundle install to setup dependencies.
  3. Run bundle exec rake spec to run the tests.
  4. Use bundle exec guard to automatically have tests run as you make changes.
  5. Make your changes.

Authors

Legal

Swift and the Swift logo are trademarks of Apple Inc.

Copyright (c) 2023-2024 Harold Martin

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.