Version 0.5.0
This is a huge update
I recommend updating. Read this post about it:
http://infinitered.com/2013/12/10/rmq-everywhere-v0-5-changes-everything
Note: rmq_did_create is deprecated, override rmq_build now instead
Update in bundler, but also your gem (for the command-line utilities):
globally: gem update ruby_motion_query
in your projects: bundle update ruby_motion_query
- New RMQ everywhere system. You no longer have to pass around rmq objects if you're not in a controller (table cells for example)
- rmq_did_create is deprecated, use rmq_build now
- rmq works in any object
- rmq.view_controller will auto-find the correct controller. You can manually set the controller of an rmq object if needed
- In addition to rmq.create and rmq.append, there is rmq.build. Create creates a UIView but doesn't' append, append both creates and appends, build doesn't create or append, but does initialize the view to work with rmq. All 3 methods will fire the "def rmq_build" in your custom view
- Improved performance
- Created WeakRef utilities to work around RM bugs
- RubyMotionQuery::RMQ.weak_ref(my_object)
- RubyMotionQuery::RMQ.weak_ref_to_strong_ref(my_weak_object)
- Changed "end" to "back" in traversing. I can't believe I created a method named "end", I'm not very bright sometimes. I blinding named it what jQuery does. Next week I'll create an "if" and "super" method ;-)
- Added distribute (:vertical, :horizontal, :margin, :margins): rmq(UILabel).distribute
- Added resize_to_fit_subviews
- Added actions
- enable
- disable
- enable_interaction
- disable_interaction
- Added to stylesheets:
- screen_width
- screen_height
- content_width
- content_height
- content_size
- Added to stylers:
- clip_to_bounds
- Changed styler#frame to accept a CGRect
- Misc
- Added some basic debug utilities. I will be adding more to this later. rmq.debug.assert
- Bug fixes
- Tons of misc fixes
- Fixed memory leak where a controller was not being released
- Fixed a few crashes
- Updated various templates, such as view, controller, and collection view controller
- New app template has the correct icons for iOS7
- Update example app to include a collection view and navigation bar
- Added Dash docset (Dash is a help OSX app)