945:29657d7ea734 | 946:20c0492da189 |
---|---|
1 #!/usr/bin/env ruby | |
2 # frozen_string_literal: true | |
3 | |
4 require 'bundler/inline' | |
5 | |
6 gemfile do | |
7 source 'https://rubygems.org' | |
8 gem 'pry', '~> 0.13.1' | |
9 gem 'pry-byebug' | |
10 gem 'pry-inline' | |
11 end | |
12 | |
13 def run | |
14 if File.exist?(Bundler.unbundled_env.fetch('BUNDLE_GEMFILE', 'Gemfile')) | |
15 Bundler.with_unbundled_env do | |
16 Bundler.reset! | |
17 yield | |
18 exit | |
19 end | |
20 end | |
21 yield | |
22 end | |
23 | |
24 run do | |
25 load Gem.bin_path('pry', 'pry') | |
26 end |