From jeff.barczewski at gmail.com Wed Sep 12 23:01:50 2007 From: jeff.barczewski at gmail.com (Jeff Barczewski) Date: Wed, 12 Sep 2007 22:01:50 -0500 Subject: [Masterview-users] Mastervew and Cruisecontrol.rb In-Reply-To: <46C21667.1000408@gmail.com> References: <46C21667.1000408@gmail.com> Message-ID: <19cda190709122001t77cb7c63h6f3f9544d0059e94@mail.gmail.com> On 8/14/07, James Britt wrote: > > Hi. I've set up CruiseControl.rb with a Rails app using MasterView. > > CruiseControl.rb is unhappy with MasterView. I can shell in to the > server where CruiseControl.rb lives, cd to the work directory for my > project, and run 'rake', and it runs fine. But CruiseControl.rb > executes things in a somewhat roundabout way, and when it loads > > vendor/plugins/masterview/lib/masterview/initializer.rb > > that code seems not to know anything about ActionController, raising > > uninitialized constant MasterView::Configuration::ActionController James, I made a simple fix to get around the ActionController problem with CruiseControl by just checking if it was defined. This seemed to resolve the problem. It's obvious that for some reason cruise control loads things differently than rails would otherwise we wouldn't have these issues, but regardless, the simple fix should solve the problem. I have checked it into the trunk and will make it part of the next release. You can pull it from svn://rubyforge.org/var/svn/masterview/trunk/masterview Let me know if this fixes the problem for you or if you have any additional issues. Thanks, Jeff -- Jeff Barczewski, MasterView core team Inspired Horizons Ruby on Rails Training and Consultancy http://inspiredhorizons.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070912/7c46de56/attachment.html From james at neurogami.com Wed Sep 12 23:35:58 2007 From: james at neurogami.com (James Britt) Date: Wed, 12 Sep 2007 20:35:58 -0700 Subject: [Masterview-users] Mastervew and Cruisecontrol.rb In-Reply-To: <19cda190709122001t77cb7c63h6f3f9544d0059e94@mail.gmail.com> References: <46C21667.1000408@gmail.com> <19cda190709122001t77cb7c63h6f3f9544d0059e94@mail.gmail.com> Message-ID: <46E8B01E.3030805@neurogami.com> > > > > James, > > I made a simple fix to get around the ActionController problem with > CruiseControl by just checking if it was defined. This seemed to resolve the > problem. > > It's obvious that for some reason cruise control loads things differently > than rails would otherwise we wouldn't have these issues, but regardless, > the simple fix should solve the problem. > > I have checked it into the trunk and will make it part of the next release. > > You can pull it from svn://rubyforge.org/var/svn/masterview/trunk/masterview > > Let me know if this fixes the problem for you or if you have any additional > issues. > Thanks! I will grab this now and give it a whirl. James From james at neurogami.com Thu Sep 13 00:13:43 2007 From: james at neurogami.com (James Britt) Date: Wed, 12 Sep 2007 21:13:43 -0700 Subject: [Masterview-users] Mastervew and Cruisecontrol.rb In-Reply-To: <19cda190709122001t77cb7c63h6f3f9544d0059e94@mail.gmail.com> References: <46C21667.1000408@gmail.com> <19cda190709122001t77cb7c63h6f3f9544d0059e94@mail.gmail.com> Message-ID: <46E8B8F7.7040005@neurogami.com> Jeff Barczewski wrote: > > Let me know if this fixes the problem for you or if you have any additional > issues. Looks good. I updated my project, did an svn commit, and told CC to do a build. All worked. Thanks again! James