Skip to content

Commit

Permalink
[rubygems/rubygems] Bundler: Update bundle-outdated(1) man
Browse files Browse the repository at this point in the history
Updated output examples to current format since the output format has changed since version 2.2.0.dev

rubygems/rubygems@48d98f906a
  • Loading branch information
obregonia1 authored and matzbot committed Jul 24, 2023
1 parent b106cf2 commit f72ddd9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dir.rb
Expand Up @@ -390,7 +390,7 @@ def self.[](*args, base: nil, sort: true)
# enables the pattern extension
# <tt>'{_a_,_b_}'</tt>, which matches pattern _a_ and pattern _b_;
# behaves like a
# {regexp union}[https://docs.ruby-lang.org/en/master/Regexp.html#method-c-union]
# {regexp union}[rdoc-ref:Regexp.union]
# (e.g., <tt>'(?:_a_|_b_)'</tt>):
#
# pattern = '{LEGAL,BSDL}'
Expand Down
2 changes: 1 addition & 1 deletion file.c
Expand Up @@ -7707,7 +7707,7 @@ Init_File(void)
* Flag File::FNM_EXTGLOB enables pattern <tt>'{_a_,_b_}'</tt>,
* which matches pattern '_a_' and pattern '_b_';
* behaves like
* a {regexp union}[https://docs.ruby-lang.org/en/master/Regexp.html#method-c-union]
* a {regexp union}[rdoc-ref:Regexp.union]
* (e.g., <tt>'(?:_a_|_b_)'</tt>):
*
* pattern = '{LEGAL,BSDL}'
Expand Down
20 changes: 12 additions & 8 deletions lib/bundler/man/bundle-outdated.1
Expand Up @@ -83,9 +83,10 @@ If the regular output shows the following:
.
.nf

* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
* hashie (newest 3\.4\.6, installed 1\.2\.0, requested = 1\.2\.0) in groups "default"
* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
* Gem Current Latest Requested Groups
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
* hashie 1\.2\.0 3\.4\.6 = 1\.2\.0 default
* headless 2\.2\.3 2\.3\.1 = 2\.2\.3 test
.
.fi
.
Expand All @@ -98,7 +99,8 @@ If the regular output shows the following:
.
.nf

* hashie (newest 3\.4\.6, installed 1\.2\.0, requested = 1\.2\.0) in groups "default"
* Gem Current Latest Requested Groups
* hashie 1\.2\.0 3\.4\.6 = 1\.2\.0 default
.
.fi
.
Expand All @@ -111,7 +113,8 @@ If the regular output shows the following:
.
.nf

* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
* Gem Current Latest Requested Groups
* headless 2\.2\.3 2\.3\.1 = 2\.2\.3 test
.
.fi
.
Expand All @@ -124,7 +127,8 @@ If the regular output shows the following:
.
.nf

* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
* Gem Current Latest Requested Groups
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
.
.fi
.
Expand All @@ -137,8 +141,8 @@ Filter options can be combined\. \fB\-\-filter\-minor\fR and \fB\-\-filter\-patc
.
.nf

* faker (newest 1\.6\.6, installed 1\.6\.5, requested ~> 1\.4) in groups "development, test"
* headless (newest 2\.3\.1, installed 2\.2\.3) in groups "test"
* Gem Current Latest Requested Groups
* faker 1\.6\.5 1\.6\.6 ~> 1\.4 development, test
.
.fi
.
Expand Down
21 changes: 12 additions & 9 deletions lib/bundler/man/bundle-outdated.1.ronn
Expand Up @@ -78,25 +78,28 @@ in the output.

If the regular output shows the following:

* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
* hashie (newest 3.4.6, installed 1.2.0, requested = 1.2.0) in groups "default"
* headless (newest 2.3.1, installed 2.2.3) in groups "test"
* Gem Current Latest Requested Groups
* faker 1.6.5 1.6.6 ~> 1.4 development, test
* hashie 1.2.0 3.4.6 = 1.2.0 default
* headless 2.2.3 2.3.1 = 2.2.3 test

`--filter-major` would only show:

* hashie (newest 3.4.6, installed 1.2.0, requested = 1.2.0) in groups "default"
* Gem Current Latest Requested Groups
* hashie 1.2.0 3.4.6 = 1.2.0 default

`--filter-minor` would only show:

* headless (newest 2.3.1, installed 2.2.3) in groups "test"
* Gem Current Latest Requested Groups
* headless 2.2.3 2.3.1 = 2.2.3 test

`--filter-patch` would only show:

* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
* Gem Current Latest Requested Groups
* faker 1.6.5 1.6.6 ~> 1.4 development, test

Filter options can be combined. `--filter-minor` and `--filter-patch` would show:

* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
* headless (newest 2.3.1, installed 2.2.3) in groups "test"

* Gem Current Latest Requested Groups
* faker 1.6.5 1.6.6 ~> 1.4 development, test
Combining all three `filter` options would be the same result as providing none of them.

0 comments on commit f72ddd9

Please sign in to comment.