Fri, 28 Jan 2022 14:42:14 -0600
better hlsearch toggle
946
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
1 | #!/usr/bin/env ruby |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
2 | # frozen_string_literal: true |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
3 | |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
4 | require 'bundler/inline' |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
5 | |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
6 | gemfile do |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
7 | source 'https://rubygems.org' |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
8 | gem 'pry', '~> 0.13.1' |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
9 | gem 'pry-byebug' |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
10 | gem 'pry-inline' |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
11 | end |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
12 | |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
13 | def run |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
14 | if File.exist?(Bundler.unbundled_env.fetch('BUNDLE_GEMFILE', 'Gemfile')) |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
15 | Bundler.with_unbundled_env do |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
16 | Bundler.reset! |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
17 | yield |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
18 | exit |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
19 | end |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
20 | end |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
21 | yield |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
22 | end |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
23 | |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
24 | run do |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
25 | load Gem.bin_path('pry', 'pry') |
20c0492da189
Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
26 | end |