{"id":24946460,"url":"https://github.com/voxpupuli/ruby-version","last_synced_at":"2025-04-10T06:40:39.226Z","repository":{"id":182281695,"uuid":"668241081","full_name":"voxpupuli/ruby-version","owner":"voxpupuli","description":"Determine the Ruby versions for your testing matrix based on the gemspec","archived":false,"fork":false,"pushed_at":"2025-01-24T16:28:17.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"v1","last_synced_at":"2025-01-24T17:22:56.647Z","etag":null,"topics":["actions","github","ruby"],"latest_commit_sha":null,"homepage":"https://github.com/voxpupuli/ruby-version","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voxpupuli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"open_collective":"vox-pupuli","github":"voxpupuli"}},"created_at":"2023-07-19T10:52:52.000Z","updated_at":"2025-01-24T16:29:36.000Z","dependencies_parsed_at":"2025-01-24T17:23:00.599Z","dependency_job_id":"708f7a08-6ef7-4b4b-a15d-4ce8e66cb23e","html_url":"https://github.com/voxpupuli/ruby-version","commit_stats":null,"previous_names":["ekohl/ruby-version","voxpupuli/ruby-version"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fruby-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fruby-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fruby-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fruby-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxpupuli","download_url":"https://codeload.github.com/voxpupuli/ruby-version/tar.gz/refs/heads/v1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601446,"owners_count":20964866,"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":["actions","github","ruby"],"created_at":"2025-02-02T20:46:35.769Z","updated_at":"2025-04-10T06:40:39.202Z","avatar_url":"https://github.com/voxpupuli.png","language":"Ruby","funding_links":["https://opencollective.com/vox-pupuli","https://github.com/sponsors/voxpupuli"],"categories":[],"sub_categories":[],"readme":"# Ruby version determination\n\nDetermine the Ruby versions for your testing matrix based on the gemspec.\n\nMaintaining your CI is tedious and your gem can already specify the compatible Ruby versions using [required_ruby_version](https://guides.rubygems.org/specification-reference/#required_ruby_version).\nThis action reads your gemspec and provides an output of compatible Ruby versions.\n\n## Supported Ruby versions\n\nA static list of compatible versions is maintained.\nThis is a subset of [setup-ruby's supported versions](https://github.com/ruby/setup-ruby#supported-versions).\n\n* 3.4\n* 3.3\n* 3.2\n* 3.1\n* 3.0\n* 2.7\n* 2.6\n* 2.5\n* 2.4\n\n## Example\n\nA minimal example has a single job to determine the Ruby version matrix, using this repository.\nThen there should be some task that uses the matrix, but the exact steps likely differ.\n\n```yaml\njobs:\n  setup_matrix:\n    name: \"Determine Ruby versions\"\n    runs-on: ubuntu-latest\n    outputs:\n      ruby: ${{ steps.ruby.outputs.versions }}\n    steps:\n      - id: ruby\n        uses: voxpupuli/ruby-version@v1\n\n  test:\n    name: \"Ruby ${{ matrix.ruby }}\"\n    runs-on: ubuntu-latest\n    needs: setup_matrix\n    strategy:\n      matrix:\n        ruby: ${{ fromJSON(needs.setup_matrix.outputs.ruby) }}\n    steps:\n      - uses: actions/checkout@v4\n      - name: Setup ruby\n        uses: ruby/setup-ruby@v1\n        with:\n          ruby-version: ${{ matrix.ruby }}\n          bundler-cache: true\n      - name: Run tests\n        run: bundle exec rake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fruby-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxpupuli%2Fruby-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fruby-version/lists"}