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

parameterstructuredescription
gemstringName of the Ruby gem.
statestringState of the gem. This can be 'present' or 'missing'.
versionstringIf installed, the version that should be present.