Version 0.7.1 released

New validation features and misc

bundle update ruby_motion_query

Read the updated validation documentation here.

New features

  • Added white_list ability to all validation rules
  • Added custom validation rule which takes a regex param
  • Added add_validator for easy access to add your own named validation methods and you can make them as complex as you’d like (not limited to regex, uses opts etc.)
  • Show a grid overlay. rmq.app.grid.show or some_grid.show
  • Added attributed_text styler to UILabel
  • Added line_break_mode styler to UILabel

Bug fixes

  • Changed email regex pattern
  • Fixed “Uninitialized constant RubyMotionQuery::Event::ValidationEvent” bug

Version 0.6.1 released

You’ll want to update your gem and in your bundles

gem update ruby_motion_query
# Then in your app
bundle update ruby_motion_query

Thanks to all the contributors in this release: @twerth, @gantman, @squidpunch, and @markrickert

New features

  • This may break your code! – Changed before_prev, right_of_prev, etc to refer to previous sibling, not the previous view that was laid out. This both makes more sense and solves some logic problems that came up in real-world use
  • Gant Laborde has started Validation features. The first part is in this release, which is a validation utility. More advanced Validations is coming. rmq.validation.valid?('taco loco', :digits) == false. See class Validation
  • Added rmq docs your_query feature to rmq command in console, which searches the docs in your browser
  • Styler for UIProgressView

Bug fixes

  • Fixed error when app.detect_dependencies was set to false
  • Fixed tests to use new frame features

Version 0.6.0 released

This is a major release

You’ll want to update your gem and in your bundles

gem update ruby_motion_query
# Then in your app
bundle update ruby_motion_query

Thanks to all the contributors in this release: @twerth, @gantman, @thinkclay, @alex-ross, @squidpunch, and @kemiller

New documentation and website

New website here

New features

  • Rect and frame system – see new docs
  • Grid system – see new docs
  • Inspector – rmq.all.inspector in repl
  • Added simple block to .animate
  • .data – rmq(UITextField).data or rmq(UITextField).data(‘foo’). .data is the most common data attribute on each type
  • has_tag? at rmq level – rmq(my_view).has_tag?(:foo)
  • weak_ref_value utilities
  • image_edge_insets for UIButton styler
  • styler for accessibility_label

Deprecation

  • st.padded
  • st.left
  • st.x
  • st.top
  • st.y
  • st.width
  • st.height
  • st.bottom
  • st.from_bottom
  • st.right
  • st.from_right
  • st.centered

Bug fixes

  • Fixed is_class?
  • Fixed send action – should only call method on views that support it
  • Misc bug fixes and many more tests