@StatelessCode
  @StatelessCode
Stateless Code | Fix a Documentation Bug Referring to the Wrong Project @StatelessCode | Uploaded March 2023 | Updated October 2024, 6 hours ago.
In our other series for the NerdDice RubyGem, we were attempting to adapt the CONTRIBUTING.md file from this project and discovered that the file from NerdDice.com was already referring to the issues list for the RubyGem project instead of the Rails Project. We added an item to the backlog of this project in that video. In this video, we take care of it.

We use the project-level search and replace in Visual Studio Code to replace the instances of the other project name followed by a slash with the correct project name. (We do replace with a typo at first and then need to do a second replace to fix it.)

After pushing the code to the repo, we test it to make sure that the links in the CONTRIBUTING and README files are pointing to the issues log for the correct project.

This video covers:
00:00:12 Introduction
00:01:24 Demonstrate the problem
00:02:18 Use search and replace at the project level to find "nerd_dice/" (replaced with typo)
00:04:34 Detect and fix the typo with a second search and replace
00:05:31 Review the git diff to ensure the correct changes
00:06:21 Add, commit, and push the code. Open a pull request.
00:07:17 Test that the changed links navigate to the correct location
00:10:00 Merge the pull request and finish up

#ruby #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #documentation #bugfix #readme #markdown #githubmarkdown #vscode

See other related StatelessCode videos:
- Add a CONTRIBUTING.md File to the Project to Help with Collaboration youtu.be/BI7zcbbPREk
- Create a RubyGem 92: Add Contributing Guidelines to the Project youtu.be/IiUWiV2svIU

This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
Fix a Documentation Bug Referring to the Wrong ProjectWrite Devise System Tests for Password Change via FormInstall Visual Studio Code on Ubuntu 24.04Codecast: Create a RubyGem 75: Test Drive in the Console and Try to Break ThingsRemove the Webdrivers Gem from a Rails 7 App and Update Selenium WebdriverCodecast: statelesscode.com WordPress 14: Add Finishing Touches and Launch the SiteCodecast: Getting Started with Rails 7 06: Resourceful Routes for Articles and the link_to HelperCodecast: Create a RubyGem 80: Refactor ConvenienceMethods - Part 2Why Stateless Code?Codecast: Create a RubyGem 83: Ensure Adequate Commenting for ConvenienceMethods ModuleCodecast: Getting Started with Rails 7 14: Refactor into Comment PartialsCreate a RubyGem 92: Add Contributing Guidelines to the Project

Fix a Documentation Bug Referring to the Wrong Project @StatelessCode

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER