verify_gem

verify_gem(gem_data) Instance Public methods Given a gem file's contents, validates against its own MD5 checksum gem_data String Contents of the gem file

verify_gem_file

verify_gem_file(gem_path) Instance Public methods Given the path to a gem file, validates against its own MD5 checksum gem_path String Path to gem file

correct?

correct?(version) Class Public methods True if the version string matches RubyGems' requirements.

create

create(input) Class Public methods REFACTOR: There's no real reason this should be separate from initialize.

new

new(version) Class Public methods Constructs a Version from the version string. A version string is a series of digits or ASCII letters separated by dots.

<=>

<=>(other) Instance Public methods Compares this version with other returning -1, 0, or 1 if the other version is larger, the same, or smaller than this one. Attempts to compare to something that's not a Gem::Version return nil.

approximate_recommendation

approximate_recommendation() Instance Public methods A recommended version for use with a ~> Requirement.

bump

bump() Instance Public methods Return a new version object where the next to the last revision number is one greater (e.g., 5.3.1 => 5.4). Pre-release (alpha) parts, e.g, 5.3.1.b.2 => 5.4, are ignored.

encode_with

encode_with(coder) Instance Public methods

eql?

eql?(other) Instance Public methods A Version is only eql? to another version if it's specified to the same precision. Version â1.0â is not the same as version â1â.