Skip to content

Commit

Permalink
Source Ruby version from .ruby-version file
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrunger committed Feb 2, 2024
1 parent d401b75 commit fb5364b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 3.3.0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
bundler-cache: true
- run: bin/rubocop
- run: bin/rspec
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.0
2 changes: 1 addition & 1 deletion simple_cov-formatter-terminal.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = 'Print detailed code coverage info to the terminal'
spec.homepage = 'https://github.com/davidrunger/simple_cov-formatter-terminal'
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.2.0'
spec.required_ruby_version = Gem::Requirement.new(">= #{File.read('.ruby-version').rstrip}")

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/davidrunger/simple_cov-formatter-terminal'
Expand Down

0 comments on commit fb5364b

Please sign in to comment.