First of all, thanks for thinking of contributing to this project. 😄
Before sending a Pull Request, please make sure that you're assigned the task on a GitHub issue.
- If a relevant issue already exists, discuss on the issue and get it assigned to yourself on GitHub.
- If no relevant issue exists, open a new issue and get it assigned to yourself on GitHub.
Please proceed with a Pull Request only after you're assigned. It'd be sad if your Pull Request (and your hardwork) isn't accepted just because it isn't idealogically compatible.
-
Install required dependencies.
- For the Mongo Importer, install Mongo.
- For the RData Importer, RData Exporter, RDS Importer or RDS Exporter, install R and set the R_HOME
variable in your shell configuration:
export R_HOME=/usr/lib/R # For Unix systems export R_HOME=/usr/local/Frameworks/R.framework/Resources # For Mac systems
- For the Redis Importer, install Redis and start the redis server by typing
redis-server
in another terminal window, before running the test suites.
For any issue(s) related to installation steps, kindly refer to the configurations mentioned in the
.travis.yml
file. -
Clone this repository and install all the required gem dependencies.
git clone https://github.com/athityakumar/daru-io.git cd daru-io gem install bundler bundle install
-
Checkout to a different git branch (say,
adds-format-importer
). -
Add any gem dependencies required for the Format Importer to the
:optional
group of the Gemfile. -
Add code and YARD documentation to
lib/daru/io/importers/format.rb
, consistent with other IO modules. -
Add tests to
spec/daru/io/importers/format_spec.rb
. Add any.format
files required for importer inspec/fixtures/format/
directory. -
Run the rspec test-suite.
# Runs test suite for all Importers & Exporters bundle exec rspec # Runs test-suite only for the newly added Format Importer bundle exec rspec spec/daru/io/importers/format_spec.rb
-
Run the rubocop for static code quality comments.
# Runs rubocop test for all Importer & Exporters bundle exec rubocop # Runs rubocop test only for the newly added Format Importer bundle exec rubocop lib/daru/io/importers/format.rb spec/daru/io/importers/format_spec.rb
-
Send a Pull Request back to this repository. 🎉