[Rails] Re: Problems referencing code in bundled gems

2014-01-23 Thread Frederick Cheung
On Tuesday, January 21, 2014 3:46:04 PM UTC+1, Ruby-Forum.com User wrote: > 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_dependen

[Rails] Re: Problems referencing code in bundled gems

2014-01-21 Thread Clem Rock
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_co

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Frederick Cheung
On Thursday, January 16, 2014 6:12:58 PM UTC, Ruby-Forum.com User wrote: > I initially tried that and got: > > > > "`require': cannot load such file" > > > > My question is, does adding > > > > gem 'test_company_libs', :git => > > 'g...@github.com:test_company/test_company-libs.git', :req

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Clem Rock
I should also point out that test_comany_lib's PricingExtension is a module: module PricingExtensions -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop re

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Clem Rock
I initially tried that and got: "`require': cannot load such file" My question is, does adding gem 'test_company_libs', :git => 'g...@github.com:test_company/test_company-libs.git', :require => false to the Gem's Gemfile and doing a bundle install, ensure that gem's code can be referenced at r

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Frederick Cheung
On Thursday, January 16, 2014 3:21:25 PM UTC, Ruby-Forum.com User wrote: > > Fred - pricing_extensions lives in the test_company_libs Gem's > lib/tc_libs folder. In that case you would do require 'tc_libs/pricing_extensions' Fred > I'm not sure how to add this to the ruby load path > a

[Rails] Re: Problems referencing code in bundled gems

2014-01-16 Thread Clem Rock
Fred - pricing_extensions lives in the test_company_libs Gem's lib/tc_libs folder. I'm not sure how to add this to the ruby load path and I'm a bit confused that I would have to because we use the test_company_libs Gem in nearly every project we have and we don't have to 'tweak' anything to l

[Rails] Re: Problems referencing code in bundled gems

2014-01-14 Thread Frederick Cheung
On Tuesday, January 14, 2014 12:37:27 PM UTC, Ruby-Forum.com User wrote: > > pricing_extensions.rb lives in the test_company_libs which is added to > the test_company_models's Gemfile: > > Where precisely? If require 'pricing_extensions' doesn't work then it sounds like it's not in a folder on

[Rails] Re: Problems referencing code in bundled gems

2014-01-14 Thread Clem Rock
pricing_extensions.rb lives in the test_company_libs which is added to the test_company_models's Gemfile: gem 'test_company_libs', :git =>'g...@github.com:test_company/test_company-libs.git', :require => false -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: Problems referencing code in bundled gems

2014-01-13 Thread Frederick Cheung
On Monday, January 13, 2014 7:57:42 PM UTC, Ruby-Forum.com User wrote: > Fred, > >Thanks for your help. I originally tried to include PriceExtensions > > via require 'pricing_extensions' in test_company_libs.rb and kept > > getting this: > > > > `require': cannot load such file -- pri

[Rails] Re: Problems referencing code in bundled gems

2014-01-13 Thread Clem Rock
Fred, Thanks for your help. I originally tried to include PriceExtensions via require 'pricing_extensions' in test_company_libs.rb and kept getting this: `require': cannot load such file -- pricing_extensions I should also mention that PricingExtensions is a module in the test_company_lib

[Rails] Re: Problems referencing code in bundled gems

2014-01-10 Thread Frederick Cheung
On Friday, January 10, 2014 4:42:51 PM UTC, Ruby-Forum.com User wrote: > 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".