glimmer-dsl-libui 0.5.17 → 0.5.18

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
  SHA256:
3
- metadata.gz: b837f495b6ee88ac59beb20c32f1bd3c3fe3b777a4b195d64c2958afb46cf039
4
- data.tar.gz: 515861c59a0136a1425f7eb24a9613686595bb2e09657ec096a2a6ec3552b9cc
3
+ metadata.gz: a3fef2bd47b932369023cff0088adf0776892ce7a2ed0589cd20b89726320809
4
+ data.tar.gz: ffc0cf261ffce1b52f92b3e0aff18691f645115c2ba36bea420f51c5e2d9c873
5
5
  SHA512:
6
- metadata.gz: 5e84bd0c82fdc0c8aa5876a628e1f0ecf327e08a692ff531764f1a2f9311f24ec89998a9a4959ba65f93a0aad8e645c24bb3a14348d96282e64be2ccdeaea983
7
- data.tar.gz: 3870d2d46189f0b81c6490d169f7fef63e782d408a7d20038b43fd1ebbf90ebac34b615c4b96514f1cf1294dae6f4b56933fe0c55430c5e9b1fd542654025c4d
6
+ metadata.gz: cc07cb97b4fe12778abfc6ccb104bb5b2a9990d5b8f4cfff31aecae72a069efb5151c3a47be234fdf675e3a8cdd046eb89e454c22d97fb40eb8a4d1df30b2774
7
+ data.tar.gz: 7b4eb6ed048b18ee79e1aa197a90c168f69ee9c316df50244ab41a343266461c2fb3be233015387182cf77adb6386c6973fd649f9140a84ad83a8ce1a60d5e2f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.5.18
4
+
5
+ - `CustomWindow.launch(...)` returns the launched application/custom-window (e.g. `PaginatedRefinedTable.launch` returns the `PaginatedRefinedTable` instance that was automatically constructed)
6
+ - `CustomWindow.launched_application`/`CustomWindow.launched_custom_window` returns the launched application of a previous `.launch` call. This can be useful for rescuing errors and performing cleanup on the view object attributes after `.launch` returned.
7
+
3
8
  ## 0.5.17
4
9
 
5
10
  - Ensure disabling pagination buttons in `refined_table` if page is at beginning or end
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for LibUI 0.5.17
1
+ # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for LibUI 0.5.18
2
2
  ## Prerequisite-Free Ruby Desktop Development GUI Library
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-libui.svg)](http://badge.fury.io/rb/glimmer-dsl-libui)
4
4
  [![Join the chat at https://gitter.im/AndyObtiva/glimmer](https://badges.gitter.im/AndyObtiva/glimmer.svg)](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -584,7 +584,7 @@ gem install glimmer-dsl-libui
584
584
  Or install via Bundler `Gemfile`:
585
585
 
586
586
  ```ruby
587
- gem 'glimmer-dsl-libui', '~> 0.5.17'
587
+ gem 'glimmer-dsl-libui', '~> 0.5.18'
588
588
  ```
589
589
 
590
590
  Test that installation worked by running the [Meta-Example](#examples):
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.17
1
+ 0.5.18
Binary file
@@ -31,8 +31,17 @@ module Glimmer
31
31
 
32
32
  class << self
33
33
  def launch(*args, &content)
34
- launched_custom_shell = send(keyword, *args, &content)
35
- launched_custom_shell.show
34
+ @@launched_custom_window = send(keyword, *args, &content)
35
+ @@launched_custom_window.show
36
+ @@launched_custom_window
37
+ end
38
+
39
+ def launched_custom_window
40
+ @@launched_custom_window if defined?(@@launched_custom_window)
41
+ end
42
+
43
+ def launched_application
44
+ launched_custom_window
36
45
  end
37
46
  end
38
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-libui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.17
4
+ version: 0.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh