Skip to content

Doesn't work for me... #8

@manuelmeurer

Description

@manuelmeurer

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions