[ANN] Engines 1.0.2


#1

The Engines plugin has been updated to version 1.0.2. Changes in this
release:

  • Fixed bug with overloading controllers in modules from /app directory
  • Fixed exception thrown when public files couldn’t be created;
    exception is now logged (Ticket #52)
  • Fixed problem with generated test_helper.rb file via
    File.expand_path (Ticket #50)

The new version can be obtained via the script/plugin command, and
found at the following SVN urls:

Latest Release: http://opensvn.csie.org/rails_engines/plugins/engines
Permanent Tag:
http://opensvn.csie.org/rails_engines/engines/tags/rel_1.0.2

Thanks to everyone for their feedback and Trac tickets! Let me know if
this causes any problems - if you do experience any issues, you can
always grab a specific tagged version after submitting the bug, while
we fix the source.

Back to work…

  • James

#2

James A. wrote:

The Engines plugin has been updated to version 1.0.2. Changes in this
release:

  • Fixed bug with overloading controllers in modules from /app directory
  • Fixed exception thrown when public files couldn’t be created;
    exception is now logged (Ticket #52)

Lookin good over here. Thanks for the quick turnaround time. Engines are
going to make me a lot more productive, and hopefully a lot more money!
:slight_smile:


#3

Found a bug…

I just deployed to Dreamhost with 1.0.2 and I’m getting a “stack too
deep” error when trying to access anything. The same code works with
1.0.1 - so something that has changed broke things.

PS: The same code runs just fine with 1.0.2 on my XP box and my OSX
box…

Here’s the error from the log

Processing Base#index (for 67.169.31.47 at 2006-01-06 17:53:34) [GET]
Session ID: e77e376742fc93b083550da723f35473
Parameters: {}

MissingSourceFile (no such file to load –
vendor/plugins/substruct/app/controllers/content_nodes_controller.rb):
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in
require__' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire’
/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:244:in
require' /vendor/plugins/engines/lib/dependencies_extensions.rb:54:inrequire_or_load’

Here’s the spew from Webrick

SystemStackError in #

stack level too deep

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

./script/…/config/…/vendor/rails/activesupport/lib/active_support/inflector.rb:107:in
singularize' ./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.rb:107:ineach’
./script/…/config/…/vendor/rails/activesupport/lib/active_support/inflector.rb:107:in
singularize' ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:12:insingularize’
./script/…/config/…/vendor/rails/activerecord/lib/active_record/reflection.rb:142:in
name_to_class_name' ./script/../config/../vendor/rails/activerecord/lib/active_record/reflection.rb:83:inclass_name’
./script/…/config/…/vendor/rails/activerecord/lib/active_record/reflection.rb:87:in
require_class' ./script/../config/../vendor/rails/activerecord/lib/active_record/associations.rb:890:increate_has_many_reflection’
./script/…/config/…/vendor/rails/activerecord/lib/active_record/associations.rb:346:in
has_many' /home/.demo/mchappel/michellechappel.com/vendor/plugins/substruct/app/models/product.rb:2 ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:237:inload’
./script/…/config/…/vendor/rails/activesupport/lib/active_support/dependencies.rb:237:in
`load’

Show blamed files

This error occured while loading the following files:
script/…/config/…/vendor/plugins/substruct/app/controllers/application.rb
=> model order_line_item.rb
order_line_item.rb
product.rb
…and on and on…


#4

James A. wrote:

Is the ‘substruct/app/controllers/application.rb’ file in your engine,
or should that be in the main application? I’m just trying to figure
out where it ought to be load it from…

  • james

Sorry for the delayed response…

Yeah it’s in the engines folder…not the main application. Basically
it’s an app skeleton.


#5

Try updating to 1.0.3 - that should fix the bug.

  • james

#6

Is the ‘substruct/app/controllers/application.rb’ file in your engine,
or should that be in the main application? I’m just trying to figure
out where it ought to be load it from…

  • james