|
| 1 | +--- |
| 2 | +title: June 2025 RubyGems Updates |
| 3 | +layout: post |
| 4 | +author: Gift Egwuenu |
| 5 | +author_email: laurandidi21@gmail.com |
| 6 | +--- |
| 7 | + |
| 8 | +Welcome to the RubyGems monthly update! As part of our efforts at Ruby Central, we publish a recap of the work that we’ve done the previous month. Read on to find out what updates were made to RubyGems and RubyGems.org in June. |
| 9 | + |
| 10 | +# RubyGems News |
| 11 | + |
| 12 | +In June, we introduced a new **Bundler 4 mode** for early feedback and continued work on the upcoming **Bundler 2.7.0** and **RubyGems 3.7.0** releases. These changes reflect our ongoing focus on flexibility, modernization, and improving developer workflows. |
| 13 | + |
| 14 | +[**Bundler 4 mode is now available**](https://github.com/rubygems/rubygems/pull/8780) |
| 15 | + |
| 16 | +- We’ve launched a user-facing simulation mode that lets you preview Bundler 4 behavior before its final release. This feature allows developers to test upcoming breaking changes, provide feedback, and participate in shaping the final version. You can now opt in by configuring: |
| 17 | + |
| 18 | +```bash |
| 19 | +bundle config simulate_version 4 |
| 20 | +``` |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +- Initially, we tried overriding the `Bundler::VERSION` constant, but this proved unreliable due to side effects like misrepresenting versions in lockfiles. After significant refactoring across specs and core logic, we isolated version-specific behaviors into the `Bundler::FeatureFlag` class. |
| 25 | +- The result is a cleaner and more robust approach where Bundler behaves as if it's version 4, without changing the actual version. |
| 26 | +- Why Bundler 4 and not 3? We’re matching version numbers between Bundler and RubyGems to simplify releases and reduce confusion. |
| 27 | + |
| 28 | +**Upcoming Bundler 2.7.0 and RubyGems 3.7.0 releases:** |
| 29 | + |
| 30 | +- This year we’re committed to releasing major versions of Bundler and RubyGems, and this is special. The last major Bundler release was `2.0.0` in 2019, but that version only dropped support for old versions of Ruby and delayed all breaking changes to a future major release. So effectively, the last “real” major Bundler release was `1.0.0` back in 2010! For RubyGems, the last major release was `3.0.0` in 2018. |
| 31 | +- To make transitioning easier and get more community consensus with breaking changes, we will be releasing mid-year minor releases—including an easy way to try future Bundler 4 (see update above). |
| 32 | + |
| 33 | +**Gems with prebuilt binaries** |
| 34 | + |
| 35 | +- We [finished refactoring](https://github.com/rubygems/rubygems/pull/8703) `Gem::Platform` matching logic from Bundler into RubyGems. This work will enable sharing code for platform matching between Bundler & RubyGems in preparation for wheel support hitting both projects simultaneously. |
| 36 | +- We have already used this refactor to [improve platform](https://github.com/rubygems/rubygems/pull/8751) selection in the RubyGems CLI, picking the best platform gem that matches the running platform. |
| 37 | +- Our lead security engineer Samuel Giddins spent the majority of the month prototyping ways to encode the new platform information for wheels into existing platform strings in a backwards compatible way. |
| 38 | +- As a part of this prototyping work, Samuel researched the translation of Python’s platform tags into the Ruby ecosystem. He found that RubyGems, unlike `CPython`, won’t need a separate ABI tag (the binary level contract between compiled code) from the Ruby tag, since Ruby implementations tend not to have stable ABIs. |
| 39 | +- Expect a PR demonstrating wheels to hit in the coming month. |
| 40 | + |
| 41 | +# RubyGems.org News |
| 42 | + |
| 43 | +This month, [RubyGems.org](https://rubygems.org/) continued to scale and improve its services with the support of our infrastructure sponsors: [AWS](https://aws.amazon.com/?ref=rubycentral.org), [Fastly](https://www.fastly.com/?ref=rubycentral.org), and [Datadog](https://www.datadoghq.com/?ref=rubycentral.org). |
| 44 | + |
| 45 | +June 2025 was another high-traffic month on RubyGems.org, serving over 4.08 billion gem downloads, a slight increase over May’s 4.06 billion. We served 221 million downloads on our busiest day this month. |
| 46 | + |
| 47 | +**Ruby usage stats** |
| 48 | + |
| 49 | +- Ruby 3.4 adoption continues to climb steadily. In June, it accounted for 10.93% of all gem downloads — up from 9.3% in May — showing strong momentum just six months after release. |
| 50 | +- Ruby 3.2 still leads with 33.84%, meanwhile, Ruby 3.1, which reached EOL in March, dropped further to 10.15%. |
| 51 | +- Would you like to get more insight into [RubyGems.org](http://rubygems.org/) stats? Feel free to explore [RubyGems.org ClickHouse public dataset](https://clickhouse.com/blog/announcing-ruby-gem-analytics-powered-by-clickhouse). |
| 52 | + |
| 53 | +The following are highlights of what the team worked on this month: |
| 54 | + |
| 55 | +***PostgreSQL 14 upgrade*** |
| 56 | + |
| 57 | +- We have started updating [RubyGems.org](http://rubygems.org/) PostgreSQL, and are currently testing it in a staging environment. PostgreSQL is the main source of truth for [RubyGems.org](http://rubygems.org/) and the currently in use PostgreSQL 13 is slowly reaching EOL. We aim to upgrade to PostgreSQL 17 by the end of the summer. |
| 58 | +- We will be using the approach explained in [pg major update](https://github.com/rubygems/pg-major-update/), which has been successfully used in previous upgrades, to achieve zero-downtime. A separate blog post with more details on the process is forthcoming. |
| 59 | + |
| 60 | +## **RubyGems Ecosystem News** |
| 61 | + |
| 62 | +This is where we highlight exciting updates made to Ruby infrastructure projects that support our RubyGems work. |
| 63 | + |
| 64 | +**Experimental namespacing progress:** |
| 65 | + |
| 66 | +- [A lot of activity](https://bugs.ruby-lang.org/projects/ruby-master/issues?fields%5B%5D=issue_tags&fields%5B%5D=status_id&operators%5Bissue_tags%5D=%3D&operators%5Bstatus_id%5D=o&set_filter=1&values%5Bissue_tags%5D%5B%5D=namespace&values%5Bstatus_id%5D%5B%5D=) continues around the experimental Namespace feature ([see May 2025 newsletter](https://blog.rubygems.org/2025/06/16/may-rubygems-updates.html#interesting-ruby-news)) as numerous bugs and refinements are being addressed. Quality-of-life improvements are also starting to land, like [`Namespace#eval`](https://bugs.ruby-lang.org/issues/21365), which simplifies testing and experimentation inside a given namespace. |
| 67 | + |
| 68 | +**`Array#join (Enumerable#join_map)`proposal:** |
| 69 | + |
| 70 | +- There’s growing momentum behind making joining transformed collections, a common Ruby pattern, more ergonomic. A [new proposal for Array#join with a block](https://bugs.ruby-lang.org/issues/21455) and the related [Enumerable#join_map](https://bugs.ruby-lang.org/issues/21386) aim to make expressions like: `users.map(&:name).join(", ")` more elegant and expressive, by writing: `users.join_map(", ", &:name)`. |
| 71 | +- If accepted, this could be a small but meaningful step making Ruby simpler and more readable. If this improvement matters to you, consider sharing your thoughts on the [Ruby bug tracker for Array#join](https://bugs.ruby-lang.org/issues/21455) or [Enumerable#join_map](https://bugs.ruby-lang.org/issues/21386). Community feedback often helps shape which proposals move forward. |
| 72 | + |
| 73 | +**New gems spotlight** |
| 74 | + |
| 75 | +- June brought a few interesting new gems into the ecosystem. AWS released a fresh batch of SDK components like `aws-sdk-evs`, `aws-sdk-mpa`, and `aws-sdk-aiops`, which topped the download charts for new gems. |
| 76 | +- Alongside those, two standout gems deserve a mention: |
| 77 | + - [`hati-command`](https://github.com/hackico-ai/ruby-hati-command) ([release announcement](https://www.linkedin.com/posts/mariya-giy_the-hati-command-gem-ive-been-working-on-activity-7343420184830820353-P59V)) – a small gem to help structure service objects around a clear success/failure contract, encouraging clean, expressive business logic. |
| 78 | + - [`llmed`](https://github.com/bit4bit/llmed) (by [Jovany Leandro G.C](https://github.com/bit4bit))– a no-code-friendly gem that lets you build LLM-powered applications with just Markdown blocks. AI tooling is gaining traction in the Ruby world, and `llmed` is an exciting example of what’s possible. |
| 79 | +- We encourage you to check them out and maybe even build something fun and share it with the community. |
| 80 | + |
| 81 | +## Thank you |
| 82 | + |
| 83 | +A huge thank you to all the contributors to RubyGems and [RubyGems.org](http://rubygems.org/) this month! We deeply appreciate your support and dedication. |
| 84 | + |
| 85 | +### Contributors to RubyGems: |
| 86 | + |
| 87 | +- [@deivid-rodriguez](https://github.com/deivid-rodriguez) David Rodríguez |
| 88 | +- [@hsbt](https://github.com/hsbt) Hiroshi Shibata |
| 89 | +- [@larouxn](https://github.com/larouxn) Nicholas La Roux |
| 90 | +- [@martinemde](https://github.com/martinemde) Martin Emde |
| 91 | +- [@nobu](https://github.com/nobu) Nobuyoshi Nakada |
| 92 | +- [@rwstauner](https://github.com/rwstauner) Randy Stauner |
| 93 | +- [@segiddins](https://github.com/segiddins) Samuel Giddins |
| 94 | +- [@simi](https://github.com/simi) Josef Šimánek |
| 95 | +- [@tangrufus](https://github.com/tangrufus) Tang Rufus |
| 96 | +- [@antoinem](https://github.com/antoinem) Antoine Marguerie |
| 97 | +- [@joshuay03](https://github.com/joshuay03) Joshua Young |
| 98 | +- [@thomasmarshall](https://github.com/thomasmarshall) Thomas Marshall |
| 99 | +- [@ccutrer](https://github.com/ccutrer) Cody Cutrer |
| 100 | +- [@landongrindheim](https://github.com/landongrindheim) Landon Grindheim |
| 101 | +- [@MSP-Greg](https://github.com/MSP-Greg) MSP-Greg |
| 102 | +- [@Earlopain](https://github.com/Earlopain) Earlopain |
| 103 | + |
| 104 | +### Contributors to [RubyGems.org](http://rubygems.org/): |
| 105 | + |
| 106 | +- [@colby-swandale](https://github.com/colby-swandale) Colby Swandale |
| 107 | +- [@hsbt](https://github.com/hsbt) Hiroshi Shibata |
| 108 | +- [@mghaught](https://github.com/mghaught) Marty Haught |
| 109 | +- [@segiddins](https://github.com/segiddins) Samuel Giddins |
| 110 | +- [@simi](https://github.com/simi) Josef Šimánek |
| 111 | +- [@landongrindheim](https://github.com/landongrindheim) Landon Grindheim |
| 112 | +- [@iox](https://github.com/iox) Ignacio Huerta |
| 113 | +- [@yykamei](https://github.com/yykamei) Yutaka Kamei |
| 114 | + |
| 115 | +*If we missed you, please let us know so we can include you in our shout out!* |
| 116 | + |
| 117 | +--- |
| 118 | +Learn more about contributing to RubyGems by visiting the RubyGems Contributing Guide. We welcome all kinds of contributions, including bug fixes, feature implementation, writing and updating documentation, and bug triage. |
0 commit comments