Skip to content

Releases: ConvincibleMedia/ruby-gem-demand

1.1.1

26 Sep 14:11
8a588e1

Choose a tag to compare

  • Removed reliance on ActiveSupport
  • More robust test suite
  • Updated docs

1.1.0

16 Jan 17:08
0e6a1c5

Choose a tag to compare

Improved compatibility of the gem, and added in switches to adjust how it works.

1.0.0

08 Jan 18:01

Choose a tag to compare

Adds a top level demand(variable) method to return a variable if it's present and optionally of the right type. Otherwise, a default or nil is returned. demand() replaces long lines of repetitive code to check for nil?/present?/empty?, etc., hard-to-read ternary operators (?:) and if statements. A block can also be specified, which only runs (with the variable) if the checks pass.