Skip to content

Version 1.4.0

Compare
Choose a tag to compare
@twerth twerth released this 14 Jul 19:55
· 67 commits to master since this release

Updating dependent gems bringing new features and bugfixes in each.

  • RMQ bumped to 1.6.1
  • CDQ bumped to 1.0.6
  • motion_print bumped to 1.2.0

Updates in documentation: http://docs.redpotion.org

New

  • Architecture Pointer detected rather than rescued #127
  • Generators updated to support Rails-like syntax #124
  • .blank? on objects
  • mp works in specs now!
  • app.data aliased to cdq
  • Added to stylesheet, shorthand for all the device types, like four_point_seven_inch
  • Turn off animations when Voiceover is on, to improve accessibility

The amazing DataTableScreen

Docs here.

class SomeModelScreen < PM::DataTableScreen
  title "Cool Implementation of CoreData"
  model MyModel, scope: :sort_name
end

New custom events, woot!.

rmq(my_view).on(:custom_event) do |sender_q, event|
  puts "woot!"
end

rmq(my_view).trigger(:custom_event)
# or select whatever you like
rmq.all.trigger(:custom_event)

Adds rmq.tags interface

  • rmq.all.tags => hash of tag data
  • rmq.all.tags(:stuff) => all data in :stuff tag for selected views

Bugfix

  • RedAlert gem name fixed #125
  • Require_relative over unshift #117
  • Remove CDQ gets the spec helper too #116
  • Fixed bug with root?
  • Fixed bug with .all after selecting a view. It would select all views, not all views inside that view.
  • Fixed :long_press event from firing twice
  • Changed .closest not to return a view controller. I have no idea why I did that :-/.
  • Fixed bug where .closest would cause an exception if you queried for a non-existent symbol

Install

gem update redpotion

# In your projects:
bundle update redpotion

# It's best to nuke your projects, to update the pods correctly
rake newclear