Class: Semverify::VersionFileSources::VersionRb
- Defined in:
- lib/semverify/version_file_sources/version_rb.rb
Overview
Checks for the gem's version in a file named lib/**/version.rb
Constant Summary collapse
- VERSION_REGEXP =
The regexp to find the version and surrounding content within the version.rb file
/ \A (?<content_before> .* VERSION\s*=\s*(?<quote>['"]) ) (?<version>#{Semverify::SEMVER_REGEXP.source}) (?<content_after>\k<quote>.*) \z /xm