This utility was created to package custom feature files into an application specific gem. It can be cloned and used for applications where static features need to be shared with a external frameworks, for example, packaging features to be installed as a gem by a downstream test suite on an automated build and release environment. The gem can be renamed to whatever makes most sense to your implimentation.
$ git clone git@github.com:dataday/features-packager.git features-packager
$ cd features-packager
Build and install the gem locally.
# Add your static feature files to ~/features, then.
$ gem build features-packager.gemspec; gem install features-packager
Please note that --user-install maybe required to install the gem locally and if no Ruby Version Manager (RVM) is installed. It is recommended that you use a stable up-to-date RVM.
The following commands have been provided.
$ features-packager version
$ features-packager help
List features ahead of publishing them.
$ features-packager features list all
Publish features to a custom directory.
$ features-packager features publish /path/to/directory
Clear features from a custom directory.
$ features-packager features clear /path/to/directory
The following command will publish documentation associated to the gem.
$ yardoc
The following command will run RuboCop static code analyzer.
$ rubocop
This gem uses Semantic Versioning.
This gem is licensed under the MIT LICENSE.
Please note that Thor also provides command line support but at the time of writing cmdparse was used. Once Thor version 0.20.0 is released it is likely that I will rewrite this gem and improve on it, so, this is just a heads up.