motion-kit 0.10.2 → 0.10.3

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: 6af1a2f858ee4083161bdf3cdf15c054512fc7e6
4
- data.tar.gz: 7ee18c26f584a30bd073dd97fc32c7cdbec259ab
3
+ metadata.gz: b421fd69490b2630780a1b9bab2ffd51046ac3b8
4
+ data.tar.gz: ba3cc35a64cd442eb5f81b16690da74c04c85171
5
5
  SHA512:
6
- metadata.gz: 2351cc0fd8528dc20c1d59d18a03a5f4cf4bb2315153e846848d37eeb83c21e4035d52f18e28993bfba8d82f1fe20c39923439f6215565eaa6c24e9b3ff92961
7
- data.tar.gz: 498781c6dadc3822af2590fc4ef06dc207b27998cb3163df76ea047d68939fed81e7578469e3212fdfaa4b60bbf1c9f728fa292ffad69afe95d9e37e6aa54a39
6
+ metadata.gz: be5d06c82a29b217674f8f2243fae01d04c27feb5372ebe6ae6302c1ce31c3e0863b7416d6ed0a0825816310c52262e6a1c6ca1cf7b1103d400f87b3a92ee6f4
7
+ data.tar.gz: 00a89e9b73436c7432e98d04dd60903c4dc06c7dddc702b6d3dbdccd2c065cf0c797b855dbe4a787495ed9f5b7e5cfb0d036ad29bba7292ffa9c15db278cfc86
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  *The RubyMotion layout and styling gem.*
4
4
 
5
- 1. Crossplatform compatibility: iOS, OSX
5
+ 1. Crossplatform compatibility: iOS, OSX, and planned support for Android
6
6
  2. Simple, easy to learn DSL
7
7
  3. Crossframework compatibility:
8
8
  - [UIKit][readmore-uikit]
@@ -31,7 +31,7 @@
31
31
  [readmore-coreanimation]: https://github.com/rubymotion/motion-kit/blob/master/READMORE.md#coreanimation
32
32
  [readmore-frames]: https://github.com/rubymotion/motion-kit/blob/master/READMORE.md#frames
33
33
  [readmore-autolayout]: https://github.com/rubymotion/motion-kit/blob/master/READMORE.md#autolayout
34
- [readmore-nsmenu]: https://github.com/rubymotion/motion-kit/blob/master/READMORE.md#nsmenu
34
+ [readmore-nsmenu]: https://github.com/rubymotion/motion-kit/blob/master/READMORE.md#nsmenu-os-x
35
35
 
36
36
 
37
37
  ## What happened to Teacup??
@@ -181,8 +181,7 @@ class LoginLayout < MotionKit::Layout
181
181
  add UIView, :inputs do
182
182
  frame x: 0, y: 0, width: '100%', height: '100% - 50'
183
183
 
184
- # setting autoresizing_mask should handle rotation events; this overrides
185
- # any automatic mask settings that occurred in 'frame'
184
+ # setting autoresizing_mask should handle rotation events
186
185
  autoresizing_mask :pin_to_top, :flexible_height, :flexible_width
187
186
 
188
187
  # we'll use 'sizeToFit' to calculate the height
@@ -1,7 +1,6 @@
1
1
  # @requires MotionKit::UIViewLayout
2
2
  module MotionKit
3
3
  class UIViewLayout
4
- override_start
5
4
 
6
5
  def x(value)
7
6
  f = target.frame
@@ -317,6 +316,5 @@ module MotionKit
317
316
  _calculate_frame(f, from: from_view, relative_to: { x: :reset, y: :reset })
318
317
  end
319
318
 
320
- override_stop
321
319
  end
322
320
  end
@@ -1,7 +1,6 @@
1
1
  # @requires MotionKit::NSViewLayout
2
2
  module MotionKit
3
3
  class NSViewLayout
4
- override_start
5
4
 
6
5
  def _fix_frame_value(value)
7
6
  if value.is_a?(Hash) && value[:relative]
@@ -370,6 +369,5 @@ module MotionKit
370
369
  _calculate_frame(f, from: from_view, relative_to: { x: :reset, y: :reset })
371
370
  end
372
371
 
373
- override_stop
374
372
  end
375
373
  end
@@ -2,7 +2,6 @@
2
2
  module MotionKit
3
3
  class NSWindowLayout
4
4
 
5
- overrides :frame
6
5
  def frame(value, autosave_name=nil)
7
6
  retval = target.setFrame(value, display: true)
8
7
  if autosave_name
@@ -262,22 +262,6 @@ module MotionKit
262
262
 
263
263
  class << self
264
264
 
265
- def override_start
266
- @allow_all_override = true
267
- end
268
-
269
- def override_stop
270
- @allow_all_override = false
271
- end
272
-
273
- def overrides(method_name)
274
- overridden_methods << method_name
275
- end
276
-
277
- def overridden_methods
278
- @overridden_methods ||= []
279
- end
280
-
281
265
  # Prevents infinite loops when methods that are defined on Object/Kernel
282
266
  # are not properly delegated to the target.
283
267
  def delegate_method_fix(method_name)
@@ -298,24 +282,11 @@ module MotionKit
298
282
  end
299
283
  end
300
284
 
301
- # this last little "catch-all" method is helpful to warn against methods
302
- # that are defined already. Since magic methods are so important, this
303
- # warning can come in handy.
304
- def method_added(method_name)
305
- return if @allow_all_override
306
-
307
- if self < BaseLayout && BaseLayout.method_defined?(method_name)
308
- if overridden_methods.include?(method_name)
309
- overridden_methods.delete(method_name)
310
- else
311
- NSLog("Warning! The method #{self.name}##{method_name} has already been defined on MotionKit::BaseLayout or one of its ancestors.")
312
- end
313
- end
314
- end
315
-
316
285
  end
317
286
 
318
287
 
319
288
  end
320
289
 
290
+
291
+
321
292
  end
@@ -316,7 +316,6 @@ module MotionKit
316
316
  @view
317
317
  end
318
318
 
319
- overrides :run_deferred
320
319
  def run_deferred(top_level_context)
321
320
  view_was = @view
322
321
  @view = top_level_context
@@ -1,3 +1,3 @@
1
1
  module MotionKit
2
- VERSION = '0.10.2'
2
+ VERSION = '0.10.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin T.A. Gray
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-02 00:00:00.000000000 Z
12
+ date: 2014-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dbt