diff --git a/CHANGELOG.md b/CHANGELOG.md index a896e2e..428004a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ 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). +## [1.2.0] - 2022-09-16 + +- Updated `asdf` +- Updated `vscode` installing flow +- Updated docs + ## [1.1.0] - 2022-09-16 - Updated to Ruby 3.1.2 diff --git a/README.md b/README.md index acd86b3..9200ebd 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ Automation script for spinning-up Ruby developer environment. Configure your dev * Installs & configures [git](https://git-scm.com), [git-flow](https://github.com/petervanderdoes/gitflow-avh) * Installs & configures [ZSH](https://www.zsh.org), [OhMyZsh](https://ohmyz.sh) and [Spaceship Promt](https://spaceship-prompt.sh) * Installs & configures [asdf](https://asdf-vm.com), [asdf Ruby plugin](https://github.com/asdf-vm/asdf-ruby) -* Installs & configures latest [MRI Ruby](https://www.ruby-lang.org/en/downloads/releases) with default gems +* Installs & configures [MRI Ruby](https://www.ruby-lang.org/en/downloads/releases) 3.1.2 with default gem set +* Installs [Postgres](https://www.postgresql.org/download/linux/ubuntu) & system deps * Installs & configures [Visual Studio Code](https://code.visualstudio.com) ## Requirements/Preconditions diff --git a/setup.sh b/setup.sh index 54e15d4..2909525 100644 --- a/setup.sh +++ b/setup.sh @@ -18,6 +18,7 @@ email=$1 name=$2 git_username=$3 git_token=$4 +target_ruby_version="3.1.2" steps_counter=0 steps_errors=() final_step_index=8 @@ -45,40 +46,40 @@ function step_1() { function step_2() { step_title $1 "Installing ASDF extendable version manager" asdf_path="$HOME/.asdf" - git clone https://github.com/asdf-vm/asdf.git ${asdf_path} --branch v0.9.0 + git clone https://github.com/asdf-vm/asdf.git ${asdf_path} --branch v0.10.2 echo ". $asdf_path/asdf.sh" >> ~/.bashrc echo ". $asdf_path/completions/asdf.bash" >> ~/.bashrc source ~/.bashrc echo ". $asdf_path/asdf.sh" >> ~/.zshrc } -# Install asdf ruby plugin, requiered system dependencies, mri ruby 3.1.0, asdf config +# Install asdf ruby plugin, requiered system dependencies, mri ruby, asdf config function step_3() { - step_title $1 "Installing ASDF Ruby plugin, build system dependencies, MRI Ruby 3.1.2" + step_title $1 "Installing ASDF Ruby plugin, build system dependencies, MRI Ruby $target_ruby_version" default_gems_config="$HOME/.default-gems" echo -n "" > ${default_gems_config} printf %"s\n" bundler pry gem-ctags yard > ${default_gems_config} asdf_config="$HOME/.asdfrc" $(asdf plugin add ruby) - sudo apt-get install -y make gcc libssl-dev libreadline-dev zlib1g-dev + sudo apt-get install -y make cmake gcc libssl-dev libreadline-dev zlib1g-dev echo -n "" > ${asdf_config} echo "legacy_version_file = yes" >> ${asdf_config} - $(asdf install ruby 3.1.2) - $(asdf global ruby 3.1.2) + $(asdf install ruby $target_ruby_version) + $(asdf global ruby $target_ruby_version) } -# Install Postgres, requiered system dependencies +# Install Postgres and requiered system dependencies function step_4() { step_title $1 "Installing Postgres and requiered system dependencies" - sudo apt-get install -y postgresql libpq-dev cmake + sudo apt-get install -y postgresql libpq-dev } # Install vscode function step_5() { step_title $1 "Installing Visual Studio Code" wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - - sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" - sudo apt install code + sudo add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" + sudo apt install -y code } # Configure git