diff options
Diffstat (limited to 'tooling/deprecations')
-rw-r--r-- | tooling/deprecations/docs.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tooling/deprecations/docs.rb b/tooling/deprecations/docs.rb index 67ff7a932b4..0f649024b60 100644 --- a/tooling/deprecations/docs.rb +++ b/tooling/deprecations/docs.rb @@ -20,9 +20,11 @@ module Deprecations YAML.load_file(file) end - deprecations = VersionSorter.sort(deprecations) { |d| d["removal_milestone"] } + deps = VersionSorter.sort(deprecations) { |d| d["removal_milestone"] } - milestones = deprecations.map { |d| d["removal_milestone"] }.uniq + deprecations = deps.sort_by { |d| d["name"] } + + milestones = deps.map { |d| d["removal_milestone"] }.uniq template = Rails.root.join("data/deprecations/templates/_deprecation_template.md.erb") |