RedAlert 1.4 → 1.5

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: 53c12366f0f82ed22925222139c6ec123b5169dc
4
- data.tar.gz: 00c21e245ba06215cbc9109fd018451151e19b32
3
+ metadata.gz: 4333379e166fd96f05e16b162f4b105ed7084be1
4
+ data.tar.gz: 1c8f71bff3d4ea336fa5446c598f63c4e7b47052
5
5
  SHA512:
6
- metadata.gz: 8028874c77283aa4cbecc8c9a994e668f6746926cd890d7e326d806b196ee1d99afb1a1771deb1f31bb53934debfb68e93b52928b05f4a8a8d7672fd866fc723
7
- data.tar.gz: 6377249719c7dfcf656f8508b31c69a3c63fc7f710060b79cca17b20730c227c3b71ac0c940638a2641f002e0f689411360bf37bdf74b50809b17f1a1d65d81d
6
+ metadata.gz: 433175018b4b2397711086b1524f95e6d33c76cd9bbb15e297214952b87d908cc1da9ddcf537e1c5da5062e867a08bfbd29201fa28a4cc86fddba216ecca097d
7
+ data.tar.gz: bd1c52c845661ae3e47378ded98e306344ace853bd23ccca1835aab21810d62e853d9222d78264b36f76003d0423917fc611676a095f704e75ff48ae3ac6eed1
data/README.md CHANGED
@@ -103,7 +103,7 @@ You can even use the `make_button` helper to create custom buttons to add:
103
103
  If you want to present your alert in :sheet style and you are on iPad, you have to provide the `:source` for the popover (either a UIView or a UIBarButtonItem)
104
104
  ```ruby
105
105
  rmq.append(UIButton, :my_button).on(:tap) do |sender|
106
- rmq.app.alert(title: "Actions!", message: "Alert from a Popover.", actions: [:ok, :cancel], style:sheet, source: sender)
106
+ rmq.app.alert(title: "Actions!", message: "Alert from a Popover.", actions: [:ok, :cancel], style: :sheet, source: sender)
107
107
  end
108
108
  ```
109
109
 
@@ -79,7 +79,8 @@ module RubyMotionQuery
79
79
  end
80
80
 
81
81
  def show
82
- rmq.view_controller.presentViewController(@alert_controller, animated: @opts[:animated], completion: nil)
82
+ view_controller = rmq.view_controller.childModalViewController || rmq.view_controller
83
+ view_controller.presentViewController(@alert_controller, animated: @opts[:animated], completion: nil)
83
84
  end
84
85
 
85
86
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RedAlert
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.4'
4
+ version: '1.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gant Laborde
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-23 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_motion_query
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.4.5
82
+ rubygems_version: 2.4.5.1
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: RMQ Plugin adds efficient and dynamic alerts/sheets for RubyMotion Apps on