Contributing
October 17, 2022 ยท View on GitHub
Bug reports and pull requests are welcome on GitHub at https://github.com/ChaelCodes/jekyll-twitch. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
Gem Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
Demo Site Development
Jekyll-Twitch has a demo site for testing and demonstrating its capabilities. It is located in docs and deployed via GitHub Actions to GitHub Pages. It uses the copy of jekyll-twitch available on main, but can be customized to look at a specific branch in the Gemfile.
Run it locally
- navigate to the docs directory
cd docs bundle installInstalls all gems and dependencies according to Gemfile.lockbundle update jekyll-twitchUpdates Jekyll-twitch to the newest version from mainbundle exec jekyll serve --host localhost --port 4000Run the server - we need the port and host for Twitch's embeds
Website should be up and running at http://localhost:4000/jekyll-twitch/
You will need to rerun steps 3 and 4 whenever there are changes on main or pushed to your branch that you want to test on the site.
Release a new Version
- Ensure all desired changes are merged to the
mainbranch - checkout a branch with the version number eg.
git checkout -b 1.0.1 - Update the version number in version.rb
- We use semantic versioning
- Add a new post to the demo site describing the changes, and linking to the PRs that changed them
bundle update jekyll-twitchon the docs site to get the newest changes frommain- Test
mainon the demo site - Run
bundle exec rake release- This will create a git tag for the version, push git commits and tags, and push the
.gemfile to rubygems.org.
- This will create a git tag for the version, push git commits and tags, and push the