From 920abe6bec914da2b8cdd38395017051dd480d12 Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Fri, 9 Aug 2019 04:02:55 +0200 Subject: [PATCH] manage gem deps using bundler --- .gitignore | 1 + Gemfile | 6 ++++++ dot_scripts/bootstrap.sh | 4 ++-- dot_scripts/upgrade.sh | 5 +++-- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 Gemfile diff --git a/.gitignore b/.gitignore index a8b42eb..277fe83 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.retry +Gemfile.lock diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..af61a73 --- /dev/null +++ b/Gemfile @@ -0,0 +1,6 @@ +source 'https://rubygems.org' +# Install Twitter CLI https://github.com/sferik/t +gem 't' +gem 'asciidoctor-pdf' +#Previously installed using +#sudo gem install -n /usr/local/bin asciidoctor-pdf --pre diff --git a/dot_scripts/bootstrap.sh b/dot_scripts/bootstrap.sh index 0161c67..73eef55 100755 --- a/dot_scripts/bootstrap.sh +++ b/dot_scripts/bootstrap.sh @@ -10,8 +10,8 @@ sdk install java 8.0.202-zulu # Install dependencies (apps, fonts, ...) with Brew brew bundle -# Install asciidoctor-pdf -sudo gem install -n /usr/local/bin asciidoctor-pdf --pre +# Install bundler for managing ruby dependencies and Gemfile +sudo gem install bundler # Install Oh My Zsh and some cool dependencies sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" diff --git a/dot_scripts/upgrade.sh b/dot_scripts/upgrade.sh index eef53ed..35af66b 100644 --- a/dot_scripts/upgrade.sh +++ b/dot_scripts/upgrade.sh @@ -3,8 +3,9 @@ brew update #brew upgrade brew outdated | xargs brew upgrade -gem update --system -gem update asciidoctor-pdf +bundle update --all +#gem update --system +#gem update asciidoctor-pdf t upgrade_oh_my_zsh npm update -g jira-node-cli --save sudo pip install --upgrade pip