philnash / bitly

🗜 A Ruby wrapper for the bit.ly API
https://rubygems.org/gems/bitly
MIT License
451 stars 139 forks source link

bitly plays around with with $LOAD_PATH #31

Closed stouset closed 11 years ago

stouset commented 11 years ago

From bitly.rb:

$:.unshift File.dirname(__FILE__)

You should not be messing with other people's $LOAD_PATH (e.g., $:). This line ends up causing require 'utils', require 'client', require 'url', require 'version', and require 'v3' to all preferentially load the copy from the bitly gem, instead of whatever they should actually point to.

philnash commented 11 years ago

Fixed in #32