From 3acba799aaf06515421df3b961ad2d80a2b05376 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Thu, 6 Feb 2025 12:15:02 +0900 Subject: [PATCH] Add `ostruct` gem to Gemfile to prevent an error in development with Ruby 3.5 This PR adds `ostruct` gem to Gemfile to fix the following Ruby 3.5 CI build error: ```console An error occurred while loading ./spec/acceptance/typhoeus/typhoeus_hydra_spec.rb. - Did you mean? rspec ./spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb Failure/Error: require 'ostruct' LoadError: cannot load such file -- ostruct # ./spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb:1:in '' # ./spec/acceptance/typhoeus/typhoeus_hydra_spec.rb:5:in '' ``` https://github.com/bblimke/webmock/actions/runs/13171078861/job/36761473227?pr=1097 Avoiding the use of `OpenStruct` is certainly an option, but since this module is only used in tests, the simplest solution has been chosen. --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 0130a9232..58a72818d 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source 'https://rubygems.org/' gemspec +gem 'ostruct' gem 'rake' platforms :jruby do