Skip to content

Commit 89897c1

Browse files
Merge pull request #110 from RodrigoMNardi/doc/ruby
RbEnv and Ruby 3.1.2
2 parents 1800f2c + f362baf commit 89897c1

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
source 'https://rubygems.org'
1212

13-
ruby '3.3.1'
13+
ruby '3.1.2'
1414

1515
# Token
1616
gem 'jwt'

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ DEPENDENCIES
194194
webmock
195195

196196
RUBY VERSION
197-
ruby 3.3.1p55
197+
ruby 3.1.2p20
198198

199199
BUNDLED WITH
200200
2.5.9

README.md

+46-1
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,15 @@ This guide will walk you through the steps to install RVM (Ruby Version Manager)
123123
Before you begin, ensure you have the following installed on your system:
124124
- `curl`
125125
- `gpg`
126+
- `openssl`
127+
- `libssl-dev`
128+
- `libpq-dev`
126129

127130
You can install these using your package manager. For example, on Debian-based systems, you can use:
128131

129132
```shell
130133
sudo apt update
131-
sudo apt install -y curl gpg
134+
sudo apt install -y curl gpg libssl-dev libpq-dev
132135
```
133136

134137
## Installation Steps
@@ -209,6 +212,48 @@ If you need to uninstall RVM, you can do so with the following command:
209212
rvm implode
210213
```
211214

215+
# Installing RbEnv (Ruby Environment Version)
216+
217+
This guide will walk you through the steps to install RbEnv (Ruby Environment Version) on your system.
218+
219+
## Prerequisites
220+
221+
Before you begin, ensure you have the following installed on your system:
222+
- `curl`
223+
- `gpg`
224+
- `openssl`
225+
- `rbenv`
226+
- `libpq-dev`
227+
228+
```shell
229+
apt install rbenv
230+
```
231+
232+
## Installation Steps
233+
234+
Move to project directory and run the following command:
235+
236+
```shell
237+
rbenv init
238+
````
239+
240+
This will create a `.rbenv` directory in your home directory.
241+
Then, add the following lines to your shell profile (~/.bashrc, ~/.zshrc, etc.):
242+
```
243+
eval "$(rbenv init -)"
244+
```
245+
246+
```shell
247+
rbenv install 3.1.2
248+
rbenv local 3.1.2
249+
```
250+
251+
After that, run the following command:
252+
253+
```shell
254+
bundle install
255+
```
256+
212257
# Multiple Repositories
213258

214259
## GitHub Repositories

0 commit comments

Comments
 (0)