From a3b114afe19adad6bac09f4a20e2f66e16c04619 Mon Sep 17 00:00:00 2001 From: Erwan Date: Thu, 5 Sep 2024 10:27:18 +0200 Subject: [PATCH 1/5] Removes ruby 2.7, adds 3.3 in build matrix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54f1a98bc..af0cc7ed7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - ruby: [2.7, '3.0', 3.1, 3.2] + ruby: ['3.0', 3.1, 3.2, 3.3] steps: - name: Checkout code From f13f8296ea43cfc73977e8dfc862633ea973b914 Mon Sep 17 00:00:00 2001 From: Erwan Date: Thu, 5 Sep 2024 10:28:11 +0200 Subject: [PATCH 2/5] Drops support for ruby 2.7 --- wpscan.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpscan.gemspec b/wpscan.gemspec index 949dcc717..12ab71402 100644 --- a/wpscan.gemspec +++ b/wpscan.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |s| s.name = 'wpscan' s.version = WPScan::VERSION s.platform = Gem::Platform::RUBY - s.required_ruby_version = '>= 2.7' + s.required_ruby_version = '>= 3.0' s.authors = ['WPScanTeam'] s.email = ['contact@wpscan.com'] s.summary = 'WPScan - WordPress Vulnerability Scanner' From 69c89471bf15ce4a13cfbef6b112346376d3d447 Mon Sep 17 00:00:00 2001 From: Erwan Date: Thu, 5 Sep 2024 10:46:10 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a57541c61..71ebffdc1 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ ## Prerequisites - (Optional but highly recommended: [RVM](https://rvm.io/rvm/install)) -- Ruby >= 2.7 - Recommended: latest +- Ruby >= 3.0 - Recommended: latest - Curl >= 7.72 - Recommended: latest - The 7.29 has a segfault - The < 7.72 could result in `Stream error in the HTTP/2 framing layer` in some cases From 15c2db9e18e9973b9b98fbeeea6b81f55cb10419 Mon Sep 17 00:00:00 2001 From: Erwan Date: Thu, 5 Sep 2024 11:14:26 +0200 Subject: [PATCH 4/5] Update spec logs to run slow specs last --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af0cc7ed7..ff6b27b04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,9 +31,11 @@ jobs: run: | bundle exec rubocop + # Specs which are not tagged as slow will run first to speed up the process in case of failure - name: rspec run: | - bundle exec rspec + bundle exec rspec --tag ~slow + bundle exec rspec --tag slow - name: Coveralls uses: coverallsapp/github-action@master From e87cd17913ceb1e11217d8fc9107c3ef26a458fc Mon Sep 17 00:00:00 2001 From: Erwan Date: Thu, 5 Sep 2024 11:21:39 +0200 Subject: [PATCH 5/5] Update build.yml --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff6b27b04..aef2967bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,11 +31,12 @@ jobs: run: | bundle exec rubocop - # Specs which are not tagged as slow will run first to speed up the process in case of failure + # Runs Specs which are not tagged as slow first to speed up the process in case of failure in those + # Then will run the full specs suite (and generate the final coverage report) - name: rspec run: | bundle exec rspec --tag ~slow - bundle exec rspec --tag slow + bundle exec rspec - name: Coveralls uses: coverallsapp/github-action@master