# Nocode #### Execute Ruby code through YAML [![Ruby Gem CI](https://github.com/mattruggio/nocode/actions/workflows/rubygem.yml/badge.svg)](https://github.com/mattruggio/nocode/actions/workflows/rubygem.yml) **Warning**: This library is currently experimental. This is a proof of concept showing how a YAML interface could be draped over arbitrary Ruby code. The YAML contains a series of steps with each step mapping to a specific Ruby class. The Ruby classes just have one responsibility: to implement #perform. ## Installation To install through Rubygems: ```` gem install nocode ```` You can also add this to your Gemfile using: ```` bundle add nocode ```` ## Examples ### A Simple File Copier TODO ### CSV-to-JSON File Converter TODO ## Contributing ### Development Environment Configuration Basic steps to take to get this repository compiling: 1. Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/) (check nocode.gemspec for versions supported) 2. Install bundler (gem install bundler) 3. Clone the repository (git clone git@github.com:mattruggio/nocode.git) 4. Navigate to the root folder (cd nocode) 5. Install dependencies (bundle) ### Running Tests To execute the test suite run: ````bash bundle exec rspec spec --format documentation ```` Alternatively, you can have Guard watch for changes: ````bash bundle exec guard ```` Also, do not forget to run Rubocop: ````bash bundle exec rubocop ```` ### Publishing Note: ensure you have proper authorization before trying to publish new versions. After code changes have successfully gone through the Pull Request review process then the following steps should be followed for publishing new versions: 1. Merge Pull Request into master 2. Update `version.rb` using [semantic versioning](https://semver.org/) 3. Install dependencies: `bundle` 4. Update `CHANGELOG.md` with release notes 5. Commit & push master to remote and ensure CI builds master successfully 6. Run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). ## Code of Conduct Everyone interacting in this codebase, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mattruggio/nocode/blob/master/CODE_OF_CONDUCT.md). ## License This project is MIT Licensed.