ProMotion-menu 1.0.0.beta2 → 1.0.0.beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 067b30374c578677ba88d3900dbb8c0b0def0b3c
4
- data.tar.gz: df2bb44f0b074c7f95b2a86be819f56216c3683d
3
+ metadata.gz: 1442ffa973994ba460ace3b25cb2b9da5c2e9ae7
4
+ data.tar.gz: b91278ac878968699e3326cd33eef32a6c5e04e2
5
5
  SHA512:
6
- metadata.gz: a768f4c560234d06e745900685093553c404386db5dac413bf861b6d2616e985c58034cf00b24935758660f6ad60925e198eb0320d1524c8e6ac7574bd012df5
7
- data.tar.gz: 5e6afba25e5c6ff96af3189fa1e0dc3b0e34d4cfab6077eefebdcfae38570e76307ed1eef9c8ee43992de46d19a0145bd1c76b9dd609844c1d3d00d1ed90a90a
6
+ metadata.gz: 7aa35449b1ecf5d6995de4bb9019234896a77b3efa1bfce78acac1bfbaccaec18bb66f8d1b1a3438e3472395fe65e55511fd182f5b6a03c110761f67c3b10c88
7
+ data.tar.gz: a09e8497578924a668d4f125b313d2560a2653bee97bae40b00b41c0a85fa7b84d62343ca03c24918ae06fdaee4d087e37765afe96658c643499365a786ded0c
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # ProMotion-menu [![Gem Version](https://badge.fury.io/rb/ProMotion-menu.png)](http://badge.fury.io/rb/ProMotion-menu) [![Build Status](https://travis-ci.org/clearsightstudio/ProMotion-menu.svg?branch=master)](https://travis-ci.org/clearsightstudio/ProMotion-menu) [![Code Climate](https://codeclimate.com/github/clearsightstudio/ProMotion-menu/badges/gpa.svg)](https://codeclimate.com/github/clearsightstudio/ProMotion-menu) [![Test Coverage](https://codeclimate.com/github/clearsightstudio/ProMotion-menu/badges/coverage.svg)](https://codeclimate.com/github/clearsightstudio/ProMotion-menu)
2
2
 
3
+ <p align="center" >
4
+ <img src="http://mutualmobile.github.io/MMDrawerController/ExampleImages/example1.png" width="266" height="500"/>
5
+ <img src="http://mutualmobile.github.io/MMDrawerController/ExampleImages/example2.png" width="266" height="500"/>
6
+ </p>
7
+
3
8
  ProMotion-menu provides a menu component for the popular RubyMotion gem [ProMotion](https://github.com/clearsightstudio/ProMotion). Utilizing [MMDrawerController](https://github.com/mutualmobile/MMDrawerController) it allows you to easily have a cool Facebook or Path style slide navigation menu, complete with gestures.
4
9
 
5
10
  The gem was originally named `pro_motion_slide_menu` and authored by [Matt Brewer](https://github.com/macfanatic).
@@ -56,8 +61,9 @@ class MenuDrawer < PM::Menu::Drawer
56
61
  def setup
57
62
  self.center = MyGreatAppScreen.new(nav_bar: true)
58
63
  self.left = NavigationScreen
59
- self.to_show = [:tap_nav_bar, :pan_nav_bar]
64
+ self.to_show = [:pan_bezel, :pan_nav_bar]
60
65
  self.max_left_width = 250
66
+ self.shadow = false
61
67
  end
62
68
 
63
69
  end
@@ -15,6 +15,7 @@ module ProMotion
15
15
  options[:to_show] ||= :pan_bezel
16
16
  options[:to_hide] ||= [:pan_center, :tap_center]
17
17
  options[:center] ||= center if center
18
+ shadow = options[:shadow] unless options[:shadow].nil?
18
19
  set_attributes self, options
19
20
  self.send(:setup) if self.respond_to?(:setup)
20
21
  end
@@ -67,6 +68,10 @@ module ProMotion
67
68
  self.center_controller if [:content, :center].include?(side)
68
69
  end
69
70
 
71
+ def shadow=(show_shadow)
72
+ self.setShowsShadow(show_shadow)
73
+ end
74
+
70
75
  protected
71
76
 
72
77
  def prepare_controller_for_pm(controller)
@@ -1,7 +1,7 @@
1
1
  module ProMotion
2
2
  module Menu
3
3
 
4
- VERSION = '1.0.0.beta2'
4
+ VERSION = '1.0.0.beta3'
5
5
 
6
6
  end
7
7
  end
@@ -49,4 +49,12 @@ describe ProMotion::Menu::Drawer do
49
49
  menu.center_controller.should == @content
50
50
  end
51
51
 
52
+ it "allows you to set whether or not the drawer has a shadow" do
53
+ menu = ProMotion::Menu::Drawer.new @content, left: @left, right: @right, shadow: false
54
+ menu.showsShadow.should == false
55
+
56
+ menu.shadow = true
57
+ menu.showsShadow.should == true
58
+ end
59
+
52
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ProMotion-menu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta2
4
+ version: 1.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brewer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-24 00:00:00.000000000 Z
13
+ date: 2014-11-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: motion-cocoapods
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: 1.3.1
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.2.2
115
+ rubygems_version: 2.4.2
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Provides a facebook/Path style slide menu for ProMotion RubyMotion apps.