Use TypedData
and CI-related fixes
#590
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #493
The main intention of this PR is to switch from using
Data
toTypedData
in C-Land.Data
is essentially a container object for Ruby to know that we allocate additional memory in C-Land for things outside of Rubys control, e.g. the entire FreeTDS client.TypedData
gives the Ruby VM a couple more hints about what it deals with. I am sure there is more to that. Anyhow,Data
is deprecated with Ruby 3.4, so consider this a preparation for adding Ruby 3.5 support.Then a bunch of CI-related stuff arised, which I also fix in this PR:
tiny_tds
on Windows without the precompiled stuff fails on 2.7, 3.0 and 3.1 because of a dependency conflict. I am sure it is related to this bug, but I do not have the time or motivation to investigate how to fix this for these old versions.ports
from the precompiled Ruby gem, which lead to another test failure, which I used as a chance to harmonise finding resources in theports
directory.