Skip to content

DOCSP-61809 Add Ruby hello-world sample application - #4

Open
mongoKart wants to merge 1 commit into
mainfrom
DOCSP-61809-ruby-hello-world
Open

DOCSP-61809 Add Ruby hello-world sample application#4
mongoKart wants to merge 1 commit into
mainfrom
DOCSP-61809-ruby-hello-world

Conversation

@mongoKart

@mongoKart mongoKart commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Adds the Ruby sample application backing the Ruby driver Get Started
page
,
alongside the existing .NET, Go, Java, Node.js, and Python samples.

Contents

  • ruby/hello-world/hello_world.rb — seeds three sample product documents
    into get_started.products, queries one, and prints it. Clears the
    collection first so repeated runs stay consistent.
  • ruby/hello-world/Gemfilemongo ~> 2.25
  • ruby/hello-world/README.md — setup and run instructions
  • ruby/hello-world/.gitignore
  • Root README.md — adds Ruby to the client library list

Follows the structure and comment style of the existing python/hello-world
and go/hello-world samples, including the guard for an unset MONGODB_URI.

Testing

ruby -c passes. Not yet run against a live deployment — the printed output
is matched by construction to the output documented on the Get Started page.

Related

Docs PR: https://github.com/10gen/docs-mongodb-internal/pull/23186
JIRA: https://jira.mongodb.org/browse/DOCSP-61809

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