Skip to content

Commit

Permalink
rel: add Bundler 2.5 as the latest version to docs
Browse files Browse the repository at this point in the history
2.5.0 was successfully released on 2023-12-15:
https://rubygems.org/gems/bundler/versions/2.5.0

This also marks Bundler 2.1 as legacy.

Signed-off-by: Takuya Noguchi <[email protected]>
  • Loading branch information
tnir committed Dec 26, 2023
1 parent f01bb40 commit d0ccb3b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/config_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def versions_grouped_by_status
private

def status(version)
if version == "v2.4"
if version == "v2.5"
"Current release"
elsif %w[v2.3 v2.2 v2.1].include?(version)
elsif %w[v2.4 v2.3 v2.2].include?(version)
"Legacy release"
else
"Deprecated release"
Expand Down
36 changes: 36 additions & 0 deletions source/v2.5/docs.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- primary_commands = %w(bundle-install.1 bundle-update.1 bundle-cache.1 bundle-exec.1 bundle-config.1 bundle-help.1)

.bg-light-blue.header
= image_tag '/images/docs_header_transparent_bg.png',
srcset: '/images/docs_header_transparent_bg.png 1x, /images/[email protected] 2x, /images/[email protected] 3x',
class: 'img-fluid header-padding',
style: 'max-width: 400px;'

.container
.row.docs.my-5
.col-md-6.col-12
%h3
%b Guides
%p
Step-by-step tutorials that include useful explanations and and detailed instructions to help you get up and running.
%ul.ul-padding
- guides.each do |guide|
%li= link_to_guide guide
%li= link_to "Contributing to Bundler", "/doc/readme.html"

.col-md-5.offset-md-1.col-12
%h3
%b Reference Guides
%p
In-depth articles with information on each primary command and utility, and how to use them.
%h4
%b Primary Commands
%ul.ul-padding
- primary_commands.select{ |page| path_exist?(page) }.each do |page|
%li= link_to_documentation(page)

%h4
%b Utilities
%ul.ul-padding
- other_commands(primary_commands).each do |page|
%li= link_to_documentation(page)
11 changes: 11 additions & 0 deletions source/v2.5/whats_new.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# What's New in v2.5

As always, a detailed list of every change is provided in
[the changelog](https://github.com/rubygems/rubygems/blob/3.5/bundler/CHANGELOG.md).

## Breaking changes

- Drop ruby 2.6 and 2.7 support [#7116](https://github.com/rubygems/rubygems/pull/7116)
- The `:mswin`, `:mswin64`, `:mingw`, and `:x64_mingw` Gemfile `platform` values are soft-deprecated and aliased to `:windows` [#6391](https://github.com/rubygems/rubygems/pull/6391)

<a href="https://github.com/rubygems/rubygems/blob/3.5/bundler/CHANGELOG.md" class="btn btn-primary">Full 2.5 changelog</a>

0 comments on commit d0ccb3b

Please sign in to comment.