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 Has anyone experience with a Rails+MasterView project and CruiseControl.rb? Thanks, James Britt
On 8/14/07, James Britt <james.britt at gmail.com> 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 > > > Has anyone experience with a Rails+MasterView project and CruiseControl.rb > ?That''s strange, I''ll have to see if I can figure out what is going on there. -- 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/20070815/548da4f7/attachment-0001.html
On 8/14/07, James Britt <james.britt at gmail.com> 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::ActionControllerJames, 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
> > > > 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
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