From 756f58a4e20347f65f809f88e142a9673b961b4a Mon Sep 17 00:00:00 2001 From: sachin007jain Date: Mon, 11 Apr 2022 13:27:18 +0530 Subject: [PATCH] Support for ruby 3.1 and CI run on main branch Signed-off-by: sachin007jain --- .github/workflows/ci.yml | 4 ++-- fauxhai-ng.gemspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 727b9aa7..c9067cf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,14 +4,14 @@ on: pull_request: push: branches: - - master + - main jobs: test: runs-on: ubuntu-latest strategy: matrix: - ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0'] + ruby: [ '2.7', '3.0', '3.1' ] name: Validate JSON on Ruby ${{ matrix.ruby }} steps: - uses: actions/checkout@v2 diff --git a/fauxhai-ng.gemspec b/fauxhai-ng.gemspec index ab4139a7..f7ecf8b5 100644 --- a/fauxhai-ng.gemspec +++ b/fauxhai-ng.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/chefspec/fauxhai" spec.license = "MIT" - spec.required_ruby_version = ">= 2.3" + spec.required_ruby_version = ">= 2.7" spec.files = %w{LICENSE Gemfile fauxhai-ng.gemspec} + Dir.glob("{lib,bin}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } spec.executables = "fauxhai"