gem
— the RubyGems database
The gem
check examines the local RubyGems database, and asserts that gems are installed or missing.
Examples
Check that a gem is installed:
[[gem]] gem = 'pry'
Check that a particular version is installed:
[[gem]] gem = 'bundler' version = '1.17.2'
Check that a gem is not installed:
[[gem]] gem = 'rvm' state = 'missing'
List of parameters
parameter | structure | description |
---|---|---|
gem | string | Name of the Ruby gem. |
state | string | State of the gem. This can be 'present' or 'missing' . |
version | string | If installed, the version that should be present. |