Hi folks I am dev''ing a gem from a Github fork and I want to integration test my changes in my Rails project. Previously I had been able to copy the gem into vendor/gems to ensure this took precedence over the locally installed gem. I can''t see why this is no longer the case or how to investigate how Rails will resolve the gems - is there some kinda cache? I guess my alternative is to build and install the gem locally from my edited fork but it seemed easier just to copy it to vendor/gems. Thoughts/comments welcome. Matt portaputer:speechbox matt$ rake gems (in /Volumes/data/dev/speechbox) Type ''svnversion --help'' for usage. [F] haml [ ] rcov [F] mislav-will_paginate [I] msp-youtube-g I = Installed F = Frozen portaputer:speechbox matt$ ll vendor/gems/ total 0 drwxr-xr-x 12 matt matt 408 Jun 24 11:55 mislav- will_paginate-2.3.2/ drwxr-xr-x 13 matt matt 442 Jun 27 15:33 haml-2.0.0/ drwxr-xr-x 13 matt matt 442 Jul 11 10:42 msp-youtube-g/ portaputer:speechbox matt$ cat config/environment.rb | grep config.gem config.gem "haml" config.gem "rcov" config.gem "mislav-will_paginate", :lib => "will_paginate", :source => "http://gems.github.com/" config.gem "msp-youtube-g", :lib => "youtube_g", :source => "http:// gems.github.com/" portaputer:speechbox matt$ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
OK, to answer my own Q.. It seems that Rails has to "know" the Gem has been unpacked. I am not sure where it keeps this state but unless you have issued a `rake gems:unpack GEM=mygem'' previously, and `rake gems'' shows mygem as frozen then the contents of vendor/gems/mygem will be ignored.. On Jul 11, 11:21 am, msp <matt.spendl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi folks > > I am dev''ing agemfrom a Github fork and I want to integration test > my changes in my Rails project. > > Previously I had been able to copy thegeminto vendor/gems to ensure > this took precedence over the locally installedgem. > > I can''t see why this is no longer the case or how to investigate how > Rails will resolve the gems - is there some kinda cache? > > I guess my alternative is to build and install thegemlocally from my > edited fork but it seemed easier just to copy it to vendor/gems. > > Thoughts/comments welcome. > > Matt > > portaputer:speechbox matt$ rake gems > (in /Volumes/data/dev/speechbox) > Type ''svnversion --help'' for usage. > [F] haml > [ ] rcov > [F] mislav-will_paginate > [I] msp-youtube-g > > I = Installed > F = Frozen > portaputer:speechbox matt$ ll vendor/gems/ > total 0 > drwxr-xr-x 12 matt matt 408 Jun 24 11:55 mislav- > will_paginate-2.3.2/ > drwxr-xr-x 13 matt matt 442 Jun 27 15:33 haml-2.0.0/ > drwxr-xr-x 13 matt matt 442 Jul 11 10:42 msp-youtube-g/ > portaputer:speechbox matt$ cat config/environment.rb | grep config.gem > config.gem"haml" > config.gem"rcov" > config.gem"mislav-will_paginate", :lib => "will_paginate", :source > => "http://gems.github.com/" > config.gem"msp-youtube-g", :lib => "youtube_g", :source => "http:// > gems.github.com/" > portaputer:speechbox matt$--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Your frozen gem isn''t being detect because the directory name is missing the version. Rails is trying to match a msp-youtube-g-* directory that doesn''t exist. Tiago Macedo msp wrote:> OK, to answer my own Q.. > > It seems that Rails has to "know" the Gem has been unpacked. I am not > sure where it keeps this state but unless you have issued a `rake > gems:unpack GEM=mygem'' previously, and `rake gems'' shows mygem as > frozen then the contents of vendor/gems/mygem will be ignored.. > > On Jul 11, 11:21 am, msp <matt.spendl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi folks >> >> I am dev''ing agemfrom a Github fork and I want to integration test >> my changes in my Rails project. >> >> Previously I had been able to copy thegeminto vendor/gems to ensure >> this took precedence over the locally installedgem. >> >> I can''t see why this is no longer the case or how to investigate how >> Rails will resolve the gems - is there some kinda cache? >> >> I guess my alternative is to build and install thegemlocally from my >> edited fork but it seemed easier just to copy it to vendor/gems. >> >> Thoughts/comments welcome. >> >> Matt >> >> portaputer:speechbox matt$ rake gems >> (in /Volumes/data/dev/speechbox) >> Type ''svnversion --help'' for usage. >> [F] haml >> [ ] rcov >> [F] mislav-will_paginate >> [I] msp-youtube-g >> >> I = Installed >> F = Frozen >> portaputer:speechbox matt$ ll vendor/gems/ >> total 0 >> drwxr-xr-x 12 matt matt 408 Jun 24 11:55 mislav- >> will_paginate-2.3.2/ >> drwxr-xr-x 13 matt matt 442 Jun 27 15:33 haml-2.0.0/ >> drwxr-xr-x 13 matt matt 442 Jul 11 10:42 msp-youtube-g/ >> portaputer:speechbox matt$ cat config/environment.rb | grep config.gem >> config.gem"haml" >> config.gem"rcov" >> config.gem"mislav-will_paginate", :lib => "will_paginate", :source >> => "http://gems.github.com/" >> config.gem"msp-youtube-g", :lib => "youtube_g", :source => "http:// >> gems.github.com/" >> portaputer:speechbox matt$ >> > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---