ruby - Can't use `gem-install` command in pry -


i tried install gem using gem-install command in pry, failed.

% pry pry(main) > gem-install pry-doc nomethoderror: undefined method `split' nil:nilclass /users/ironsand/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/rubygem.rb:60:in `install' 

i install gem using gem command bash. there must configure use gem-install command in pry?

i hadn't used pry while.

looking through source code found gem-install command code.

look @ gem.configuration['gem'] , find nil.

it looks comes ~/.gemrc settings or default values.

in ~/.gemrc file, if place line gem: ''

this solved issue me no longer doing split on nil, on assigned value gem: key in .gemrc file.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -