glimmer-dsl-swt 4.20.13.18 → 4.20.14.0

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: 41658f842e145c053d12a6b5b07d93607523a2400092aa2fe0d1017d2683fa93
4
- data.tar.gz: c5fc77baf99b69ebe8f06f7550feed02a47adcb2417cca0e205be0182f4a22c6
3
+ metadata.gz: ff80eeabdc2f2185c4c15a9a02bb3d6d06596f5bc803fa6badbdf6a22a9c6dec
4
+ data.tar.gz: 7b86a2fb40bd3423e1e6f24534de4e09dc865da4671add6d3db493a9c53e1a69
5
5
  SHA512:
6
- metadata.gz: bd12243a6229d64c56dc1a7fd18717b50f02e873d3d3e3c0088e6c95f86791d2f0f719efc4f02769097eceaa3e0c791044c2e0ec85d1d85ee6ec3f6edc4b612d
7
- data.tar.gz: f25ea6a7597d29aa16d095b886ce6d0a5d367a4523c9fadd726c093f7f5ec7d2e4aed18f9666d9871b3b5403c0250502e8c6178545166ceedd10c5c663d2a1c5
6
+ metadata.gz: c90efdd83bee0f72a24525e8c33b8e36b9242be961995576f0251bbef139ffe41b7af4a99063f72bc1074c83c7252fd03263e02b037d2a5f831ca193c74aa71a
7
+ data.tar.gz: fe2c6640ee05b3f55481c1355debb96252d5428e6443a5d0df06f915fe8018da58157a07e2fcc3df2b5648fc54797dc1c1d6dd9af4a766d5c5a84950e8816997
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ### 4.20.14.0
4
4
 
5
+ - Extract ObserveExpression into Glimmer
6
+ - Upgrade to Glimmer 2.1.0
7
+
8
+ ### 4.20.13.18
9
+
5
10
  - Change `arrow` widget default SWT style to include `:down`
6
11
  - Hello, Arrow! sample
7
12
 
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.14.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.13.18
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.14.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.13.18 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.14.0
324
+ jgem install glimmer-dsl-swt -v 4.20.13.18
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.14.0'
352
+ gem 'glimmer-dsl-swt', '~> 4.20.13.18'
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.14.0
373
+ Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.13.18
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.13.18
1
+ 4.20.14.0
Binary file
@@ -21,7 +21,6 @@
21
21
 
22
22
  require 'glimmer/dsl/static_expression'
23
23
  require 'glimmer/dsl/bind_expression'
24
- require 'glimmer/data_binding/model_binding'
25
24
 
26
25
  module Glimmer
27
26
  module DSL
@@ -21,8 +21,7 @@
21
21
 
22
22
  require 'glimmer/dsl/static_expression'
23
23
  require 'glimmer/dsl/top_level_expression'
24
- require 'glimmer/data_binding/observer'
25
- require 'glimmer/data_binding/model_binding'
24
+ require 'glimmer/dsl/observe_expression'
26
25
  require 'glimmer/ui/custom_widget'
27
26
 
28
27
  module Glimmer
@@ -30,23 +29,10 @@ module Glimmer
30
29
  module SWT
31
30
  class ObserveExpression < StaticExpression
32
31
  include TopLevelExpression
32
+ include Glimmer::DSL::ObserveExpression
33
33
 
34
- REGEX_NESTED_OR_INDEXED_PROPERTY = /([^\[]+)(\[[^\]]+\])?/
35
-
36
- def can_interpret?(parent, keyword, *args, &block)
37
- keyword == 'observe' and
38
- block_given? and
39
- (args.size == 2) and
40
- textual?(args[1])
41
- end
42
-
43
34
  def interpret(parent, keyword, *args, &block)
44
- observer = DataBinding::Observer.proc(&block)
45
- if args[1].to_s.match(REGEX_NESTED_OR_INDEXED_PROPERTY)
46
- observer_registration = observer.observe(DataBinding::ModelBinding.new(args[0], args[1]))
47
- else
48
- observer_registration = observer.observe(args[0], args[1])
49
- end
35
+ observer_registration = super
50
36
  Glimmer::UI::CustomWidget.current_custom_widgets.last&.observer_registrations&.push(observer_registration)
51
37
  observer_registration
52
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-swt
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.20.13.18
4
+ version: 4.20.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
@@ -15,7 +15,7 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 2.0.0
18
+ version: 2.1.0
19
19
  name: glimmer
20
20
  prerelease: false
21
21
  type: :runtime
@@ -23,7 +23,7 @@ dependencies:
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.0
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements: