<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/bundler/man/bundle-list.1.ronn, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[rubygems/rubygems] Introduce `bundle list --format=json`</title>
<updated>2025-08-18T03:31:51+00:00</updated>
<author>
<name>Schneems</name>
<email>richard.schneeman+foo@gmail.com</email>
</author>
<published>2025-05-29T16:11:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=813603994a388ad8f22ab831d2b554671dfd23b6'/>
<id>813603994a388ad8f22ab831d2b554671dfd23b6</id>
<content type='text'>
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 &amp;&amp; Gem::Version.new(railties["version"]) &gt;= 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &amp;&amp; Gem::Version.new(railties["version"]) &gt;= 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
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Normalize whitespace in option lists in man pages</title>
<updated>2024-12-11T17:56:24+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-12-10T18:11:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c4bd744800a53f40a7ee760217f0acdde5da465c'/>
<id>c4bd744800a53f40a7ee760217f0acdde5da465c</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/33ff4f8f2f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/33ff4f8f2f
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Align all header lines with titles for consistency</title>
<updated>2024-12-11T16:18:10+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-12-11T14:33:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e31f6a8f8b9f9133217c03c6a612de9454da2b37'/>
<id>e31f6a8f8b9f9133217c03c6a612de9454da2b37</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/83fd1c6718
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/83fd1c6718
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge prepare version of Bundler 2.2.0</title>
<updated>2020-12-08T08:30:02+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2020-12-08T07:36:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=473f9d2df0ddd7fdb5cc73fa3ad49b2f19f22b06'/>
<id>473f9d2df0ddd7fdb5cc73fa3ad49b2f19f22b06</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
