Codecast: Create a RubyGem 84: Update Docs and Extend ConvenienceMethods into NerdDice, Merge
Channel: Stateless Code
Date: 29/10/2021

This is the 84th video in the NerdDice create a RubyGem series. In this video Mike uses the comments from the GitHub issue to update the README and CHANGELOG for the 0.4.0 release.

In the process of writing the updates to the README, he discovers a previously unrealized opportunity to extend the ConvenienceMethods module back into the NerdDice module so that you can execute NerdDice.roll_3d20_with_advantage_plus4 without having to use include or extend in your own classes.

After updating the docs, the benchmark script is modified to used the NerdDice module version of the magic methods.

This video covers:
00:00:12 Introduction, review comments in GitHub issue
00:02:22 Create internal link in README from top section to ConvenienceMethods section
00:06:33 Write ConvenienceMethods section of README and discuss potential interactions with other method_missing implementations
00:09:11 Tweaks after proofreading
00:09:42 Extend ConvenienceMethods into the NerdDice module and add specs for it
00:13:50 Update README to reflect new functionality in NerdDice
00:15:56 Update CHANGELOG
00:17:55 Create a separate commit for extending ConvenienceMethods into NerdDice. GitHub action fails benchmark
00:20:47 Update benchmark ratios and use NerdDice module version of the magic methods in the script
00:24:06 Amend previous commit and force push
00:25:09 Merge the pull request, close the issue, and update the backlog


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.