Class: SemanticRelease::Updaters::GemfileLock

Inherits:
BaseUpdater
  • Object
show all
Defined in:
lib/semantic_release/updaters/gemfile_lock.rb

Class Method Summary collapse

Methods inherited from BaseUpdater

current_version, current_version_tag, gemspec_present?, semver_file

Class Method Details

.updateObject



6
7
8
9
10
11
# File 'lib/semantic_release/updaters/gemfile_lock.rb', line 6

def self.update
  return unless gemspec_present?
  return if system("git check-ignore -q Gemfile.lock")

  `bundle check && git add Gemfile.lock`
end