aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/release_announcement_draft.erb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-07-22 19:10:17 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2017-07-22 21:17:25 +0200
commit973c3211c609f50031afdec43b885529abffb4c6 (patch)
treed26d9a91d09a17c2e290700bfd28b108d31077cc /tasks/release_announcement_draft.erb
parent1e7acf844ba04cb4abf02737ee8bebb2ecce6012 (diff)
downloadrails-973c3211c609f50031afdec43b885529abffb4c6.tar.gz
rails-973c3211c609f50031afdec43b885529abffb4c6.tar.bz2
rails-973c3211c609f50031afdec43b885529abffb4c6.zip
Support multiple versions in release announcement.
So releasing 5.1 and 5.0 together won't require manual copy and paste.
Diffstat (limited to 'tasks/release_announcement_draft.erb')
-rw-r--r--tasks/release_announcement_draft.erb38
1 files changed, 38 insertions, 0 deletions
diff --git a/tasks/release_announcement_draft.erb b/tasks/release_announcement_draft.erb
new file mode 100644
index 0000000000..65d121fd4b
--- /dev/null
+++ b/tasks/release_announcement_draft.erb
@@ -0,0 +1,38 @@
+Hi everyone,
+
+I am happy to announce that Rails <%= versions.join(" and ") %> <%= versions.size > 1 ? "have" : "has" %> been released.
+
+<% if future_date %>
+If no regressions are found, expect the final release on <%= future_date.strftime("%A, %B %-d, %Y") %>.
+If you find one, please open an [issue on GitHub](https://github.com/rails/rails/issues/new)
+<%= "and mention me (@github_user}) on it, " unless github_user.empty? %>so that we can fix it before the final release.
+<% end %>
+<% versions.each do |version| %>
+
+## CHANGES since <%= version.previous %>
+
+To view the changes for each gem, please read the changelogs on GitHub:
+ <% FRAMEWORKS.sort.each do |framework| %>
+<%= "* [#{FRAMEWORK_NAMES[framework]} CHANGELOG](https://github.com/rails/rails/blob/v#{version}/#{framework}/CHANGELOG.md)" %>
+ <% end %>
+
+*Full listing*
+
+To see the full list of changes, [check out all the commits on
+GitHub](https://github.com/rails/rails/compare/v<%= "#{version.previous}...v#{version}" %>).
+ <% end %>
+## SHA-256
+
+If you'd like to verify that your gem is the same as the one I've uploaded,
+please use these SHA-256 hashes.
+
+<% versions.each do |version| %>
+Here are the checksums for <%= version %>:
+
+```
+$ shasum -a 256 *-<%= version %>.gem
+<%= `shasum -a 256 *-#{version}.gem` %>
+```
+
+<% end %>
+As always, huge thanks to the many contributors who helped with this release.