glimmer-dsl-swt 4.20.13.15 → 4.20.13.16

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
  SHA256:
3
- metadata.gz: b6f16ea275e3ce37889ed445d6cc3ab42bbcb7068eb1e57f51017d1625ac2582
4
- data.tar.gz: d5dc4c387caa917f1c20db29cbf27c06148736b52bc7bd4cfb63d75854e866f6
3
+ metadata.gz: dcbde18522dded899e463ea9f5e1d94325707b9403392717e624b7475e6e6725
4
+ data.tar.gz: 53c6de1396110f443afca9378642c66b8813e7fd329ba3f860951ccc4ec11793
5
5
  SHA512:
6
- metadata.gz: 7e9ab4f42471a424a335d5f39a395639601b88c4694eeb016f4d5b3b2449114eea07e3395058892b22b1c4e5b9b11c1e1b3e24a0fc7b687393cfb8218c548142
7
- data.tar.gz: 472f326d596fbcb2e551549bb6bb6411839acb86437ad789e4ecc29841facbd2a27c32a696ac4c2a2c68d8b754517a35fff7570a05441c18db5033f1774c671b
6
+ metadata.gz: 186a4ebb62c01d54c91470623ea689e52b984e5fb01137bc78cc3113a2599fbfe20113b40e1afaa1adf1648af08e6df2f3bada47bb8afd2ab73730a1eb218a2b
7
+ data.tar.gz: e837367673f9b8964d97e34e5a1aa4162618b312aadf341808e3a50653dadaf1f387b4d7845caf584519c24a1d7c6b3cc9aa59c7f0f4be574875f3ac579be98e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ### 4.20.13.16
4
+
5
+ - Fix issue with setting app name (via `Display.app_name=`) when app is not packaged (always gets set to Glimmer)
6
+ - Fix Hello, Custom Shell! sample
7
+
3
8
  ### 4.20.13.15
4
9
 
