motion-kit 0.10.6 → 0.10.7

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: 20015e2ea39d1ee5ade966a4db342b0605fcfb6e
4
- data.tar.gz: 74a853c1ddf2ecb4627d2ef159411f6b76c9c324
3
+ metadata.gz: c906092e2a2431bd9d2f116bce5248e790232dfb
4
+ data.tar.gz: 012fb50f2411ee1cb378ceb3025db7efc85a4293
5
5
  SHA512:
6
- metadata.gz: a2c4fb5357b601dafe6455b4f0f344b90b9913a44a2a984085f139903f187992f3d4b855a26717b0f4fb4beaaee83474f636318ad48e4f060cfc2249cedd0094
7
- data.tar.gz: 3e7e1c372e731a783919e6567ebce275b4c74e149a463dc78ec1175d7839076d0ccd9660384721ed9a0298a109568ff0470afbeb43925c0a08cbc9ce473c5c9a
6
+ metadata.gz: 2eeb2ab71597b890e4378cf69cdc5c98972ff7e673f024d8124913557f1c90dbc0ee61fb9391c391b066b7752908a47fde716abb4a1eea176c5c220afca357e7
7
+ data.tar.gz: 3fd417f6eaba8a5a2f1c5fa27b60d0dbcd21e3159da3f8304b29f9eee18d9f627979efa7420c83006ab2a70578713531e816e7907c9ba2b319058625657b7b17
data/README.md CHANGED
@@ -308,6 +308,8 @@ end
308
308
  ```
309
309
 
310
310
  This is especially useful with collection views, table views, and table cells.
311
+ Keep in mind that MotionKit will **not** retain a strong reference to your provided
312
+ root view, so retain one yourself to prevent it from being deallocated.
311
313
 
312
314
  ### How do styles get applied?
313
315
 
@@ -24,7 +24,10 @@ module MotionKit
24
24
  @layout_delegate = nil
25
25
  @layout_state = :initial
26
26
  # You can set a root view by using .new(root: some_view)
27
- @preset_root = args[:root]
27
+ # Explicit roots will not have a strong reference from
28
+ # MotionKit, so retain one yourself from your controller
29
+ # or other view to prevent deallocation.
30
+ @preset_root = WeakRef.new(args[:root])
28
31
  end
29
32
 
30
33
  def set_layout(layout)
@@ -1,3 +1,3 @@
1
1
  module MotionKit
2
- VERSION = '0.10.6'
2
+ VERSION = '0.10.7'
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.6
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin T.A. Gray