Class: VersionBoss::Gem::VersionFileSources::Gemspec

Inherits:
Base
  • Object
show all
Defined in:
lib/version_boss/gem/version_file_sources/gemspec.rb

Overview

Checks for the gem's version in a file named *.gemspec

Constant Summary collapse

VERSION_REGEXP =

The regexp to find the version and surrounding content within the gemspec

/
  \A
    (?<content_before>
      .*
      \.version\s*=\s*(?<quote>['"])
    )
    (?<version>#{VersionBoss::Gem::REGEXP.source})
    (?<content_after>\k<quote>.*)
  \z
/xm

Method Summary

Methods inherited from Base

find