kyrylo / pry-theme

An easy way to customize Pry colors via theme files
zlib License
171 stars 14 forks source link

Version 0.1.2 throws errors on Rubygems 1.8.24 #20

Closed yorickpeterse closed 12 years ago

yorickpeterse commented 12 years ago

After installing Pry-theme 0.1.2 I get the following error when executing a Rubygems command (e.g. gem list):

Error loading RubyGems plugin "/home/yorickpeterse/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/pry-theme-0.0.9/lib/rubygems_plugin.rb": undefined method `install_gem_hooks' for PryTheme:Module (NoMethodError)

Output of gem env:


RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.24
  - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/yorickpeterse/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /home/yorickpeterse/.rbenv/versions/1.9.3-p194/bin/ruby
  - EXECUTABLE DIRECTORY: /home/yorickpeterse/.rbenv/versions/1.9.3-p194/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/yorickpeterse/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1
     - /home/yorickpeterse/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-ri --no-rdoc"
     - "update" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - http://rubygems.org/
yorickpeterse commented 12 years ago

Apparently this issue can be fixed by removing all older versions of Pry-theme before installing the new version. This can be done as following:

gem uninstall pry-theme -a 
gem install pry-theme
HaoH commented 11 years ago

+1

kyrylo commented 11 years ago

+1?