INNER CODE UNIT · Ruby

calculate_max_component_length

hibernate/hibernate-ogm · src/main/release-scripts/pre-release.rb:199

def calculate_max_component_length(processed_issues)
  max = 0
  processed_issues.each do |issue|
    if issue['components'].length > max
     max = issue['components'].length
    end
  end
  return max
end

#######################################################################################################################
# Updates version and date in README.md
def update_readme(readme_file_name, release_version)
  readme = File.read(readme_file_name)
  updated_readme = readme.gsub(/^Version:.*$/, "Version: #{release_version} - #{$now.strftime("%d %b %Y")}")

  # To write changes to the file, use:
  File.open(readme_file_name, "w") {|file| file.puts updated_readme }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…