bin/pry

Tue, 19 Oct 2021 20:32:36 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 19 Oct 2021 20:32:36 -0500
changeset 952
0d98622cf4d6
parent 946
20c0492da189
child 990
a4f19f325dea
permissions
-rwxr-xr-x

rework perltidy again

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/inline'

gemfile do
  source 'https://rubygems.org'
  gem 'pry', '~> 0.13.1'
  gem 'pry-byebug'
  gem 'pry-inline'
end

def run
  if File.exist?(Bundler.unbundled_env.fetch('BUNDLE_GEMFILE', 'Gemfile'))
    Bundler.with_unbundled_env do
      Bundler.reset!
      yield
      exit
    end
  end
  yield
end

run do
  load Gem.bin_path('pry', 'pry')
end

mercurial