summaryrefslogtreecommitdiff
path: root/lib/bundler/man/bundle-list.1.ronn
AgeCommit message (Collapse)Author
2025-08-18[rubygems/rubygems] Introduce `bundle list --format=json`Schneems
The `bundle list` command is a convenient way for human to know what gems and versions are available. By introducing a `--format=json` option, we can provide the same information to machines in a stable format that is robust to UI additions or modifications. It indirectly supports `Gemfile.lock` modifications by discouraging external tools from attempting to parse that format. This addition allows for the scripting of installation tools, such as buildpacks, that wish to branch logic based on gem versions. For example: ```ruby require "json" command = "bundle list --format=json" output = `#{command}` raise "Command `#{command}` errored: #{output}" unless $?.success? railties = JSON.parse(output).find {|gem| gem["name"] == railties } if railties && Gem::Version.new(railties["version"]) >= Gem::Version.new("7") puts "Using Rails greater than 7!" end ``` The top level is an object with a single key, "gems", this structure allows us to add other information in the future (should we desire) without having to change the json schema. https://github.com/rubygems/rubygems/commit/9e081b0689
2024-12-11[rubygems/rubygems] Normalize whitespace in option lists in man pagesDavid Rodríguez
https://github.com/rubygems/rubygems/commit/33ff4f8f2f
2024-12-11[rubygems/rubygems] Align all header lines with titles for consistencyDavid Rodríguez
https://github.com/rubygems/rubygems/commit/83fd1c6718
2020-12-08Merge prepare version of Bundler 2.2.0Hiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/3864