This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Add Ruby to Languages & frameworks (#388)
- Loading branch information
1 parent
ad66b76
commit 6dd8fbd
Showing
5 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,10 @@ export const MENU: MenuEntry[] = [ | |
M( | ||
"Go", | ||
"go-in-gitpod" | ||
), | ||
M( | ||
"Ruby", | ||
"ruby-in-gitpod" | ||
) | ||
] | ||
), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Ruby in Gitpod | ||
|
||
It's relatively easy to set up your Ruby project in Gitpod. | ||
|
||
## Ruby Versions | ||
Gitpod comes with Ruby 2.5 and 2.6 pre-installed (2.6 is the default). | ||
|
||
To change the default Ruby version, you can simply run `rvm use 2.5 --default` in Gitpod's Terminal. You can also install other versions, e.g. by running `rvm install 2.7`. | ||
|
||
## Examples | ||
Before we begin, here are some example Ruby projects that are automated with Gitpod: | ||
|
||
Repository | Description | Try it | ||
---------|----------|--------- | ||
[dev.to](https://github.com/thepracticaldev/dev.to) | A platform where software developers write articles | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/thepracticaldev/dev.to) | ||
[home-assistant.io](https://github.com/home-assistant/home-assistant.io) | Open source home automation | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/home-assistant/home-assistant.io) | ||
|
||
## VSCode Extensions | ||
|
||
Here are a few useful extensions that you'll likely want to install in your Ruby project. | ||
|
||
### [Ruby Test Explorer](https://marketplace.visualstudio.com/items?itemName=connorshea.vscode-ruby-test-adapter) | ||
With the Ruby test explorer, you can run unit tests from within the Gitpod UI. | ||
![](./images/ruby_test_ui.png) | ||
To add this extension to your repository, simply add these lines to your [`.gitpod.yml`](https://www.gitpod.io/docs/config-gitpod-file/) configuration file: | ||
```YAML | ||
vscode: | ||
extensions: | ||
- [email protected]:HO9rpcRv7bmRIuo7Mty/zg== | ||
- [email protected]:koqDUMWDPJzELp/hdS/lWw== | ||
``` | ||
## Ruby On Rails | ||
So, you want to write your cool new Ruby On Rails application in Gitpod? Well, here is an idea of how to do it. Please take a look at our minimal Rails example running in Gitpod: | ||
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/JesterOrNot/Gitpod-Ruby-On-Rails) |