1 #! /usr/bin/env nix-shell
2 #! nix-shell -i bash -p curl jq bundler bundix ruby
8 # Update Gemfile with the latest iruby version
9 echo "source 'https://rubygems.org'" > Gemfile
10 echo -n "gem 'iruby', " >> Gemfile
11 curl https
://rubygems.org
/api
/v
1/gems
/iruby.json | jq .version
>> Gemfile
13 # Regenerate Gemfile.lock
14 export BUNDLE_FORCE_RUBY_PLATFORM
=1
17 # Regenerate gemset.nix