Skip to content

Commit

Permalink
Merge pull request #525 from bastelfreak/strict
Browse files Browse the repository at this point in the history
dev deps: Add strict version contraints & CI: build gem with strict mode & CI: Use Ruby 3.3 for releases
  • Loading branch information
bastelfreak authored Aug 19, 2024
2 parents 2f7f4bb + 8fe0c3f commit 05cc29f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
if: github.repository_owner == 'voxpupuli'
steps:
- uses: actions/checkout@v4
- name: Install Ruby 3.1
- name: Install Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
ruby-version: '3.3'
- name: Build gem
run: gem build *.gemspec
run: gem build --strict --verbose *.gemspec
- name: Publish gem to rubygems.org
run: gem push *.gem
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Run tests
run: bundle exec rake ${{ matrix.rake_task }} RUBYOPT="${{ matrix.rubyopt }}"
- name: Build gem
run: gem build *.gemspec
run: gem build --strict --verbose *.gemspec
tests:
needs:
- test
Expand Down
7 changes: 3 additions & 4 deletions json-schema.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Gem::Specification.new do |s|
s.metadata = {
'source_code_uri' => s.homepage,
'changelog_uri' => "#{s.homepage}/blob/master/CHANGELOG.md",
'homepage_uri' => s.homepage,
'bug_tracker_uri' => "#{s.homepage}/issues",
}
s.summary = 'Ruby JSON Schema Validator'
Expand All @@ -18,9 +17,9 @@ Gem::Specification.new do |s|
s.license = 'MIT'

s.add_development_dependency 'minitest', '~> 5.0'
s.add_development_dependency 'rake'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'voxpupuli-rubocop', '~> 2.8.0'
s.add_development_dependency 'webmock'
s.add_development_dependency 'webmock', '~> 3.23'

s.add_runtime_dependency 'addressable', '>= 2.8'
s.add_runtime_dependency 'addressable', '~> 2.8'
end

0 comments on commit 05cc29f

Please sign in to comment.