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

Doesn't work for me... #8

Open
manuelmeurer opened this issue Sep 3, 2013 · 1 comment
Open

Doesn't work for me... #8

manuelmeurer opened this issue Sep 3, 2013 · 1 comment

Comments

@manuelmeurer
Copy link

Trying to debundle and load awesome_print...

~/myapp$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

~/myapp$ bundle exec rails -v
Rails 3.2.14

~/myapp$ gem list | grep awesome_print
awesome_print (1.1.0)

~/myapp$ cat ~/.irbrc
# Try to load Pry instead of IRB
begin
  require 'pry'
  Pry.start
  exit
rescue LoadError => e
  warn "Couldn't load pry: #{e}"
end

~/myapp$ cat ~/.pryrc
begin
  require 'awesome_print'
  AwesomePrint.pry!
rescue LoadError => e
  warn "Couldn't load awesome_print: #{e}"
end

Pry.config.prompt_name = File.basename(Dir.pwd)

extend Rails::ConsoleMethods if defined?(Rails) && Rails.env.present?

~/myapp$ bundle list | grep pry
  * pry (0.9.12.2)
  * pry-debundle (0.7)

~/myapp$ bundle exec rails console
Loading production environment (Rails 3.2.14)
Couldn't load awesome_print: cannot load such file -- awesome_print
[1] 20130903164115(main)> require 'awesome_print'
LoadError: cannot load such file -- awesome_print
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
[2] 20130903164115(main)> Pry.debundle!
=> nil
[3] 20130903164115(main)> require 'awesome_print'
LoadError: cannot load such file -- awesome_print
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
@manuelmeurer
Copy link
Author

Ping! 😃

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

No branches or pull requests

1 participant