Install ruby
- use recommended version with devkit
- use preselected options when installing
- for mingw selection just hit ENTER at the prompt
Which components shall be installed? If unsure press ENTER [1,2,3]
Install bundler
gem install bundler
git clone https://github.com/kontent-ai/delivery-sdk-ruby.gitcd delivery-sdk-rubybundle(install all dependent packages)bundle exec rake- runs all Tests
If you want to run only one test, it is possible to use this command
rake spec SPEC=<PATH-TO-TEST> SPEC_OPTS="-e \"test identification (first it parameter)\""- example
rake spec SPEC=spec/delivery_spec.rb SPEC_OPTS="-e \"handle empty value\""
- example
bundle(install all dependent packages)rake build- creates file
kontent-ai-delivery-<VERSION>.gemfile in the project's root folder
- creates file