Hello,
I'm working on my first gem and I'm having a problem referencing
dependencies. In my gem, I need to reference code from some other
custom gems we've developed.
We'll call my Gem "test_company_models". In my test_company_models
gem, I need to include PricingExtensions from our test_company_libs Gem.
Where is pricing_extensions.rb?
Fred
pricing_extensions.rb lives in the test_company_libs which is added to
the test_company_models's Gemfile:
Fred - pricing_extensions lives in the test_company_libs Gem's
lib/tc_libs folder.
I don't think the gem's Gemfile is used in this case - normally a gem's dependencies on other gems should be in your gemspec. Then in your app you would add the above to the app's Gemfile to say how the test_company_libs gem should be found.
Fred
Fred,
Sorry for falling off the map. Picking this up again and I'm stumped
on how to make this work.
I've tried to adding test_company-libs as a add_development_dependency
and also as a add_runtime_dependency and neither seem to solve the
problem.
IE:
spec.add_development_dependency "test_company-libs" #doesn't work
spec.add_runtime_dependency "test_company-libs" #doesn't work