11 Apr '16, 5pm

Behind the Ruby Gems Curtain

Behind the Ruby Gems Curtain

I recently ran into an issue where I had to crack open the Bundler gem in order to get a client project or ours running on my new MacBook. The error that I was getting was a bit strange: Bundler::GemRequireError: There was an error while trying to load the gem 'ts-delayed-delta'. I looked at the Bundler source to see where that exception was being raised and it looks like they are rescuing any exception and then re-raise a Bundler::GemRequireError: begin Kernel.require file rescue => e raise e if e.is_a?(LoadError) # we handle this a little later raise Bundler::GemRequireError.new e, "There was an error while trying to load the gem '#{file}'." end Unfortunately, this has the side effect of swallowing exceptions and showing the most unhelpful one first. Merely commenting out the line raise Bundler::GemRequireError.new e allowed me to see the real error – there was a missing...

Full article: http://blog.planetargon.com/entries/2016/3/29/behind-the-...

Tweets

Ruby Developer.Ruby on

This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.

#PLEASE SAVE ME. How do I completely uninstall ...

abizy.com 17 Apr '16, 3pm

We do not share, store or cache any illegal files on this blog. We only share digital contents those are licensed under “C...

Background jobs in Ruby

rubyflow.com 12 Apr '16, 9pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Ruby Methods: differences between load, require...

rubyflow.com 11 Apr '16, 1pm

Ruby Methods: differences between load, require, include and extend in Ruby. by Marta Woj — Today One day, as your code gr...

If you look closely, you can find a familiar gu...

chuckei.com 14 Apr '16, 2pm

Speaking about campaigns, they are also having a special Duffy edition train at the Tokyo Disney line. FYI, Duffy is a cha...

Things to Consider when Metaprogramming in Ruby

rubyflow.com 12 Apr '16, 4am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...