did_you_mean
The gem that has been saving people from typos since 2014
File Explorer
- ruby.yml
- sync-ruby.yml
- dependabot.yml
- memory_usage.rb
- speed.rb
- memory_usage.rb
- speed.rb
- memory_usage.rb
- require_path_checker.rb
- speed.yml
- CHANGELOG.md.erb
- changelog_generator.rb
- human_typo_api.md
- tree_spell_algorithm.md
- tree_spell_checker_api.md
- calculator.rb
- dictionary_generator.rb
- incorrect_words.yaml
- name_error.rb
- plain_formatter.rb
- verbose_formatter.rb
- class_name_checker.rb
- variable_name_checker.rb
- key_error_checker.rb
- method_name_checker.rb
- name_error_checkers.rb
- null_checker.rb
- pattern_key_name_checker.rb
- require_path_checker.rb
- experimental.rb
- formatter.rb
- jaro_winkler.rb
- levenshtein.rb
- spell_checker.rb
- tree_spell_checker.rb
- verbose.rb
- version.rb
- did_you_mean.rb
- test_name_error_extension.rb
- test_jaro_winkler.rb
- book.rb
- mini_dir.yml
- rspec_dir.yml
- helper.rb
- test_class_name_check.rb
- test_key_name_check.rb
- test_method_name_check.rb
- test_pattern_key_name_check.rb
- test_require_path_check.rb
- test_uncorrectable_name_check.rb
- test_variable_name_check.rb
- change_word.rb
- human_typo.rb
- test_change_word.rb
- test_explore.rb
- test_human_typo.rb
- helper.rb
- test_ractor_compatibility.rb
- test_spell_checker.rb
- test_tree_spell_checker.rb
- .gitignore
- CHANGELOG.md
- did_you_mean.gemspec
- Gemfile
- LICENSE.txt
- Rakefile
- README.md
# Use via CDN
jsDelivrjsDelivr 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 ▼
bundle
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 ▼
git checkout
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 ▼
git commit
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 ▼
git push
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 ▼
irb
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 ▼
rails console
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
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 ▼
lib
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:
