Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
[docs] Add Ruby to Languages & frameworks (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hellum authored and jankeromnes committed Jan 22, 2020
1 parent ad66b76 commit 6dd8fbd
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
Binary file added src/docs/images/ruby_test_ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/docs/julia-in-gitpod.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ It's relatively easy to set up your Julia project in Gitpod.

A great minimal example of a ready-to-code Julia development environment is [JesterOrNot/Gitpod-Julia](https://github.com/JesterOrNot/Gitpod-Julia).

To showcase a real-world Julia project in Gitpod we gitpodified the Julia Programming Language in Gitpod. Try it here:
To showcase a real-world Julia project in Gitpod, we've gitpodified the Julia Programming Language repository itself! Try it here:

[![JesterOrNot/Julia](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/JesterOrNot/Julia)
1 change: 1 addition & 0 deletions src/docs/languages-and-frameworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Below is a list of language and framework specific tips & tricks.
* [Python](/docs/python-in-gitpod/)
* [Julia](/docs/julia-in-gitpod/)
* [Go](/docs/go-in-gitpod/)
* [Ruby](/docs/ruby-in-gitpod)
4 changes: 4 additions & 0 deletions src/docs/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ export const MENU: MenuEntry[] = [
M(
"Go",
"go-in-gitpod"
),
M(
"Ruby",
"ruby-in-gitpod"
)
]
),
Expand Down
37 changes: 37 additions & 0 deletions src/docs/ruby-in-gitpod.md
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)

0 comments on commit 6dd8fbd

Please sign in to comment.