5
10
  - Battleship elaborate sample
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 SWT 4.20.13.15
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 SWT 4.20.13.16
2
2
  ## JRuby Desktop Development GUI Framework
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
4
4
  [![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-swt.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-swt)
@@ -15,7 +15,7 @@
15
15
  [<img src="https://covers.oreillystatic.com/images/9780596519650/lrg.jpg" width=105 /><br />
16
16
  Featured in JRuby Cookbook](http://shop.oreilly.com/product/9780596519650.do) and [Chalmers/Gothenburg University Software Engineering Master's Lecture Material](http://www.cse.chalmers.se/~bergert/slides/guest_lecture_DSLs.pdf)
17
17
 
18
- [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.20.13.15 includes [SWT 4.20](https://download.eclipse.org/eclipse/downloads/drops4/R-4.20-202106111600/), which was released on June 11, 2021. Gem version numbers are in sync with the SWT library versions. The first two digits represent the SWT version number. The last two digits represent the minor and patch versions of Glimmer DSL for SWT. Note that SWT now supports AARCH64 on Mac and Linux, but it is not fully tested in Glimmer DSL for SWT yet, so deem its support experimental for the time being without guarantees for functionality until declared otherwise (report any issues you may encounter).
18
+ [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.20.13.16 includes [SWT 4.20](https://download.eclipse.org/eclipse/downloads/drops4/R-4.20-202106111600/), which was released on June 11, 2021. Gem version numbers are in sync with the SWT library versions. The first two digits represent the SWT version number. The last two digits represent the minor and patch versions of Glimmer DSL for SWT. Note that SWT now supports AARCH64 on Mac and Linux, but it is not fully tested in Glimmer DSL for SWT yet, so deem its support experimental for the time being without guarantees for functionality until declared otherwise (please report any issues you may encounter).
19
19
 
20
20
  **Starting in version 4.20.0.0, [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) comes with the new [***Shine***](/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#shine) syntax** for highly intuitive and visually expressive View/Model Attribute Mapping, relying on `<=>` for bidirectional (two-way) data-binding and `<=` for unidirectional (one-way) data-binding, providing an alternative to the `bind` keyword (keep in mind that it is still a beta, so default back to `bind` whenever needed).
21
21
 
@@ -199,11 +199,6 @@ Glimmer app:
199
199
 
200
200
  [![Math Bowling App Screenshot](https://raw.githubusercontent.com/AndyObtiva/MathBowling/master/Math-Bowling-Screenshot.png)](https://github.com/AndyObtiva/MathBowling)
201
201
 
202
- **Note:** I offer Glimmer DSL for SWT as a free and open-source [Ruby Gem](https://rubygems.org/gems/glimmer-dsl-swt) that represents my interests in Ruby Programming, Desktop GUI application development with SWT, Object Oriented Design, Design Patterns, and Software Architecture.
203
- Additionally, I am sharing my professional experience and expertise in Eclipse SWT given that I am an [EclipseCon](http://andymaleh.blogspot.com/2007/03/eclipsecon-2007-day-3.html)/[EclipseWorld](http://andymaleh.blogspot.com/2008/11/eclipseworld-2008-highlights.html) presenter and have built professional applications in SWT/JFace/RCP for Obtiva and the Pampered Chef in the past. This is also done in the hopes that it would indirectly bring me work in a field I am extremely passionate about.
204
- That said, please keep in mind that I myself am learning topics in Software Engineering too everyday, including newer editions of SWT and JRuby, which seem to pop up every quarter.
205
- If you see anything that needs to be improved, please do not hesitate to contact me on [Gitter](https://gitter.im/AndyObtiva/glimmer) or submit [Issues](https://github.com/AndyObtiva/glimmer-dsl-swt/issues)/[Pull-Requests](https://github.com/AndyObtiva/glimmer-dsl-swt/pulls).
206
-
207
202
  ## Table of contents
208
203
 
209
204
  - [Glimmer (JRuby Desktop Development GUI Framework)](#jruby-desktop-development-gui-framework)
@@ -326,7 +321,7 @@ jgem install glimmer-dsl-swt
326
321
 
327
322
  Or this command if you want a specific version:
328
323
  ```
329
- jgem install glimmer-dsl-swt -v 4.20.13.15
324
+ jgem install glimmer-dsl-swt -v 4.20.13.16
330
325
  ```
331
326
 
332
327
  `jgem` is JRuby's version of `gem` command.
@@ -354,7 +349,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
354
349
 
355
350
  Add the following to `Gemfile`:
356
351
  ```
357
- gem 'glimmer-dsl-swt', '~> 4.20.13.15'
352
+ gem 'glimmer-dsl-swt', '~> 4.20.13.16'
358
353
  ```
359
354
 
360
355
  And, then run:
@@ -375,7 +370,7 @@ glimmer
375
370
  ```
376
371
 
377
372
  ```
378
- Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.13.15
373
+ Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.13.16
379
374
 
380
375
  Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
381
376
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.20.13.15
1
+ 4.20.13.16
Binary file
@@ -200,12 +200,14 @@ module Glimmer
200
200
  elsif observation_request.start_with?('on_')
201
201
  event_name = observation_request.sub(/^on_/, '')
202
202
  if OBSERVED_MENU_ITEMS.include?(event_name) && OS.mac?
203
- system_menu = swt_display.getSystemMenu
204
- menu_item = system_menu.getItems.find {|menu_item| menu_item.getID == SWTProxy["ID_#{event_name.upcase}"]}
205
- listener = ConcreteListener.new(&block)
206
- display_mac_event_registration = menu_item.addListener(SWTProxy[:Selection], listener)
207
- Glimmer::UI::CustomWidget.current_custom_widgets.last&.observer_registrations&.push(display_mac_event_registration)
208
- display_mac_event_registration
203
+ auto_exec do
204
+ system_menu = swt_display.getSystemMenu
205
+ menu_item = system_menu.getItems.find {|menu_item| menu_item.getID == SWTProxy["ID_#{event_name.upcase}"]}
206
+ listener = ConcreteListener.new(&block)
207
+ display_mac_event_registration = menu_item.addListener(SWTProxy[:Selection], listener)
208
+ Glimmer::UI::CustomWidget.current_custom_widgets.last&.observer_registrations&.push(display_mac_event_registration)
209
+ display_mac_event_registration
210
+ end
209
211
  end
210
212
  end
211
213
  end
@@ -30,8 +30,8 @@ module Glimmer
30
30
 
31
31
  class << self
32
32
  def launch(*args, &content)
33
+ launched_custom_shell = send(keyword, *args, &content)
33
34
  auto_exec do
34
- launched_custom_shell = send(keyword, *args, &content)
35
35
  launched_custom_shell.swt_widget.set_data('launched', true)
36
36
  launched_custom_shell.open
37
37
  end
@@ -176,16 +176,16 @@ module Glimmer
176
176
  options ||= {}
177
177
  @options = self.class.options.merge(options)
178
178
  @content = Util::ProcTracker.new(content) if content
179
- execute_hook('before_body')
179
+ auto_exec { execute_hook('before_body') }
180
180
  body_block = self.class.instance_variable_get("@body_block")
181
181
  raise Glimmer::Error, 'Invalid custom widget for having no body! Please define body block!' if body_block.nil?
182
- @body_root = instance_exec(&body_block)
182
+ @body_root = auto_exec { instance_exec(&body_block) }
183
183
  raise Glimmer::Error, 'Invalid custom widget for having an empty body! Please fill body block!' if @body_root.nil?
184
184
  @swt_widget = @body_root.swt_widget
185
185
  auto_exec do
186
186
  @swt_widget.set_data('custom_widget', self)
187
187
  end
188
- execute_hook('after_body')
188
+ auto_exec { execute_hook('after_body') }
189
189
  auto_exec do
190
190
  @dispose_listener_registration = @body_root.on_widget_disposed do
191
191
  observer_registrations.compact.each(&:deregister)
@@ -88,6 +88,8 @@ class EmailShell
88
88
  end
89
89
 
90
90
  class HelloCustomShell
91
+ include Glimmer
92
+
91
93
  Email = Struct.new(:date, :subject, :from, :message, keyword_init: true)
92
94
  EmailSystem = Struct.new(:emails, keyword_init: true)
93
95
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-swt
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.20.13.15
4
+ version: 4.20.13.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-06 00:00:00.000000000 Z
11
+ date: 2021-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement