commit ce5ba59d3c569a486b902523eaabce1d02b29a34
parent 22ba9e44fcf01fd021d418085476456642b5a8fd
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 5 Oct 2020 12:19:16 +0200
Cleaned up ruby gem installation using $GEM_HOME
Former-commit-id: eaaf1b59fe9f922c49877cce765fd2145860f45e
Diffstat:
4 files changed, 13 insertions(+), 185 deletions(-)
diff --git a/Gemfile b/Gemfile
@@ -1,8 +0,0 @@
-source 'http://rubygems.org'
-gem 'mdl'
-gem 'jekyll'
-gem 'discogs-wrapper'
-gem 'vimgolf'
-gem 'terjira'
-gem 'bundler'
-gem 'rest-client'
diff --git a/Gemfile.lock b/Gemfile.lock
@@ -1,166 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- activesupport (4.1.11)
- i18n (~> 0.6, >= 0.6.9)
- json (~> 1.7, >= 1.7.7)
- minitest (~> 5.1)
- thread_safe (~> 0.1)
- tzinfo (~> 1.1)
- addressable (2.6.0)
- public_suffix (>= 2.0.2, < 4.0)
- colorator (1.1.0)
- concurrent-ruby (1.1.5)
- discogs-wrapper (2.4.0)
- hashie (~> 3.0)
- httparty (~> 0.14)
- oauth (~> 0.5.1)
- domain_name (0.5.20180417)
- unf (>= 0.0.5, < 1.0.0)
- em-websocket (0.5.1)
- eventmachine (>= 0.12.9)
- http_parser.rb (~> 0.6.0)
- equatable (0.5.0)
- eventmachine (1.2.7)
- ffi (1.10.0)
- forwardable-extended (2.6.0)
- hashie (3.6.0)
- highline (2.0.1)
- http-cookie (1.0.3)
- domain_name (~> 0.5)
- http_parser.rb (0.6.0)
- httparty (0.16.4)
- mime-types (~> 3.0)
- multi_xml (>= 0.5.2)
- i18n (0.9.5)
- concurrent-ruby (~> 1.0)
- jekyll (3.8.5)
- addressable (~> 2.4)
- colorator (~> 1.0)
- em-websocket (~> 0.5)
- i18n (~> 0.7)
- jekyll-sass-converter (~> 1.0)
- jekyll-watch (~> 2.0)
- kramdown (~> 1.14)
- liquid (~> 4.0)
- mercenary (~> 0.3.3)
- pathutil (~> 0.9)
- rouge (>= 1.7, < 4)
- safe_yaml (~> 1.0)
- jekyll-sass-converter (1.5.2)
- sass (~> 3.4)
- jekyll-watch (2.2.1)
- listen (~> 3.0)
- jira-ruby (1.5.0)
- activesupport
- multipart-post
- oauth (~> 0.5, >= 0.5.0)
- json (1.8.6)
- json_pure (2.2.0)
- kramdown (1.17.0)
- liquid (4.0.3)
- listen (3.1.5)
- rb-fsevent (~> 0.9, >= 0.9.4)
- rb-inotify (~> 0.9, >= 0.9.7)
- ruby_dep (~> 1.2)
- mdl (0.5.0)
- kramdown (~> 1.12, >= 1.12.0)
- mixlib-cli (~> 1.7, >= 1.7.0)
- mixlib-config (~> 2.2, >= 2.2.1)
- mercenary (0.3.6)
- mime-types (3.2.2)
- mime-types-data (~> 3.2015)
- mime-types-data (3.2018.0812)
- minitest (5.11.3)
- mixlib-cli (1.7.0)
- mixlib-config (2.2.18)
- tomlrb
- multi_xml (0.6.0)
- multipart-post (2.0.0)
- necromancer (0.4.0)
- netrc (0.11.0)
- oauth (0.5.4)
- pastel (0.7.2)
- equatable (~> 0.5.0)
- tty-color (~> 0.4.0)
- pathutil (0.16.2)
- forwardable-extended (~> 2.6)
- public_suffix (3.0.3)
- rb-fsevent (0.10.3)
- rb-inotify (0.10.0)
- ffi (~> 1.0)
- rest-client (2.0.2)
- http-cookie (>= 1.0.2, < 2.0)
- mime-types (>= 1.16, < 4.0)
- netrc (~> 0.8)
- rouge (3.3.0)
- ruby_dep (1.5.0)
- safe_yaml (1.0.5)
- sass (3.7.3)
- sass-listen (~> 4.0.0)
- sass-listen (4.0.0)
- rb-fsevent (~> 0.9, >= 0.9.4)
- rb-inotify (~> 0.9, >= 0.9.7)
- strings (0.1.4)
- strings-ansi (~> 0.1.0)
- unicode-display_width (~> 1.4.0)
- unicode_utils (~> 1.4.0)
- strings-ansi (0.1.0)
- terjira (0.4.3)
- activesupport (= 4.1.11)
- jira-ruby (= 1.5.0)
- thor (~> 0.19.0)
- tty-prompt (~> 0.16.1)
- tty-spinner (~> 0.4.1)
- tty-table (~> 0.10.0)
- thor (0.19.4)
- thread_safe (0.3.6)
- timers (4.3.0)
- tomlrb (1.2.8)
- tty-color (0.4.3)
- tty-cursor (0.5.0)
- tty-prompt (0.16.1)
- necromancer (~> 0.4.0)
- pastel (~> 0.7.0)
- timers (~> 4.0)
- tty-cursor (~> 0.5.0)
- tty-reader (~> 0.3.0)
- tty-reader (0.3.0)
- tty-cursor (~> 0.5.0)
- tty-screen (~> 0.6.4)
- wisper (~> 2.0.0)
- tty-screen (0.6.5)
- tty-spinner (0.4.1)
- tty-table (0.10.0)
- equatable (~> 0.5.0)
- necromancer (~> 0.4.0)
- pastel (~> 0.7.2)
- strings (~> 0.1.0)
- tty-screen (~> 0.6.4)
- tzinfo (1.2.5)
- thread_safe (~> 0.1)
- unf (0.1.4)
- unf_ext
- unf_ext (0.0.7.5)
- unicode-display_width (1.4.1)
- unicode_utils (1.4.0)
- vimgolf (0.4.8)
- highline
- json_pure
- thor (>= 0.14.6)
- wisper (2.0.0)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- bundler
- discogs-wrapper
- jekyll
- mdl
- rest-client
- terjira
- vimgolf
-
-BUNDLED WITH
- 2.1.4
diff --git a/shell/env b/shell/env
@@ -29,3 +29,4 @@ export HTTPIE_CONFIG_DIR="$HOME/.config/httpie"
export CABAL_DIR="$HOME/.config/cabal"
export GHCUP_INSTALL_BASE_PREFIX="$HOME/.config"
export ZDOTDIR="$HOME/.config/zsh"
+export GEM_HOME="$HOME/.local/share/gems"
diff --git a/shell/paths b/shell/paths
@@ -1,14 +1,15 @@
#!/bin/sh
[ -x /usr/libexec/path_helper ] && unset PATH && eval "$(/usr/libexec/path_helper -s)"
-[ -d "$HOME/bin" -o -L "$HOME/bin" ] && [ -n "${PATH##*"$HOME/bin"*}" ] && PATH="$HOME/bin:$PATH"
-[ -d "$HOME/.local/bin" -o -L "$HOME/.local/bin" ] && [ -n "${PATH##*"$HOME/.local/bin"*}" ] && PATH="$HOME/.local/bin:$PATH"
-[ -d "$HOME/.scripts" -o -L "$HOME/.scripts" ] && [ -n "${PATH##*"$HOME/.scripts"*}" ] && PATH="$HOME/.scripts:$PATH"
-[ -d "$HOME/.bin" -o -L "$HOME/.bin" ] && [ -n "${PATH##*"$HOME/.bin"*}" ] && PATH="$HOME/.bin:$PATH"
-[ -d "$HOME/go/bin" -o -L "$HOME/go/bin" ] && [ -n "${PATH##*"$HOME/go/bin"*}" ] && PATH="$HOME/go/bin:$PATH"
-[ -d "/usr/local/opt/util-linux/bin" -o -L "/usr/local/opt/util-linux/bin" ] && [ -n "${PATH##*"/usr/local/opt/util-linux/bin"*}" ] && PATH="/usr/local/opt/util-linux/bin:$PATH"
-[ -d "$HOME/.config/.ghcup/bin" -o -L "$HOME/.config/.ghcup/bin" ] && [ -n "${PATH##*"$HOME/.config/.ghcup/bin"*}" ] && PATH="$HOME/.config/.ghcup/bin:$PATH"
-[ -d "/usr/local/sbin" -o -L "/usr/local/sbin" ] && [ -n "${PATH##*"/usr/local/sbin"*}" ] && PATH="/usr/local/sbin:$PATH"
-[ -d "$HOME/.bin" -o -L "$HOME/.bin" ] && [ -n "${PATH##*"$HOME/.bin"*}" ] && PATH="$HOME/.bin:$PATH"
-[ -d "/usr/local/opt/coreutils/libexec/gnubin" -o -L "/usr/local/opt/coreutils/libexec/gnubin" ] && [ -n "${PATH##*"/usr/local/opt/coreutils/libexec/gnubin"*}" ] && PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
-[ -d "$HOME/.local/gnat/bin" -o -L "$HOME/.local/gnat/bin" ] && [ -n "${PATH##*"$HOME/.local/gnat/bin"*}" ] && PATH="$HOME/.local/gnat/bin:$PATH"
+[ -d "$HOME/.local/bin" -o -L "$HOME/.local/bin" ] && [ -n "${PATH##*"$HOME/.local/bin"*}" ] && PATH="$HOME/.local/bin:$PATH"
+[ -d "$HOME/go/bin" -o -L "$HOME/go/bin" ] && [ -n "${PATH##*"$HOME/go/bin"*}" ] && PATH="$HOME/go/bin:$PATH"
+[ -d "/usr/local/opt/util-linux/bin" -o -L "/usr/local/opt/util-linux/bin" ] && [ -n "${PATH##*"/usr/local/opt/util-linux/bin"*}" ] && PATH="/usr/local/opt/util-linux/bin:$PATH"
+[ -d "$HOME/.config/.ghcup/bin" -o -L "$HOME/.config/.ghcup/bin" ] && [ -n "${PATH##*"$HOME/.config/.ghcup/bin"*}" ] && PATH="$HOME/.config/.ghcup/bin:$PATH"
+[ -d "/usr/local/sbin" -o -L "/usr/local/sbin" ] && [ -n "${PATH##*"/usr/local/sbin"*}" ] && PATH="/usr/local/sbin:$PATH"
+[ -d "/usr/local/opt/coreutils/libexec/gnubin" -o -L "/usr/local/opt/coreutils/libexec/gnubin" ] && [ -n "${PATH##*"/usr/local/opt/coreutils/libexec/gnubin"*}" ] && PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
+[ -d "$HOME/.local/gnat/bin" -o -L "$HOME/.local/gnat/bin" ] && [ -n "${PATH##*"$HOME/.local/gnat/bin"*}" ] && PATH="$HOME/.local/gnat/bin:$PATH"
+rubygemspath="$(ruby -e 'puts Gem.user_dir')/bin" && [ -n "${PATH##*"$rubygemspath"*}" ] && PATH="$rubygemspath:$PATH"
+[ -d "$HOME/bin" -o -L "$HOME/bin" ] && [ -n "${PATH##*"$HOME/bin"*}" ] && PATH="$HOME/bin:$PATH"
+[ -d "$HOME/.bin" -o -L "$HOME/.bin" ] && [ -n "${PATH##*"$HOME/.bin"*}" ] && PATH="$HOME/.bin:$PATH"
+[ -d "$HOME/.scripts" -o -L "$HOME/.scripts" ] && [ -n "${PATH##*"$HOME/.scripts"*}" ] && PATH="$HOME/.scripts:$PATH"
+[ -d "$HOME/.local/share/gems/bin" -o -L "$HOME/.local/share/gems/bin" ] && [ -n "${PATH##*"$HOME/.local/share/gems/bin"*}" ] && PATH="$HOME/.local/share/gems/bin:$PATH"
export PATH