ruby_motion_query 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4af6aa73cedcfee0e9779696b6aba1b487875e12
4
- data.tar.gz: 046515ebe027e0d3161d62eb5f45d84b3cd8aa66
3
+ metadata.gz: 1b38cbb8732d87fe11fa1177e562b9a289deecd2
4
+ data.tar.gz: cecadfac15e816785d48ce4cbb23d9e930aec07a
5
5
  SHA512:
6
- metadata.gz: 73c0dbb90e91d58dea1bea33e9f1020e56fac0fd8bab8849057f768879c38e409e39b42bbce6cefe4db3a39125b77a2257534b392a3c8a55645f22ad28215bde
7
- data.tar.gz: 82af998393074a7f53cb872ba7252a639985cccdaf5441783bf20271acf1b5438465416ef9dbfdb29bf88a93bc3d66d18b22c129a5f1a461a83ca1c8424a2884
6
+ metadata.gz: 7cc1c6ebbd69132ddabb6a1ace110abca6c2e26911ee6e132f4478a117765d9316eea38cfe68d4f268a80947a65216929065a5a757f7513ccf5dab4430752cce
7
+ data.tar.gz: a1d71f312572308d267a4d70823f1a0ae6304015e7e199d74706ecb64c5d0941ab604f3adad2c2c82b7958868a24db826db2db420f6dd12f6e60e0459c7c3cad
data/motion/ext.rb CHANGED
@@ -56,7 +56,7 @@ end
56
56
 
57
57
  if RUBYMOTION_ENV == "development"
58
58
  module Kernel
59
- def rmq_live_stylesheets(interval = 0.5, debug=false)
59
+ def rmq_live_stylesheets(interval = 1.0, debug=false)
60
60
  @live_reload_debug = debug
61
61
  if interval == false
62
62
  @live_reload_timer.invalidate if @live_reload_timer
@@ -128,9 +128,9 @@ module RubyMotionQuery
128
128
  current_view_controller(root_view_controller.topViewController)
129
129
  elsif root_view_controller.respond_to?(:frontViewController)
130
130
  current_view_controller(root_view_controller.frontViewController)
131
- elsif root_view_controller.respond_to?(:center)
131
+ elsif root_view_controller.respond_to?(:center) && (center = root_view_controller.center) && center.is_a?(UIViewController)
132
132
  current_view_controller(root_view_controller.center)
133
- elsif root_view_controller.childViewControllers.count > 0
133
+ elsif root_view_controller.respond_to?(:childViewControllers) && root_view_controller.childViewControllers.count > 0
134
134
  current_view_controller(root_view_controller.childViewControllers.first)
135
135
  else
136
136
  root_view_controller
@@ -1,5 +1,5 @@
1
1
  module RubyMotionQuery
2
- VERSION = "1.3.3"
2
+ VERSION = "1.3.4"
3
3
 
4
4
  class RMQ
5
5
  def version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_motion_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Werth