Skip to content

Commit 2b2be6d

Browse files
committed
Technical/Update script
* Updated Ruby version * Updated default gems list * Added Postgres dependency * Updated changelog
1 parent a2be782 commit 2b2be6d

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## [1.1.0] - 2022-09-16
6+
7+
- Updated to Ruby 3.1.2
8+
- Added Postgres dependencies
9+
510
## [1.0.0] - 2022-02-14
611

712
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Automation script for spinning-up Ruby developer environment. Configure your dev
1212

1313
## Requirements/Preconditions
1414

15-
1. Fresh `Linux Ubuntu 20.04 LTS` / `Linux Ubuntu 21.10`
15+
1. Fresh `Linux Ubuntu 20.04 LTS` / `Linux Ubuntu 21.10` or higher
1616
2. `wget` system dependency
1717
3. GitHub personal access token
1818

setup.sh

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ git_username=$3
2020
git_token=$4
2121
steps_counter=0
2222
steps_errors=()
23-
final_step_index=7
23+
final_step_index=8
2424

2525
# Reurns colorized step title
2626
function step_title() {
@@ -54,29 +54,35 @@ function step_2() {
5454

5555
# Install asdf ruby plugin, requiered system dependencies, mri ruby 3.1.0, asdf config
5656
function step_3() {
57-
step_title $1 "Installing ASDF Ruby plugin, build system dependencies, MRI Ruby 3.1.0"
57+
step_title $1 "Installing ASDF Ruby plugin, build system dependencies, MRI Ruby 3.1.2"
5858
default_gems_config="$HOME/.default-gems"
5959
echo -n "" > ${default_gems_config}
60-
printf %"s\n" bundler pry gem-ctags > ${default_gems_config}
60+
printf %"s\n" bundler pry gem-ctags yard > ${default_gems_config}
6161
asdf_config="$HOME/.asdfrc"
6262
$(asdf plugin add ruby)
6363
sudo apt-get install -y make gcc libssl-dev libreadline-dev zlib1g-dev
6464
echo -n "" > ${asdf_config}
6565
echo "legacy_version_file = yes" >> ${asdf_config}
66-
$(asdf install ruby 3.1.0)
67-
$(asdf global ruby latest)
66+
$(asdf install ruby 3.1.2)
67+
$(asdf global ruby 3.1.2)
6868
}
6969

70-
# Install vscode
70+
# Install Postgres, requiered system dependencies
7171
function step_4() {
72+
step_title $1 "Installing Postgres and requiered system dependencies"
73+
sudo apt-get install -y postgresql libpq-dev cmake
74+
}
75+
76+
# Install vscode
77+
function step_5() {
7278
step_title $1 "Installing Visual Studio Code"
7379
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
7480
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
7581
sudo apt install code
7682
}
7783

7884
# Configure git
79-
function step_5() {
85+
function step_6() {
8086
step_title $1 "Configuring git"
8187
wget https://raw.githubusercontent.com/RubyWorkout/frs/master/.gitignore_global
8288
credentials="$HOME/.my-credentials"
@@ -94,13 +100,13 @@ function step_5() {
94100
}
95101

96102
# Configure vscode
97-
function step_6() {
103+
function step_7() {
98104
step_title $1 "Configuring Visual Studio Code"
99105
wget https://raw.githubusercontent.com/RubyWorkout/frs/master/settings.json -P ~/.config/Code/User
100106
}
101107

102108
# Add shortcuts to dock
103-
function step_7() {
109+
function step_8() {
104110
step_title $1 "Adding favorites to dock"
105111
gsettings set org.gnome.shell favorite-apps "['firefox.desktop', 'org.gnome.Nautilus.desktop', 'snap-store_ubuntu-software.desktop', 'org.gnome.Terminal.desktop', 'code.desktop']"
106112
}

0 commit comments

Comments
 (0)