Fixed an issue with dep method where it ignored the passed gem version