-
gem install no implicit conversion of String into Integer
Here’s a puzzle You’re coming back to your ruby environment after a hiatus doing other programming things and doing a basic gem install produces something like the following with doing any gem install operation SSL Verify Mode in the .gemrc The ~/.gemrc file had a setting on the problem environment for ssl_verify_mode, but it turned…
-
gem environment, or where are my gems being loaded from, etc.
Ever have a problem with the wrong gem loading or the gem you’re expecting not being found? You can use the gem environment command to output various information about the RubyGems environment: If you export GEM_PATH=/path:/path2… those paths will be added to the GEM You can also see the remote sources, and the gem configuration…
-
Extending Immediate Types and Source Locations in Ruby
Overridding singleton classes of instances In Ruby, most types allow you to open up their singleton classes to override instance methods: Immediate values Some objects are implemented as immediate values in Ruby, and cannot be implemented have singleton methods defined on them directly: Fixnum, true, nil, and false are implemented as immediate values. With immediate values, variables hold the…
