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 'debug', '>= 1.0.0' | |
9 end | |
10 | |
11 def run | |
12 if File.exist?(Bundler.unbundled_env.fetch('BUNDLE_GEMFILE', 'Gemfile')) | |
13 Bundler.with_unbundled_env do | |
14 Bundler.reset! | |
15 yield | |
16 exit | |
17 end | |
18 end | |
19 yield | |
20 end | |
21 | |
22 run do | |
23 load Gem.bin_path('debug', 'rdbg') | |
24 end |