def update_version_constant(version)
      if main_include && File.exist?(main_include)
        file_contents = File.read(main_include)
        if file_contents.sub!(/^(\s+VERSION\s*=\s*)[^\s].*$/) { $1 + version.to_s.inspect }
          File.open(main_include, 'w') { |f| f << file_contents }
          modified_files << main_include
        end
      end
    end
def update_version_constant(version)
      if main_include && File.exist?(main_include)
        file_contents = File.read(main_include)
        if file_contents.sub!(/^(\s+VERSION\s*=\s*)[^\s].*$/) { $1 + version.to_s.inspect }
          File.open(main_include, 'w') { |f| f << file_contents }
          modified_files << main_include
        end
      end
    end
def update_version_constant ( version ) if main_include && File . exist? ( main_include ) file_contents = File . read ( main_include ) if file_contents . sub! ( / \s \s \s \s / ) { $1 + version . to_s . inspect } File . open ( main_include , 'w' ) { | f | f << file_contents } modified_files << main_include end end end
Updates the VERSION constant in the main include file if it exists
Updates the VERSION constant in the main include file if it exists