Sha256: ae7955c2fb7c3fad5b7b6fbd8940bab9fedfa55aa0cf861ac91f0f1b8b24a855

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

# Installation

## Production

### Install from rubygems.org

```
$ gem install nvd_feed_api
```

## Development

It's better to use [rbenv](https://github.com/rbenv/rbenv) 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
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nvd_feed_api-0.4.0 pages/INSTALL.md
nvd_feed_api-0.3.1 pages/INSTALL.md