DEV Community

r7kamura
r7kamura

Posted on • Edited on

4 1

BUNDLE_ONLY is now available

I recently added BUNDLE_ONLY option to Bundler.

This is the long-awaited feature from 8+ years ago that allows you to install only the gem groups you need, available from bundler 2.3.19.

For example, in our Rails app, we have a crazy number of gem groups (terrible I know). There is a workflow to run RuboCop with GitHub Actions, but this workflow only requires the gems in the rubocop gem group to be installed.

# .github/workflows/rubocop.yml
 env:
-  BUNDLE_WITHOUT: >
-    danger
-    default
-    development
-    feature1
-    feature2
-    feature3
-    feature4
-    feature5
-    feature6
-    feature7
-    mobile
-    production
-    qa
-    staging1
-    staging2
-    staging3
-    test
+  BUNDLE_ONLY: rubocop
Enter fullscreen mode Exit fullscreen mode

Previously, it was necessary to use BUNDLE_WITHOUT to exclude unwanted gem groups one by one, but now BUNDLE_ONLY allows us to write this way 😃

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay