prime_reside_menu 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjgzOTFlZmNkYmUyMWJhM2YwYjRjOGRkZjNmNDY5MTVlMzFhNjEzNA==
4
+ M2I0MjBkNTc2ZWQzYjA3MzU2MmY3Y2M0N2U4NDU2OTU5NzRhZmZhMw==
5
5
  data.tar.gz: !binary |-
6
- MGQxYzhlMGE4NjYxMjhmZTMyZGUwMDk0NzI1ZWVjZmVkMWQ1ZjQ2Yg==
6
+ NGFiZDA1MmNhZTk0NDY0NWUzZTljNjcwYzc1ZTk5NzIzOTcwMTIxZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MGNmMGMzYTQ4Y2UwMjdlZDQ2MDQwMGMyMDkzMzM1YTkxNjc0OTkzNmVjYWJj
10
- MTkwYjEyZDljNDBjNjUzYzdjZmI2Njg1MWUwZjQ2N2M3OWVjYzk2MWY1NTg3
11
- OGRhY2VjMThiYjMxM2Q3YzczMTliOTg4YzQ0NGQxMDAzYTkwOTY=
9
+ NmU2NTMzYWVkMDIxMjZkOTA1ZDI5NDI1MzhkMWI4ODUzYzU2YWYyZmM4NGY0
10
+ NWI3MjlkODFlMGI0MTM3MWM5OWFiZmJhOTE5ZmMxNmE0MGM5NGU4M2RhOGYx
11
+ OTEzZWY3ZTU5NTI3NTFjZDllY2Q4NDg4YjY3M2Q5MDAwYjQyOGI=
12
12
  data.tar.gz: !binary |-
13
- M2Q2YTM0YWI4ODQ2YTRjOTBkMjBiYTcwYzM4ZmViM2Q2OTQ1MzdiNDAzZDJm
14
- MzFiOTY4ODZkNjliNDc4MjE3MzY3ZDIxNWVlOWNlZDZiMzljYmViYWZhNTEz
15
- Y2M2ZWI5MjdlYTFkZmNiY2JjNjhiMGZhOGU0ZGViMWFjMzc3Yzc=
13
+ NzU1NjU0NTFmZmNiMzViNTJhMWRhMjc1ZjcxOWZmZmE5OWM4ZTZlNDQyOGFi
14
+ OWI0YmU4ZDIyMWM2YjgzZGIxN2FhMGQ0NDljOGYwMzJhMWE0ZWQ3MTcyYmUx
15
+ N2M4NDMwYjkzNTBmOTM1NGU1NTkzMjg2ZmRmMmU5M2RjOTI5M2I=
@@ -41,15 +41,16 @@ module PrimeResideMenu
41
41
  end
42
42
 
43
43
  def menu_controller=(c)
44
- self.setMenuViewController prepare_controller(c)
44
+ @menu_controller_ref = prepare_controller(c)
45
+ self.setMenuViewController(@menu_controller_ref)
45
46
  end
46
47
 
47
48
  def content_controller=(c)
48
- controller = prepare_controller(c)
49
- if should_reinit_content?(controller)
50
- self.setContentViewController controller
49
+ @content_controller_ref = prepare_controller(c)
50
+ if should_reinit_content?(@content_controller_ref)
51
+ self.setContentViewController(@content_controller_ref)
51
52
  else
52
- content_controller.viewControllers = [controller]
53
+ content_controller.viewControllers = [@content_controller_ref]
53
54
  end
54
55
  hide_sidebar
55
56
  end
@@ -65,7 +66,7 @@ module PrimeResideMenu
65
66
  private
66
67
 
67
68
  def should_reinit_content?(new_controller)
68
- content_controller.nil? ||
69
+ content_controller.blank? ||
69
70
  content_controller.is_a?(MotionPrime::TabBarController) ||
70
71
  new_controller.is_a?(MotionPrime::TabBarController)
71
72
  end
@@ -80,7 +81,7 @@ module PrimeResideMenu
80
81
  controller.navigation_controller = content_controller if controller.respond_to?(:navigation_controller)
81
82
  controller.send(:on_screen_load) if controller.respond_to?(:on_screen_load)
82
83
  end
83
- controller
84
+ controller.strong_ref
84
85
  end
85
86
  end
86
87
  end
@@ -1,3 +1,3 @@
1
1
  module PrimeResideMenu
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prime_reside_menu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Haziev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-08 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods