Module: VersionBoss::Gem
- Defined in:
- lib/version_boss/gem.rb,
lib/version_boss/gem/regexp.rb,
lib/version_boss/gem/version.rb,
lib/version_boss/gem/command_line.rb,
lib/version_boss/gem/version_file.rb,
lib/version_boss/gem/version_file_factory.rb,
lib/version_boss/gem/version_file_sources.rb,
lib/version_boss/gem/incrementable_version.rb,
lib/version_boss/gem/version_file_sources/base.rb,
lib/version_boss/gem/version_file_sources/gemspec.rb,
lib/version_boss/gem/version_file_sources/version.rb,
lib/version_boss/gem/version_file_sources/version_rb.rb
Overview
Classes for working with Gem versions
Defined Under Namespace
Modules: VersionFileSources Classes: CommandLine, IncrementableVersion, Version, VersionFile, VersionFileFactory
Constant Summary collapse
- REGEXP =
Match a gem_version within a string
/ (?<gem_version> (?<major>0|[1-9]\d*) \. (?<minor>0|[1-9]\d*) \. (?<patch>0|[1-9]\d*) (?<pre_release> (?: \.? [a-z]+ (?: \.? (?:[a-z]+|\d+) )* )? ) ) /x
- REGEXP_FULL =
Match a gem_version to the full string
/\A#{REGEXP.source}\z/x