Skip to content

Commit

Permalink
Add ostruct gem to Gemfile to prevent an error in development with …
Browse files Browse the repository at this point in the history
…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 '<top (required)>'
# ./spec/acceptance/typhoeus/typhoeus_hydra_spec.rb:5:in '<top (required)>'
```

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.
  • Loading branch information
koic committed Feb 6, 2025
1 parent d66d1cd commit 3acba79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source 'https://rubygems.org/'

gemspec

gem 'ostruct'
gem 'rake'

platforms :jruby do
Expand Down

0 comments on commit 3acba79

Please sign in to comment.