# \[ANN\] Engines 1.1.1

**URL:** <https://www.ruby-forum.com/t/ann-engines-1-1-1/57080>\
**Category:** Rails\
**Created:** [April 7, 2006, 1:29am UTC](https://www.ruby-forum.com/t/ann-engines-1-1-1/57080 "2006-04-07T01:29:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [April 7, 2006, 1:29am UTC](https://www.ruby-forum.com/t/ann-engines-1-1-1/57080/1 "2006-04-07T01:29:15Z")

</div>

Since a minor change in Rails (renaming the file that the version is  
stored in, namely) causes a bit of a hiccup for the Engines plugin,  
here’s a new release, full of bug fixes and other nice things.

ALL users of Engines are advised to update their copy of the plugin to  
get these fixes. The Engines plugin is fully backwards compatible with  
Rails 1.0. Anyway - to update, please download either via the  
script/plugin command, or (better) using SVN from:

Latest Release (as ever): [http://svn.rails-engines.org/plugins/engines](http://svn.rails-engines.org/plugins/engines)  
Fixed Tag for 1.1.1:  
[http://svn.rails-engines.org/engines/tags/rel\_1.1.1](http://svn.rails-engines.org/engines/tags/rel_1.1.1)

As usual, when you are in the final stages of deploying a system for  
production, I STRONGLY recommend using an SVN external pointing to a  
tag (e.g. [http://svn.rails-engines.org/engines/tags/rel\_1.1.1](http://svn.rails-engines.org/engines/tags/rel_1.1.1)) to  
ensure your application will run as expected both now and in the  
future.

## What is this all about?

Rails Engines is a mechanism for sharing maintainable code effectively  
between your Rails applications. See [http://rails-engines.org/](http://rails-engines.org/) for  
more…

## CHANGELOG

- Fixed migration rake task failing when given a specific version  
(Ticket #115)
- Added new rake task “test:engines” which will test engines (and  
other plugins) but ensure that the test database is cloned from  
development beforehand (Ticket #125)
- Fixed issue where ‘engine\_schema\_info’ table was included in schema  
dumps (Ticket #87)
- Fixed multi-part emails (Ticket #121)
- Added an ‘install.rb’ file to new engines created by the bundled  
generator, which installs the engines plugin automatically if it  
doesn’t already exist (Ticket #122)
- Added a default VERSION module to generated engines (Ticket #123)
- Refactored copying of engine’s public files to a method of an Engine  
instance. You can now call Engines.get(:engine\_name).copy\_public\_files  
(Ticket #108)
- Changed engine generator templates from .rb files to .erb files  
(Ticket #106)
- Fixed the test\_helper.erb file to use the correct testing extensions  
and not load any schema - the schema will be cloned automatically via  
rake test:engines
- Fixed problem when running with Rails 1.1.1 where version wasn’t  
determined correctly (Ticket #129)

## Problems / More Information

Please meander over to

[http://rails-engines.org](http://rails-engines.org)

whereupon you will be guided to the most suitable place for more  
information, questions and bug reports.

Cheers,

- james

–

- J \*  
~

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [April 7, 2006, 4:10am UTC](https://www.ruby-forum.com/t/ann-engines-1-1-1/57080/2 "2006-04-07T04:10:47Z")

</div>

I am using Rails in gems, not in the vendor directory. The following  
code is in the new version of engines.rb:

begin  
require ‘rails\_version’ # Rails 1.0, 1.1.0  
rescue LoadError  
require ‘rails/version’ # renamed as of Rails 1.1.1  
end

but the exception is (Gem::Exception) from the trace. Changing the above  
to

begin  
require ‘rails\_version’ # Rails 1.0, 1.1.0  
rescue  
require ‘rails/version’ # renamed as of Rails 1.1.1  
end

allows the web server to start.

Keith

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [April 7, 2006, 2:58am UTC](https://www.ruby-forum.com/t/ann-engines-1-1-1/57080/3 "2006-04-07T02:58:28Z")

</div>

James A. wrote:

> Since a minor change in Rails (renaming the file that the version is  
> stored in, namely) causes a bit of a hiccup for the Engines plugin,  
> here’s a new release, full of bug fixes and other nice things.
> 
> ALL users of Engines are advised to update their copy of the plugin to  
> get these fixes. The Engines plugin is fully backwards compatible with  
> Rails 1.0. Anyway - to update, please download either via the  
> script/plugin command, or (better) using SVN from:
> 
> Latest Release (as ever): [http://svn.rails-engines.org/plugins/engines](http://svn.rails-engines.org/plugins/engines)  
> Fixed Tag for 1.1.1:  
> [http://svn.rails-engines.org/engines/tags/rel\_1.1.1](http://svn.rails-engines.org/engines/tags/rel_1.1.1)

Just upgraded to rails 1.1.1 and the engines 1.1.1 plugin. Now neither  
mongrel nor webrick will start. Here’s the error

=\> Booting WEBrick…  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:149:in `activate': can't activate rails (= 1.1.0), already activated rails-1.1.1] (Gem::Exception) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in `require’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:147:in  
`require' from ./script/../config/../vendor/plugins/engines/lib/engines.rb:5 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:147:in  
`require' from script/../config/../vendor/plugins/engines/init.rb:32:in `load\_plugin’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/initializer.rb:348:in  
`load_plugin' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence\_warnings’  
… 11 levels…  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.1/lib/commands/server.rb:30  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require’  
from script/server:3

Any help appreciated.

Keith

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [April 7, 2006, 9:45am UTC](https://www.ruby-forum.com/t/ann-engines-1-1-1/57080/4 "2006-04-07T09:45:30Z")

</div>

This error only seems to occur if you have BOTH Rails 1.1.0 and 1.1.1  
gems installed (which is why I couldn’t replicate it before).

It has been fixed in the official release, please update or reinstall  
your version of the Engines plugin.

Cheers

- james

On 4/7/06, Keith L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Latest Release (as ever): [http://svn.rails-engines.org/plugins/engines](http://svn.rails-engines.org/plugins/engines)  
> > (Gem::Exception)  
> > `require' `silence\_warnings’

–

- J \*  
~

---

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [April 7, 2006, 9:45am UTC](https://www.ruby-forum.com/t/ann-engines-1-1-1/57080/5 "2006-04-07T09:45:36Z")

</div>

This error only seems to occur if you have BOTH Rails 1.1.0 and 1.1.1  
gems installed (which is why I couldn’t replicate it before).

It has been fixed in the official release, please update or reinstall  
your version of the Engines plugin.

Cheers

- james

On 4/7/06, Keith L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> to
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

- J \*  
~
