I know that with every release I say something like, “This is a big release”, but the fact of the matter is this is a big release. Amongst the 49 tickets that make up release 0.7.0, there are two in particular that are at the core of Mack’s very existence, they are Distributed Objects and Distributed Views/Layouts.
Back on March 26th Mack 0.4.0 was released. This release brought the first of three large distributed features, Distributed Routes. With 0.7.0 Mack fully realizes it’s goal of making it easy to write fully distributed web applications. There is a very nice wiki page, on our new wiki, that shows in detail how to use the new distributed features. That page can found here. Also, don’t forget to watch the screencast of the new distributed features that can be found here.
Distributed Objects
Distributed objects allow you to easily distribute access to your library and model code amongst any of your other Mack applications. Allowing this access is as simple as requiring the mack-distributed gem, adding a few lines to your configuration, and starting the mack_ring_server binary. ‘Client’ applications just need to require the mack-distributed gem.
Distributed Views/Layouts
With distributed views and layouts you can now share the look and feel from one application with all of your applications. Configuration and use is just as easy using distributed objects.
Form and HTML Helpers
People have been requesting more HTML and form helper methods, and we’re more than happy to comply. There are whole bunch of these new methods now to help you more easily build your applications. The generators have been updated to use these new methods, to make your job even easier. There is also now support for doing Date/Time drop downs, similar to Rails and Merb.
‘Tell’ Messaging
Rails folks know ‘tell’ messaging as ‘flash’ messaging and Merb folks know it as ‘message’ messaging. We went with ‘tell’. Tell messages are cleared after any non-redirect request. They’re a great way to send a simple message down to the client.
New Wiki
With this release there is also a new wiki at, http://www.mackwiki.com. This new wiki, incidentally built using Mack 0.7.0, will house all the tutorials and how-to’s for Mack. There are a few entries from the old wiki that still need to brought over during the next day or two.
Changelog:
- [#114] Javascript link_helper
- [#112] Error generating mack application
- [#109] DataMapper 0.9.4
- [#103] Log colors for the console are now configurable per log level.
- [#102] New association method in data_factory
- [#101] Update to file upload testing (build_file -> file_for_upload, and multipart support in put)
- [#100] Inline routing parameters are being mutated
- [#99] Upgraded to facets 2.4.3
- [#98] Fixed mack-facets not being loaded before app_config files.
- [#97] Fixed sessions only working with ‘local_memory’ mode
- [#96] Distributed Views module now uses file cache
- [#92] Removed deprecated app_config.orm code.
- [#91] Fixed Mack blowing up if there is no config/initializers/gems.rb file.
- [#90] Added deprecation system.
- [#89] rake gems:* will now only display warning if any gem required is not installed (and not break)
- [#88] Implemented pending SQLite3 tests in mack-activerecord
- [#87] Refactored out common ORM code from mack-active_record and mack-data_mapper into mack-orm
- [#86] stylesheet link helper
- [#85] Refactored out Mack::ViewHelpers::HtmlHelpers into Mack::ViewHelpers::HtmlHelpers, Mack::ViewHelpers::FormHelpers and Mack::ViewHelpers::linkHelpers
- [#84] Added Mack::Distributed.lookup(url) to retrieve specific distributed services.
- [#83] Added mail_to HTML helper.
- [#82] Added ACL support to mack-distributed
- [#81] Fixed sessions working with redirects in testing
- [#80] Distributed objects present both the DRb::DRbObject inspect and the original object’s inspect when asked.
- [#79] Renamed app_config.mack.use_distributed_routes to app_config.mack.share_routes
- [#76] Move mack_ring_server to mack-distributed
- [#75] Left over mack-distributed rake tasks
- [#74] Added optional feature to disable initialization logging.
- [#73] Tests no longer use the functional/unit directories
- [#69] Added ViewHelperGenerator and ControllerHelperGenerator
- [#68] Transactional support in mack-AR
- [#67] Added test:setup tasks for active_record and data_mapper
- [#62] Removed const redefined warnings if mack-l10n is used along with mack-activerecord
- [#39] HAML 2.0.2 support
- [#28] Refactored out encryption into the mack-encryption gem.
- [#25] Added ControllerGenerator
- [#19] Added HTML form helpers
- [#15] File upload testing support (ability to do multipart form post in testing)
- [#11] Distributed Layout/Views
- [#10] Added distributed objects to mack-distributed.
- [#8] Move distributed code from mack-core to mack-more
- [#5] Added tell messaging
- gem: genosaurus 1.2.2
- gem: haml 2.0.2
- gem: addressable 1.0.4
- gem: facets 2.4.3
- gem: data_mapper 0.9.4
6 comments ↓
[...] developed by a team led by Mark Bates, has continued to grow over the past several months and today announced a significant release, Mack [...]
[...] Mack 0.7.0 - Another of the Ruby web frameworks marches along. [...]
[...] public links >> acl Release 0.7.0 First saved by jschinker | 1 days ago A Few National Notes First saved by time | 8 days ago [...]
Just read the wiki pages and saw the screencast and I must say that this distributed feature looks reaaally interesting and promising! My only question is, can this work over network or only at the localhost? I haven’t found the time to go through the source code yet but in the documentation there is nothing mentioned about this.
Keep it up! I will be watching this project closely! (and possibly write a simple app soon to test it
)
“My only question is, can this work over network or only at the localhost?”
Because under the cover the mack-distributed package uses Rinda/DRb it can be used over a local network no problem. It can’t be used over the internet (ie. an open network). So if you can do it with Rinda/DRb you can do it with mack-distributed.
And because it’s Rinda/DRb you can also setup an ACL for extra security.
I hope that helps.
Interesting… I took a look in rinda’s and Drb’s documentation and I think I got a main idea of how this thing works
Even though I have come to *not* like *that* much distributed objects (at least when it’s not necessary to implement a system this way) this (mack’s support for distributed objects) can be useful.
P.S.: The reason I don’t really like distributed solutions is that the API of such systems tends to become hard to change when other applications depend on it which means that there is a greater possibility of getting stuck with legacy code…
Leave a Comment