Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hbmartin/danger-spm_version_updates
A Danger plugin to detect if there are any updates to your Swift Package Manager dependencies.
https://github.com/hbmartin/danger-spm_version_updates
ci danger danger-plugin danger-rb dependencies dependency-check dependency-checker swift swift-package-manager swift-pm version-management version-monitoring versioning xcode
Last synced: 3 months ago
JSON representation
A Danger plugin to detect if there are any updates to your Swift Package Manager dependencies.
- Host: GitHub
- URL: https://github.com/hbmartin/danger-spm_version_updates
- Owner: hbmartin
- License: mit
- Created: 2023-11-04T20:02:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-17T18:38:44.000Z (9 months ago)
- Last Synced: 2024-10-25T09:30:20.822Z (3 months ago)
- Topics: ci, danger, danger-plugin, danger-rb, dependencies, dependency-check, dependency-checker, swift, swift-package-manager, swift-pm, version-management, version-monitoring, versioning, xcode
- Language: Ruby
- Homepage: https://hbmartin.github.io/danger-spm_version_updates/Danger/DangerSpmVersionUpdates.html
- Size: 61.5 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-danger - danger-spm_version_updates - Danger plugin to report updates to Swift Package Manager dependencies. (Plugins / Ruby (danger))
README
# danger-spm_version_updates
[![CI](https://github.com/hbmartin/danger-spm_version_updates/actions/workflows/lint_and_test.yml/badge.svg)](https://github.com/hbmartin/danger-spm_version_updates/actions/workflows/lint_and_test.yml)
[![CodeFactor](https://www.codefactor.io/repository/github/hbmartin/danger-spm_version_updates/badge/main)](https://www.codefactor.io/repository/github/hbmartin/danger-spm_version_updates/overview/main)
[![Gem Version](https://img.shields.io/gem/v/danger-spm_version_updates?color=D86149)](https://rubygems.org/gems/danger-spm_version_updates)
[![codecov](https://codecov.io/gh/hbmartin/danger-spm_version_updates/graph/badge.svg?token=eXgUoWlvP7)](https://codecov.io/gh/hbmartin/danger-spm_version_updates)
[![Documentation](https://img.shields.io/badge/Docs-3d3d41?logo=RubyGems)](https://hbmartin.github.io/danger-spm_version_updates/Danger/DangerSpmVersionUpdates.html)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)A [Danger](https://danger.systems/ruby/) 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
```sh
gem install danger-spm_version_updates
```or add the following to your Gemfile:
```ruby
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.
```ruby
spm_version_updates.check_for_updates("Example.xcodeproj")
```You can also configure custom behaviors:
```ruby
# 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
- [Harold Martin](https://www.linkedin.com/in/harold-martin-98526971/) - harold.martin at gmail
## 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.