class GitSemverCop::Gemspec

Class for updating Gemspec

Private Instance Methods

update_version() click to toggle source
# File lib/git-semver-cop/version_files/gemspec.rb, line 10
def update_version
  contents.sub!(/(\.version\s+=\s+).+$/,
                '\1"' + current_version + '"')
end