From 2755ea8cc10ec63b5102c6ca37ca43f3afd1fe3f Mon Sep 17 00:00:00 2001 From: "Wynn (B.J.) Snow Orvis" Date: Wed, 3 Dec 2025 22:19:33 -0800 Subject: [PATCH 1/3] Update github actions to use newer setup-ruby and newer ruby versions --- .github/workflows/ruby.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 96efa0b..ba314f9 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.1', '3.2', '3.3', head, jruby, jruby-head] + ruby-version: ['3.2', '3.3', '3.4', head, jruby, jruby-head] steps: - uses: actions/checkout@v4 @@ -30,7 +30,7 @@ jobs: # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): # uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # 1.177.1 + uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # 1.268.0 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically From 57e5424f1116a44648e4866ca9e3a0eff8b25f3a Mon Sep 17 00:00:00 2001 From: "Wynn (B.J.) Snow Orvis" Date: Wed, 3 Dec 2025 22:24:58 -0800 Subject: [PATCH 2/3] Stop failing fast to let some tests run to completion --- .github/workflows/ruby.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index ba314f9..3293527 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -21,6 +21,7 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: ruby-version: ['3.2', '3.3', '3.4', head, jruby, jruby-head] From 37c3d992cd4b8e087df1b329cf7c27a610017a9f Mon Sep 17 00:00:00 2001 From: "Wynn (B.J.) Snow Orvis" Date: Wed, 3 Dec 2025 22:48:15 -0800 Subject: [PATCH 3/3] Fix gemspec loading on Ruby 3.5+ --- recursive-open-struct.gemspec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/recursive-open-struct.gemspec b/recursive-open-struct.gemspec index f51603b..1e851f2 100644 --- a/recursive-open-struct.gemspec +++ b/recursive-open-struct.gemspec @@ -1,10 +1,12 @@ # -*- encoding: utf-8 -*- - -require './lib/recursive_open_struct/version' +name = "recursive-open-struct" +version = File.foreach(File.join(__dir__, "lib", "recursive_open_struct", "version.rb")) do |line| + /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1 +end Gem::Specification.new do |s| - s.name = "recursive-open-struct" - s.version = RecursiveOpenStruct::VERSION + s.name = name + s.version = version s.authors = ["William (B.J.) Snow Orvis"] s.email = "aetherknight@gmail.com" s.date = Time.now.utc.strftime("%Y-%m-%d")