Installation

Production

Install from rubygems.org

gem install nvd_feed_api

Development

It's better to use rbenv or asdf-vm to have latests version of ruby and to avoid trashing your system ruby.

Install from rubygems.org

gem install --development nvd_feed_api

Build from git

Just replace x.x.x with the gem version you see after gem build.

git clone https://gitlab.com/noraj/nvd_api.git nvd_feed_api
cd nvd_feed_api
gem install bundle
./bin/nvd_feed_api_setup
rake install

You can use nvd_feed_api_console to launch irb with the API required.

Alternatively to build you can use:

git clone https://gitlab.com/noraj/nvd_api.git nvd_feed_api
cd nvd_feed_api
gem install bundle
gem build nvd_feed_api.gemspec
gem install --development nvd_feed_api-x.x.x.gem

Note: if an automatic install is needed you can get the version with $ gem build nvd_feed_api.gemspec | grep Version | cut -d' ' -f4.

Run the API in irb without installing the gem

Useful when you want to try your changes without building the gem and re-installing it each time.

git clone https://gitlab.com/noraj/nvd_api.git nvd_feed_api
cd nvd_feed_api
gem install bundle
./bin/nvd_feed_api_setup
irb -Ilib -rnvd_feed_api