Skip to content

Commit

Permalink
v266 and update the release scripts
Browse files Browse the repository at this point in the history
The changelog format was updated, this change updates the deploy rake scripts.
  • Loading branch information
schneems committed Feb 20, 2024
1 parent a3fc8c5 commit 34dd436
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [v266] - 2024/02/20

- Officially deprecate SENSIBLE_DEFAULTS environment variable (https://github.com/heroku/heroku-buildpack-ruby/pull/1420)

## [v265] - 2024-01-22
Expand Down
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,17 @@ namespace :buildpack do

changelog_md = Pathname(__dir__).join("CHANGELOG.md")
contents = changelog_md.read
version_string = "## #{deploy.next_version}"
version_string = "## [#{deploy.next_version}]"
if contents.include?(version_string)
puts "Found an entry in CHANGELOG.md for #{version_string}"
else
new_section = "## Main (unreleased)\n\n#{version_string} (#{Time.now.strftime("%Y/%m/%d")})"
new_section = "## [Unreleased]\n\n#{version_string} - #{Time.now.strftime("%Y/%m/%d")}"

puts "Writing to CHANGELOG.md:\n\n#{new_section}"

changelog_md.write(contents.gsub("## Main (unreleased)", new_section))
modified = contents.gsub("## [Unreleased]", new_section)
raise "Expected CHANGELOG.md to be modified but it wasn't" if modified == changelog_md
changelog_md.write(modified)
end

version_rb = Pathname(__dir__).join("lib/language_pack/version.rb")
Expand Down
2 changes: 1 addition & 1 deletion lib/language_pack/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module LanguagePack
class LanguagePack::Base
BUILDPACK_VERSION = "v265"
BUILDPACK_VERSION = "v266"
end
end

0 comments on commit 34dd436

Please sign in to comment.