tasks/updater.rb
# Update version.rb file with MELODIC_SHA
Update version.rb file with MELODIC_SHA
Update version . rb file with MELODIC_SHA
def store_version
    path    = 'lib/melodic/version.rb'
    content = File.read(path).sub(/MELODIC_SHA\s*=\s*['"][^'"]*['"]/, "MELODIC_SHA = '#{@branch_sha}'")
    File.open(path, 'w') { |f| f.write(content) }
  end
def store_version path = 'lib/melodic/version.rb' content = File . read ( path ) . sub ( / MELODIC_SHA \s *= \s *['"][^'"]*['"] / , "MELODIC_SHA = '#{@branch_sha}'" ) File . open ( path , 'w' ) { | f | f . write ( content ) } end
Update version.rb file with MELODIC_SHA
Update version . rb file with MELODIC_SHA