Skip to content

Commit 51f1f29

Browse files
authored
Technical/Update script (#33)
* Updated asdf version * Updated vscode installing flow * Updated project documentation
1 parent 0c00840 commit 51f1f29

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
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.2.0] - 2022-09-16
6+
7+
- Updated `asdf`
8+
- Updated `vscode` installing flow
9+
- Updated docs
10+
511
## [1.1.0] - 2022-09-16
612

713
- Updated to Ruby 3.1.2

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Automation script for spinning-up Ruby developer environment. Configure your dev
77
* Installs & configures [git](https://git-scm.com), [git-flow](https://github.com/petervanderdoes/gitflow-avh)
88
* Installs & configures [ZSH](https://www.zsh.org), [OhMyZsh](https://ohmyz.sh) and [Spaceship Promt](https://spaceship-prompt.sh)
99
* Installs & configures [asdf](https://asdf-vm.com), [asdf Ruby plugin](https://github.com/asdf-vm/asdf-ruby)
10-
* Installs & configures latest [MRI Ruby](https://www.ruby-lang.org/en/downloads/releases) with default gems
10+
* Installs & configures [MRI Ruby](https://www.ruby-lang.org/en/downloads/releases) 3.1.2 with default gem set
11+
* Installs [Postgres](https://www.postgresql.org/download/linux/ubuntu) & system deps
1112
* Installs & configures [Visual Studio Code](https://code.visualstudio.com)
1213

1314
## Requirements/Preconditions

setup.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ email=$1
1818
name=$2
1919
git_username=$3
2020
git_token=$4
21+
target_ruby_version="3.1.2"
2122
steps_counter=0
2223
steps_errors=()
2324
final_step_index=8
@@ -45,40 +46,40 @@ function step_1() {
4546
function step_2() {
4647
step_title $1 "Installing ASDF extendable version manager"
4748
asdf_path="$HOME/.asdf"
48-
git clone https://github.com/asdf-vm/asdf.git ${asdf_path} --branch v0.9.0
49+
git clone https://github.com/asdf-vm/asdf.git ${asdf_path} --branch v0.10.2
4950
echo ". $asdf_path/asdf.sh" >> ~/.bashrc
5051
echo ". $asdf_path/completions/asdf.bash" >> ~/.bashrc
5152
source ~/.bashrc
5253
echo ". $asdf_path/asdf.sh" >> ~/.zshrc
5354
}
5455

55-
# Install asdf ruby plugin, requiered system dependencies, mri ruby 3.1.0, asdf config
56+
# Install asdf ruby plugin, requiered system dependencies, mri ruby, asdf config
5657
function step_3() {
57-
step_title $1 "Installing ASDF Ruby plugin, build system dependencies, MRI Ruby 3.1.2"
58+
step_title $1 "Installing ASDF Ruby plugin, build system dependencies, MRI Ruby $target_ruby_version"
5859
default_gems_config="$HOME/.default-gems"
5960
echo -n "" > ${default_gems_config}
6061
printf %"s\n" bundler pry gem-ctags yard > ${default_gems_config}
6162
asdf_config="$HOME/.asdfrc"
6263
$(asdf plugin add ruby)
63-
sudo apt-get install -y make gcc libssl-dev libreadline-dev zlib1g-dev
64+
sudo apt-get install -y make cmake gcc libssl-dev libreadline-dev zlib1g-dev
6465
echo -n "" > ${asdf_config}
6566
echo "legacy_version_file = yes" >> ${asdf_config}
66-
$(asdf install ruby 3.1.2)
67-
$(asdf global ruby 3.1.2)
67+
$(asdf install ruby $target_ruby_version)
68+
$(asdf global ruby $target_ruby_version)
6869
}
6970

70-
# Install Postgres, requiered system dependencies
71+
# Install Postgres and requiered system dependencies
7172
function step_4() {
7273
step_title $1 "Installing Postgres and requiered system dependencies"
73-
sudo apt-get install -y postgresql libpq-dev cmake
74+
sudo apt-get install -y postgresql libpq-dev
7475
}
7576

7677
# Install vscode
7778
function step_5() {
7879
step_title $1 "Installing Visual Studio Code"
7980
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
80-
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
81-
sudo apt install code
81+
sudo add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
82+
sudo apt install -y code
8283
}
8384

8485
# Configure git

0 commit comments

Comments
 (0)