DOCSP-61809: Ruby Getting Started - #12
Open
tmcneil-mdb wants to merge 1 commit into
Open
Conversation
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.
Summary | JIRA
Adds the Ruby Get Started sample application under ruby/hello-world, mirroring the existing java/hello-world and java-rs/hello-world samples. The app connects to a MongoDB deployment using the connection string in the MONGODB_URI environment variable, seeds a few sample product documents into the get_started.products collection, then queries and prints one of them.
Changes
ruby/hello-world/hello_world.rb— sample applicationruby/hello-world/Gemfile— dependencies (mongo ~> 2.0, plus bigdecimal)ruby/hello-world/README.md— setup and run instructionsruby/hello-world/.gitignore— ignores .bundle/, vendor/bundle/, Gemfile.lockNotes foe Reviewer:
Version floor.
The Ruby driver Get Started page states "Ruby 2.7 or later," but 2.7 is EOL (Mar 2023). 3.2 reached EOL (Mar 2026). The README states Ruby 3.3 or later (the tested, currently-supported version).
Dependency management — Gemfile vs. bundler/inline. This sample uses a Gemfile + bundle install, consistent with the dependency-manifest pattern of the other samples (pom.xml, composer.json). The docs page instead uses bundler/inline to keep the quickstart a single self-contained file.