-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change all T_DATA objects to typed data #349
Commits on Aug 5, 2020
-
Convert PG::TypeMap derivations to TypedData objects
Classic T_DATA objects are deprecated since ruby-2.0. On the other hand TypedData objects can be checked more easy and allows some new features.
Configuration menu - View commit details
-
Copy full SHA for a5fbe31 - Browse repository at this point
Copy the full SHA a5fbe31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cf705d - Browse repository at this point
Copy the full SHA 8cf705dView commit details -
Convert PG::Connection and it's temporary objects to TypedData objects
All T_DATA objects of ruby-pg are based on TypedData_Struct now. So we're no longer using deprecated non-typed objects.
Configuration menu - View commit details
-
Copy full SHA for 3e8d343 - Browse repository at this point
Copy the full SHA 3e8d343View commit details
Commits on Aug 9, 2020
-
Make PG::Coder and derivations friendly to GC.compact
This way the VALUE references may be relocated. Since self is always referenced indirectly, marking simple coders can be omitted entirely. This partly reverts 7c1756f which was introduced as a simple fix for GC.compact compatbility.
Configuration menu - View commit details
-
Copy full SHA for df958ad - Browse repository at this point
Copy the full SHA df958adView commit details -
Make PG::TypeMap and derivations friendly to GC.compact
This way the VALUE references may be relocated. This partly reverts 7c1756f which was introduced as a simple fix for GC.compact compatbility.
Configuration menu - View commit details
-
Copy full SHA for a817bff - Browse repository at this point
Copy the full SHA a817bffView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5dcadc - Browse repository at this point
Copy the full SHA c5dcadcView commit details
Commits on Aug 15, 2020
-
Add truffleruby-head to travis-CI
In the hope that the issue with TypedData inheritance is fixed there.
Configuration menu - View commit details
-
Copy full SHA for a9c9418 - Browse repository at this point
Copy the full SHA a9c9418View commit details -
Use RUBY_TYPED_FREE_IMMEDIATELY unconditionally
It is supported since ruby-2.1 and pg supports ruby-2.2+
Configuration menu - View commit details
-
Copy full SHA for 32a4549 - Browse repository at this point
Copy the full SHA 32a4549View commit details -
Add tests for compatibility with GC.compact
@conninfo is not always defined in a describe context So define the constants in a before block and ensure the connection is closed. Moreover use rspec's :if filter to avoid indention "if: false" skips the execution of before, after and it blocks but the describe block is always executed.
Configuration menu - View commit details
-
Copy full SHA for 3b3dc1d - Browse repository at this point
Copy the full SHA 3b3dc1dView commit details