From 971ed443242d2d4a4b10cc68b58cb988c0e8e4e6 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 7 Feb 2024 20:52:43 +0100 Subject: [PATCH 1/2] gemspec: Add version requirements --- puppet-syntax.gemspec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/puppet-syntax.gemspec b/puppet-syntax.gemspec index dce8de0..d180977 100644 --- a/puppet-syntax.gemspec +++ b/puppet-syntax.gemspec @@ -18,11 +18,11 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.7' - spec.add_dependency 'puppet', '>= 7' - spec.add_dependency 'rake' + spec.add_dependency 'puppet', '>= 7', '< 9' + spec.add_dependency 'rake', '~> 13.1' - spec.add_development_dependency 'pry' - spec.add_development_dependency 'rb-readline' + spec.add_development_dependency 'pry', '~> 0.14.2' + spec.add_development_dependency 'rb-readline', '~> 0.5.5' spec.add_development_dependency 'voxpupuli-rubocop', '~> 2.4.0' end From 56dc50207cad73ca42b31e57a106bbce2c8fb0c3 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 7 Feb 2024 20:55:20 +0100 Subject: [PATCH 2/2] CI: Build Gems ins strict & verbose mode --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 304763f..fbf5857 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: env: BUNDLE_WITHOUT: release - name: Build gem - run: gem build *.gemspec + run: gem build --strict --verbose *.gemspec - name: Publish gem to rubygems.org run: gem push *.gem env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 60ba696..df68d59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,8 @@ jobs: bundler-cache: true - name: Run tests run: bundle exec rake + - name: Build gem + run: gem build --strict --verbose *.gemspec tests: needs: