diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index a766028..1963b82 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['2.7', '3.0', '3.1', '3.2'] + ruby-version: ['3.0', '3.1', '3.2'] steps: - uses: actions/checkout@v3 diff --git a/CHANGES.md b/CHANGES.md index 4981275..c2e80a8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # CHANGES +## 1.9.0 (2023-06-13) + +* Feature: Switch to ruby 3.2 +* Feature: Remove support for ruby 2.7 (end of life) +* Dev: Upgrade dev setup and base docker image to ruby 3.2 + ## 1.8.0 (2022-08-23) * Feature: Add support for ruby 3.1 diff --git a/Dockerfile b/Dockerfile index 92bcbc7..a22a484 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.1-alpine@sha256:499a310e8fab835ad47ab6251302aba1fd6ba91ebdfa22d621f495a5d0ded170 as build +FROM ruby:3.2-alpine@sha256:1df6125b0f90e087123698e1b2df1c6a544a40033a5a14bfa3ef7067863d3474 as build WORKDIR /app COPY bin /app/bin @@ -10,7 +10,7 @@ COPY LICENSE.md /app/ COPY stackup.gemspec /app/ RUN gem build stackup.gemspec -FROM ruby:3.1-alpine@sha256:499a310e8fab835ad47ab6251302aba1fd6ba91ebdfa22d621f495a5d0ded170 +FROM ruby:3.2-alpine@sha256:1df6125b0f90e087123698e1b2df1c6a544a40033a5a14bfa3ef7067863d3474 MAINTAINER https://github.com/realestate-com-au/stackup diff --git a/auto/lint b/auto/lint index f435b3e..bddc735 100755 --- a/auto/lint +++ b/auto/lint @@ -5,4 +5,4 @@ cd $(dirname $0)/.. echo "+++ Running linter" # We lint on the lowest supported ruby version -./auto/ruby-2.7 rubocop +./auto/ruby-3.0 rubocop diff --git a/auto/ruby-2.7 b/auto/ruby-2.7 deleted file mode 100755 index 01c2fc3..0000000 --- a/auto/ruby-2.7 +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -set -eu -o pipefail -cd $(dirname $0)/.. - -RUBY_IMAGE="ruby:2.7@sha256:3d9c2a2d305318710c9e5a4ee001e07e227f356a40e0b6003d8440835d430770" exec auto/ruby "${@}" diff --git a/auto/ruby-3.0 b/auto/ruby-3.0 index 9106875..2e114ba 100755 --- a/auto/ruby-3.0 +++ b/auto/ruby-3.0 @@ -3,4 +3,4 @@ set -eu -o pipefail cd $(dirname $0)/.. -RUBY_IMAGE="ruby:3.0@sha256:dfb439f51e6ba58810fed23e4c4582f3e3c24e6a972ec505de27217f5036c567" exec auto/ruby "${@}" +RUBY_IMAGE="ruby:3.0@sha256:df252539300fd851c4c3f26d1d849686dd5c1bb46cf403e1d6a87d3d304a80f4" exec auto/ruby "${@}" diff --git a/auto/ruby-3.1 b/auto/ruby-3.1 index 9f2e81c..123ac97 100755 --- a/auto/ruby-3.1 +++ b/auto/ruby-3.1 @@ -3,4 +3,4 @@ set -eu -o pipefail cd $(dirname $0)/.. -RUBY_IMAGE="ruby:3.1@sha256:ffdb4e42cf4663e10c32d3ea91312b61df931b41439c16f7b88a7f6e70a65b6d" exec auto/ruby "${@}" +RUBY_IMAGE="ruby:3.1@sha256:5bb1b8ce2f236cc264ae2f2664ec226603655b9129bd9442841a91fc6bb32313" exec auto/ruby "${@}" diff --git a/auto/ruby-3.2 b/auto/ruby-3.2 new file mode 100755 index 0000000..3ae558f --- /dev/null +++ b/auto/ruby-3.2 @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -eu -o pipefail +cd $(dirname $0)/.. + +RUBY_IMAGE="ruby:3.2@sha256:5efd846bccfafcabada226808406275e92269889467d571e897afc104e8c76c9" exec auto/ruby "${@}" diff --git a/auto/test b/auto/test index 152f6e8..f8d065a 100755 --- a/auto/test +++ b/auto/test @@ -3,11 +3,11 @@ set -eu -o pipefail cd $(dirname $0)/.. +echo "+++ Running specs for ruby 3.2" +./auto/ruby-3.2 rspec + echo "+++ Running specs for ruby 3.1" ./auto/ruby-3.1 rspec echo "+++ Running specs for ruby 3.0" ./auto/ruby-3.0 rspec - -echo "+++ Running specs for ruby 2.7" -./auto/ruby-2.7 rspec diff --git a/lib/stackup/version.rb b/lib/stackup/version.rb index 4388537..1ed6b31 100644 --- a/lib/stackup/version.rb +++ b/lib/stackup/version.rb @@ -2,6 +2,6 @@ module Stackup - VERSION = "1.8.0" + VERSION = "1.9.0" end