Using bundler inside my gem
问题 I wanted to use bundler inside gem I wrote. I had Gemfile and in my_gem_file.rb I have require 'rubygems' require 'bundler' Bundler.setup Bundler.require(:default) But when I build and install my gem I get exception Bundler::GemfileNotFound: Could not locate Gemfile. Is there any solution for using bundler inside gems? 回答1: Since your gem has specified its dependencies in its .gemspec you can assume that they will be available at runtime. Don't involve Bundler. You can, however, still make