The geofence customer filter
If you have asdf runtime manager installed you may use following snippet to install all dependencies and run the filter
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf install
Bundle installs required gems
bundle install
bundle exec bin/filter samples/customers
To run specs and linter checks
bundle exec rspec # to check if no tests were failed
bundle exec rubocop # to check if code properly formatted
Docker is a quick way to start application with no development dependencies
docker build -t filterapp .
docker run --rm filterapp bin/filter samples/customers
In order to run test suits with Docker
docker build -f Dockerfile.dev -t filterapp-dev .
docker run --rm filterapp-dev bundle exec rspec
docker run --rm filterapp-dev bundle exec rubocop