Skip to content

DOCSP-61809: Ruby Getting Started - #12

Open
tmcneil-mdb wants to merge 1 commit into
mainfrom
DOCSP-61809-Ruby-Getting-Started
Open

DOCSP-61809: Ruby Getting Started#12
tmcneil-mdb wants to merge 1 commit into
mainfrom
DOCSP-61809-Ruby-Getting-Started

Conversation

@tmcneil-mdb

Copy link
Copy Markdown
Collaborator

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 application
  • ruby/hello-world/Gemfile — dependencies (mongo ~> 2.0, plus bigdecimal)
  • ruby/hello-world/README.md — setup and run instructions
  • ruby/hello-world/.gitignore — ignores .bundle/, vendor/bundle/, Gemfile.lock
  • Added the Ruby entry to the root README
  • Verified on Ruby 3.3.0: ruby -c passes, bundle install resolves the mongo gem. (End-to-end run against a live deployment.)

Notes foe Reviewer:

  1. 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).

  2. 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.

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