glimmer-dsl-swt 4.20.15.0 → 4.20.15.1

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: 9add0488847621e3bd25de0e500dab2ec7f8deb149526c1687995d4daeeaae27
4
- data.tar.gz: 255b7b6013826605faae2f00ee40aef9d814b7de415bf465f9a73cbe2113abc7
3
+ metadata.gz: 0b757f6efefa170ed1a47662e65405e94a93d24e1125e95849dfd21efc7c2cbe
4
+ data.tar.gz: 7e952d88c913cc2b3add234da53b1a5d1cd8385fe501f3b109a48ad4ad56fc49
5
5
  SHA512:
6
- metadata.gz: 35db3de953fc01936d8d71adec7e827bf759e5824e1f3b51eab4d074c9b0d642eafd028a168899aba826f4058fd1ed8aa19a406cb3834caaac244ff80fa6cc14
7
- data.tar.gz: d72dd88f5914dfa8f2c698ab0f0c594c125ceb5c86c465a25d19b60c48740e1294e69510e99030f33f2ce7992acb1d52e950f05105aaff511d5d7f4eb9095686
6
+ metadata.gz: ea8828e2082a4714a36375f82a71d0c9601c74c4e169c912ee1f0ba7715f6d5118f147b68f7d3ed6fc8282cb8e20fcd0b092a7272b153232154f1893670069b8
7
+ data.tar.gz: 749cb706de665daff507e00215663aa8d0d6e2a78efadbffb1de909092c85d3f5b589e6ceafdb0a9f9247e3c22aebfbef6a47f164f1df91d267d8e4e915ddcdc
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ### 4.20.15.1
4
+
5
+ - Glimmer Clock elaborate sample
6
+
3
7
  ### 4.20.15.0
4
8
 
9
+ - Hello, Print Dialog!
10
+ - Hello, Print!
11
+ - `widget#print` method that automates work in Hello, Print Dialog! and is used in Hello, Print!
12
+
5
13
  ### 4.20.14.1
6
14
 
7
15
  - Upgrade to Glimmer 2.1.1
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.15.0
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.15.1
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.15.0 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).
18
+ [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.20.15.1 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
 
@@ -321,7 +321,7 @@ jgem install glimmer-dsl-swt
321
321
 
322
322
  Or this command if you want a specific version:
323
323
  ```
324
- jgem install glimmer-dsl-swt -v 4.20.15.0
324
+ jgem install glimmer-dsl-swt -v 4.20.15.1
325
325
  ```
326
326
 
327
327
  `jgem` is JRuby's version of `gem` command.
@@ -349,7 +349,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
349
349
 
350
350
  Add the following to `Gemfile`:
351
351
  ```
352
- gem 'glimmer-dsl-swt', '~> 4.20.15.0'
352
+ gem 'glimmer-dsl-swt', '~> 4.20.15.1'
353
353
  ```
354
354
 
355
355
  And, then run:
@@ -370,7 +370,7 @@ glimmer
370
370
  ```
371
371
 
372
372
  ```
373
- Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.15.0
373
+ Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.15.1
374
374
 
375
375
  Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
376
376
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.20.15.0
1
+ 4.20.15.1
@@ -67,6 +67,7 @@
67
67
  - [Tic Tac Toe](#tic-tac-toe)
68
68
  - [Connect 4](#connect-4)
69
69
  - [Contact Manager](#contact-manager)
70
+ - [Clock](#clock)
70
71
  - [Game of Life](#game-of-life)
71
72
  - [Glimmer Tetris](#glimmer-tetris)
72
73
  - [Klondike Solitaire](#klondike-solitaire)
@@ -1183,6 +1184,16 @@ Contact Manager - Edit Done
1183
1184
 
1184
1185
  ![Contact Manager](/images/glimmer-contact-manager-edit-done.png)
1185
1186
 
1187
+ #### Clock
1188
+
1189
+ This sample demonstrates how to build an animation based application.
1190
+
1191
+ Code:
1192
+
1193
+ [samples/elaborate/clock.rb](/samples/elaborate/clock.rb)
1194
+
1195
+ ![Clock](/images/glimmer-clock.png)
1196
+
1186
1197
  #### Game of Life
1187
1198
 
1188
1199
  This sample demonstrates how to build an interactive canvas-based visualization of Conway's Game of Life ([test-first](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/spec/samples/elaborate/game_of_life/model/grid_spec.rb)), taking advantage of data-binding and multi-threading.
Binary file
@@ -0,0 +1,77 @@
1
+ # Copyright (c) 2007-2021 Andy Maleh
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
22
+ class Clock
23
+ include Glimmer::UI::CustomShell
24
+
25
+ body {
26
+ shell {
27
+ text 'Glimmer Clock'
28
+ minimum_size 400, 430
29
+
30
+ canvas {
31
+ initial_time = Time.now
32
+ background :black
33
+
34
+ animation {
35
+ every 0.01 # every hundredth of a second to ensure higher accuracy
36
+
37
+ frame { |index|
38
+ time = Time.now
39
+
40
+ oval(0, 0, 400, 400) {
41
+ background :white
42
+ }
43
+ oval(0, 0, 400, 400) {
44
+ foreground :black
45
+ }
46
+ polygon(-5, -5, 180, 0, -5, 5) {
47
+ background :black
48
+
49
+ transform {
50
+ translate 200, 200
51
+ rotate(time.sec*6 - 90)
52
+ }
53
+ }
54
+ polygon(-5, -5, 135, 0, -5, 5) {
55
+ background :dark_gray
56
+
57
+ transform {
58
+ translate 200, 200
59
+ rotate(time.min*6 - 90)
60
+ }
61
+ }
62
+ polygon(-5, -5, 90, 0, -5, 5) {
63
+ background :gray
64
+
65
+ transform {
66
+ translate 200, 200
67
+ rotate((time.hour - 12)*30 - 90)
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ end
76
+
77
+ Clock.launch
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.15.0
4
+ version: 4.20.15.1
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-09 00:00:00.000000000 Z
11
+ date: 2021-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -552,6 +552,7 @@ files:
552
552
  - samples/elaborate/calculator/model/command/operation/subtract.rb
553
553
  - samples/elaborate/calculator/model/command/point.rb
554
554
  - samples/elaborate/calculator/model/presenter.rb
555
+ - samples/elaborate/clock.rb
555
556
  - samples/elaborate/connect4.rb
556
557
  - samples/elaborate/connect4/model/grid.rb
557
558
  - samples/elaborate/connect4/model/slot.rb