You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: version_bump.rb
    path of file: ./repos/newrelic-ruby-agent/lib/tasks/helpers
    
    the code of the file until where you have to start completion: # This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

module VersionBump
  MAJOR = 0
  MINOR = 1
  TINY = 2
  VERSION = {major: MAJOR, minor: MINOR, tiny: TINY}

  # Updates version.rb with new version number
  def self.update_version
    bump_type = determine_bump_type
    file = read_file('lib/new_relic/v
    
  def self.update_version
    bump_type = determine_bump_type
    file = read_file('lib/new_relic/version.rb')
    new_version = {}

    VERSION.each do |key, current|
      file.gsub!(/(#{key.to_s.upcase} = )(\d+)/) do
        match = Regexp.last_match

        new_version[key] = if bump_type == current # bump type, increase by 1
          match[2].to_i + 1
        elsif bump_type < current # right of bump type, goes to 0
          0
        else # left of bump type, stays the same
          match[2].to_i
        end

        match[1] + new_version[key].to_s
      end
    end