Greetings my dear friends, as I have great news for you today! Our beloved under-os was just bumped to the next version!
There are many changes, but the most important change of all is that starting from this version the
under-os gem is getting split into three
under-os-core- has the bootloader and the core functionality
under-os-ui- has all the UI related code (pages, html, css and ui events)
under-os-http- contains the nice, ruby like HTTP wrapper
under-os gem is still out there it just now it is a shallow gem that includes those three as dependencies. So, all your old code should be working fine, but now you have options to include only what you need into your project.
The reason why we do that is not just the obvious reducing the complexity and enabling modularity. One of the goals of this project is not to just create a “thing”, but rather create an infrastructure to build things. We are breaking things apart and eating our own dog food to enable under-os to be easily extended much in the ruby community way.
Such ruby! Many gems!
UI::Events::Eventclass received several new methods related to handling touch gesture recognizers. Those include things like
UI::Scrollclass was extended with quite a few new methods to help you work with scaling and panning. Now you have such methods as
#contentOffsetand so on. The scroller also received several patches here and there to address issues with handling the
UOS::Pointunit is now mutable. It also has two new fancy methods
#-to help you to deal with two dimensional calculations. It’s pretty handy when you need to say calculate cumulative offsets and such.
- the CSS processor now understand the
- minor bug fixes and performance optimizations.
And that’s about it. Enjoy, and I’ll see you around!