From eb35b34838ad88ef9ca9f2007df15b1d524a2813 Mon Sep 17 00:00:00 2001 From: Adam Rice Date: Thu, 26 Dec 2024 18:00:35 +1100 Subject: [PATCH 1/2] Explicitly require base64 and csv Ruby has been trying to reduce the surface area of the standard library. While Base64 and CSV are default gems, starting with Ruby 3.4,they are no longer included in the standard library and must be explicitly included as dependencies --- roo.gemspec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roo.gemspec b/roo.gemspec index c6561c22..e1db16dc 100644 --- a/roo.gemspec +++ b/roo.gemspec @@ -23,6 +23,10 @@ Gem::Specification.new do |spec| spec.required_ruby_version = ">= 2.7.0" end + if RUBY_VERSION >= '3.4.0' + spec.add_dependency 'base64', '~> 0.2' + spec.add_dependency 'csv', '~> 3' + end spec.add_dependency 'nokogiri', '~> 1' spec.add_dependency 'rubyzip', '>= 1.3.0', '< 3.0.0' From c3b2a7abbfe5b6a1d17b878924cd4a4a3f3ad1c1 Mon Sep 17 00:00:00 2001 From: Adam Rice Date: Sun, 26 Jan 2025 16:16:05 +1100 Subject: [PATCH 2/2] Include Ruby 3.4 in the GitHub Actions workflow --- .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 2f5698f6..6416c686 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -18,8 +18,9 @@ jobs: - '3.1' - '3.2' - '3.3' + - '3.4' - ruby-head - - jruby-9.3.3.0 + - jruby-9.4.10.0 include: - ruby: ruby-head env: @@ -33,4 +34,3 @@ jobs: - run: bundle exec rake env: LONG_RUN: true -