4 ms·
Things tend to break a little less over time if I can require a version of a gem, like: gem 'png', '= 1.1' The good part about rubygems is that it's possible
by sunkencity 17y ago
Things tend to break a little less over time if I can require a version of a gem, like:
gem 'png', '= 1.1'
The good part about rubygems is that it's possible to get a certain version of a gem. I'd rather use gem and version than just require "png", and get god knows what version or file.
- masklinn 17y agoThat's a good point, and in this case requiring rubygems does make sense, but I really doubt that's the most common use case. Stuff like this: http://github.com/mojombo/jekyll/blob/2f2e45bedf67dedb8d1dc0d02612345ee5c893f2/lib/jekyll.rb http://github.com/mojombo/jekyll/blob/2f2e45bedf67dedb8d1dc0... or that: http://github.com/mwunsch/weary/blob/cd7b35ccee66757c5efb0a03cd54f9e89f1eaad7/lib/weary.rb http://github.com/mwunsch/weary/blob/cd7b35ccee66757c5efb0a0... is probably the kind of stuff Ryan rages against in his rant (though you'd have to ask him if that's that, and how he'd see you use case)
- sunkencity 17y agoyep I can agree that require 'rubygems' require 'png' is kind of pointless.