Skip to content

Conversation

@voxik
Copy link
Member

@voxik voxik commented Dec 8, 2025

There is hardly need to support anything older then RubyGems 2.0, therefore drop the compatibility layer and use RubyGems classes directly

@voxik voxik force-pushed the drop-pre-rubygems-20-support branch from 369ee1f to 9377466 Compare December 8, 2025 16:59
voxik added 3 commits December 8, 2025 17:59
There is hardly need to support anything older then RubyGems 2.0,
therefore this compatibility layer can be safely dropped and
`Gem::SpecFetcher` provided by RubyGems can be used directly.

This change was actually triggered by Ruby 4.0, which have moved
`ostruct` out of StdLib into bundled gems and therefore it would need to
become explicit dependency. Therefore better to drop it.
There is hardly need to support anything older then RubyGems 2.0,
therefore this compatibility layer can be safely dropped and
`Gem::Package` provided by RubyGems can be used directly.
While we are not testing RubyGems older then 2.0 for some while already
\[[1]\], this actually drops the compatibility layer and could in theory
break somebody.

[1]: fedora-ruby@7b5fbc1
@voxik voxik force-pushed the drop-pre-rubygems-20-support branch from 9377466 to 5930c85 Compare December 8, 2025 16:59
@voxik
Copy link
Member Author

voxik commented Dec 8, 2025

Related to #127

@voxik voxik merged commit 82ca4ba into fedora-ruby:master Dec 8, 2025
11 checks passed
@voxik voxik changed the title Drop pre rubygems 20 support Drop pre-rubygems 2.0 support Dec 8, 2025
@voxik voxik deleted the drop-pre-rubygems-20-support branch December 8, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant