Skip to content

Commit 25b9081

Browse files
[docs] Mention bundler flags/configs for ruby projects (#1031)
## Summary ## How was it tested?
1 parent 560627b commit 25b9081

File tree

1 file changed

+13
-3
lines changed
  • docs/app/docs/devbox_examples/languages

1 file changed

+13
-3
lines changed

docs/app/docs/devbox_examples/languages/ruby.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Ruby
66

77
[![Open In Devbox.sh](https://jetpack.io/img/devbox/open-in-devbox.svg)](https://devbox.sh/github.com/jetpack-io/devbox?folder=examples/development/ruby)
88

9-
Ruby can be automatically configured by Devbox via the built-in Ruby Plugin. This plugin will activate automatically when you install Ruby 2.7 using `devbox add ruby`.
9+
Ruby can be automatically configured by Devbox via the built-in Ruby Plugin. This plugin will activate automatically when you install Ruby 2.7 using `devbox add ruby`.
1010

1111
## Adding Ruby to your shell
1212

@@ -19,9 +19,9 @@ Run `devbox add ruby bundler`, or add the following to your `devbox.json`
1919
]
2020
```
2121

22-
This will install Ruby 3.1 to your shell.
22+
This will install Ruby 3.1 to your shell.
2323

24-
Other versions available include:
24+
Other versions available include:
2525

2626
* `ruby` (Ruby 2.7)
2727
* `ruby_3_0` (Ruby 3.0)
@@ -40,3 +40,13 @@ GEMRC={PROJECT_DIR}/.devbox/virtenv/ruby/.gemrc
4040
GEM_HOME={PROJECT_DIR}/.devbox/virtenv/ruby
4141
PATH={PROJECT_DIR}/.devbox/virtenv/ruby/bin:$PATH
4242
```
43+
44+
## Bundler
45+
46+
In case you are using bundler to install gems, bundler config file can still be used to pass configs and flags to install gems.
47+
48+
`.bundle/config` file example:
49+
50+
```
51+
BUNDLE_BUILD__SASSC: "--disable-lto"
52+
```

0 commit comments

Comments
 (0)