The rails-ocean gem is now an engine

6 views
Skip to first unread message

Peter Bengtson

unread,
Aug 27, 2013, 10:12:49 AM8/27/13
to oceanfr...@googlegroups.com
I have just released v1.18.8 of the ocean-rails gem. Internally, the gem is now an engine, which allows us to serve the /alive controller, the error controller, the application helper and various initializers from the gem rather than by installing source templates via the app generator. 

This reduces clutter, makes the code shorter and easier to understand, and allows us to DRY up the code in general as boilerplate code can be eliminated. 

You should upgrade to the latest version as soon as possible. When you do so, you can remove the following:
  • The ErrorController
  • The AliveController (there will be a way to specify added behaviour soon, e.g. to check that the DB is available)
  • The ApplicationHelper
  • The following from config/initializers:
    • api_constants.rb
    • ocean_constants.rb
    • zeromq_logger.rb
  • The /alive routing line from config/routes.rb
  • specs/controllers/alive_spec.rb
  • specs/requests/alive_spec.rb
  • specs/routing/alive_spec.rb
All core services, webserver apps, and generators have been updated accordingly.

Tao Wan

unread,
Aug 27, 2013, 12:00:58 PM8/27/13
to Peter Bengtson, oceanfr...@googlegroups.com
Hej, Peter

Have you updated the sandbox tutorial regarding to the new release ?  ( the application helper and various initializers from the gem rather than by installing source templates via the app generator. )

mvh/Tao

--
http://wiki.oceanframework.net | https://github.com/OceanDev
---
You received this message because you are subscribed to the Google Groups "OceanFramework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oceanframewor...@googlegroups.com.
To post to this group, send an email to oceanfr...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/oceanframework/466ec6ed-1b5c-462b-aeeb-9f893e1cb28a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Peter Bengtson

unread,
Aug 27, 2013, 5:49:12 PM8/27/13
to Tao Wan, oceanfr...@googlegroups.com
The tutorial text shouldn't be in need of an update, as those files never are mentioned in it. Following the tutorial from the beginning will produce a result equivalent to the contents of the sandbox repo - which has been updated. I sort of include it conceptually in the Core Service group.

/ Peter
Reply all
Reply to author
Forward
0 new messages