did_you_mean

(★ 1,881)

The gem that has been saving people from typos since 2014

File Explorer

  • .gitignore
  • CHANGELOG.md
  • did_you_mean.gemspec
  • Gemfile
  • LICENSE.txt
  • Rakefile
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

bundle

View Details ▼

Dependency manager for the Ruby programming language.

bundle install

Install all gems defined in the `Gemfile` expected in the working directory:

bundle exec {{command}} {{arguments}}

Execute a command in the context of the current bundle:

bundle update

Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:

🔍

git checkout

View Details ▼

Checkout a branch or paths to the working tree.

git checkout -b {{branch_name}}

Create and switch to a new branch:

git checkout -b {{branch_name}} {{reference}}

Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):

git checkout {{branch_name}}

Switch to an existing local branch:

🔍

git commit

View Details ▼

Commit files to the repository.

git commit

Open an editor to write a message and commit staged files to the repository:

git commit {{[-m|--message]}} "{{message}}"

Commit staged files to the repository with the specified message:

git commit {{[-F|--file]}} {{path/to/commit_message_file}}

Commit staged files with a message read from a file:

🔍

git push

View Details ▼

Push commits to a remote repository.

git push

Send local changes in the current branch to its default remote counterpart:

git push {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart:

git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:

🔍

irb

View Details ▼

Interactive Ruby shell.

irb

Start the interactive shell:

irb --simple-prompt

Start the interactive shell with the simple prompt:

irb -f

Start the interactive shell without reading the configuration file:

🔍

rails console

View Details ▼

Interact with a Rails application.

rails console

Start the Rails console:

rails console {{[-s|--sandbox]}}

Start the Rails console and roll back all data modifications on exit:

rails console {{[-e|--environment]}} {{dev|test|production|...}}

Start the Rails console on a specified environment:

🔍

ruby

View Details ▼

Ruby programming language interpreter.
See also: `gem`, `bundler`, `rake`, `irb`, `ri`.

ruby {{path/to/script.rb}}

Execute a Ruby script:

ruby -e "{{command}}"

Execute a single Ruby command in the command-line:

ruby -c {{path/to/script.rb}}

Check for syntax errors on a given Ruby script:

🔍

lib

View Details ▼

The Microsoft Library Manager for creating and managing static libraries of object files.

lib /OUT :{{path\to\library.lib}} {{path\to\file1.obj path\to\file2.obj ...}}

Create a static library from object files:

lib /LIST {{path\to\library.lib}}

List the contents of a library:

lib {{path\to\library.lib}} {{path\to\file.obj}}

Add an object file to an existing library:

// repository documentation