Flowdock
class
Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Superclass: Object

A Requirement is a set of one or more version restrictions. It supports a few (=, !=, >, <, >=, <=, ~>) different restriction operators.

Constants

PATTERN = /\A\s*(#{quoted})?\s*(#{Gem::Version::VERSION_PATTERN})\s*\z/

OPS = { #:nodoc: "=" => lambda { |v, r| v == r }, "!=" => lambda { |v, r| v != r }, ">" => lambda { |v, r| v > r }, "<" => lambda { |v, r| v < r }, ">=" => lambda { |v, r| v >= r }, "<=" => lambda { |v, r| v <= r }, "~>" => lambda { |v, r| v >= r && v.release < r.bump } }

Attributes

[R] requirements

An array of requirement pairs. The first element of the pair is the op, and the second is the Gem::Version.

Show files where this class is defined (1 file)
Register or log in to add new notes.