Repository navigation
docs-v1.1.0 (ruby): note that mysql2 needs fiddle on Windows with Ruby 4.0+ - #51
Closed
aaron-congo wants to merge 1 commit into
Closed
aaron-congo wants to merge 1 commit into
aaron-congo wants to merge 1 commit into
Conversation
5 tasks done
Contributor
Author
|
Superseded by #58 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Updates the Ruby Getting started section on
ruby/1.1.0to match aws/aws-advanced-ruby-driver-wrapper#224.#46 found that on Ruby 3.4+ the wrapper raised
LoadErrorin bundles that don't include the gems Ruby no longer installs by default. Onmain(the current release), #46 fixes this by telling readers to add those gems to their Gemfile. From 1.1.0 the wrapper declares the gems it needs (bigdecimal,logger) and no longer usesbase64, so that warning doesn't apply to this branch.What's left is
fiddle. On Windows,mysql2requiresfiddleto loadlibmysql.dll, but its gemspec doesn't declare it. Ruby 4.0 removedfiddlefrom the default gems, so a Windows bundle usingmysql2on Ruby 4.0+ raisesLoadErrorunless it addsgem 'fiddle'. This PR adds a warning saying so to step 1 of Getting started.The wrapper itself never requires
fiddle, so it isn't added to the wrapper's gemspec. Declaring it there would install a native extension for every user, includingpgusers and everyone not on Windows, to work around a dependencymysql2leaves undeclared.Which docs are affected?
Ruby overview page (Getting started, step 1).
Checklist