Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gem development bundle console #26

Open
lulalala opened this issue Jun 24, 2022 · 2 comments
Open

Support gem development bundle console #26

lulalala opened this issue Jun 24, 2022 · 2 comments

Comments

@lulalala
Copy link
Collaborator

bundle console is useful for gem development.

It seems bundler supports console other than irb, e.g.: bundle config console pry

However bundle config console rib does not work, saying

Couldn't load console rib, falling back to irb

It would be great if there is a way to do this.

@godfat
Copy link
Owner

godfat commented Jun 30, 2022 via email

@godfat
Copy link
Owner

godfat commented Dec 28, 2022

It doesn't seem that there's a way to hook into it? 😒

https://github.com/rubygems/rubygems/blob/bundler-v2.4.1/bundler/lib/bundler/cli/console.rb#L31-L37

It's a hard coded hash with:

const_name = {
  "pry" => :Pry,
  "ripl" => :Ripl,
  "irb" => :IRB,
}[name]

So I probably have to make a request to bundler to add rib, ouch. Will it be accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants