Improve update.sh script to fetch latest version automatically

+9 -2
+9 -2
pkgs/applications/editors/jupyter-kernels/iruby/update.sh
··· 1 - #!/usr/bin/env sh 1 + #!/usr/bin/env bash 2 + 3 + set -eu -o pipefail 4 + 5 + cd "$(dirname "$0")" 2 6 3 - # First, manually update Gemfile 7 + # Update Gemfile with the latest iruby version 8 + echo "source 'https://rubygems.org'" > Gemfile 9 + echo -n "gem 'iruby', " >> Gemfile 10 + nix shell .#curl -c curl https://rubygems.org/api/v1/gems/iruby.json | nix shell .#jq -c jq .version >> Gemfile 4 11 5 12 # Regenerate Gemfile.lock 6 13 nix shell .#bundler -c bundle lock