I have a conflict between the gem dependencies definitions and the require of these gems.
I have this:
# Gemfile
source "http://rubygems.org"
gemspec
-
# my_gem.gemspec
$:.push File.expand_path("../lib", __FILE__)
require "my_gem"
Gem::Specification.new do |s|
s.version = MyGem::VERSION
# ...
s.add_dependency "s3"
end
-
# /lib/my_gem.rb
require 'rubygems'
require 's3'
The conflict line is the s3 requirement because when I execute bundle install
it complains because this gem is not installed yet.
The workaround is to comment this require, then execute bundle install
and uncomment the require again what is not pretty at all.
Any suggestion is welcome, if you need more details to understand the problem please tell me.