This document provides guidelines and instructions for developers who wish to contribute to the development of the HtmlScssClassChecker gem. This guide covers setting up a development environment, making changes, and submitting contributions.
-
Clone the Repository: First, clone the repository to your local machine. Use the following command, replacing
REPO_URLwith the actual URL of the repository:git clone REPO_URL cd html_scss_class_checker -
Install Dependencies: Make sure you have Bundler installed, then run:
bundle install
This will install all the necessary dependencies for the gem.
-
Create a Feature Branch: When working on a new feature or bug fix, create a new branch:
git checkout -b feature/my-new-feature
or
git checkout -b bugfix/my-bug-fix
-
Code Changes: Make your code changes, ensuring to follow the coding standards and guidelines of the project. Add or modify tests as appropriate for your changes.
-
Running Tests: Run the test suite to ensure your changes haven't introduced any regressions:
rake spec
-
Update Documentation: If your changes introduce new features or modify existing behavior, update the documentation accordingly.
-
Commit Your Changes: Once you're satisfied with your changes and all tests pass, commit your changes:
git add . git commit -m "Add my new feature"
-
Push Your Branch: Push the feature or bugfix branch to your fork:
git push origin feature/my-new-feature
-
Create a Pull Request: Go to the original
HtmlScssClassCheckerrepository on GitHub and create a new pull request. Provide a clear description of the changes and any relevant issue numbers. -
Code Review: Once your pull request is opened, it will be reviewed by the maintainers. Engage in the code review process, addressing any feedback or comments.
-
Merging: After your pull request has been approved, it will be merged into the main branch.
- Ruby Style Guide: Familiarize yourself with the Ruby Style Guide to maintain consistency in code.
- Testing with RSpec: Learn more about testing Ruby applications with RSpec.
If you have any questions or need help with setting up your development environment, feel free to open an issue in the repository for assistance.
Thank you for contributing to HtmlScssClassChecker!