glimmer 0.2.4 → 0.2.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 +4 -4
- data/README.markdown +7 -3
- data/lib/command_handlers/models/widget_binding.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea0f249121119690fd3553adc211844541485690b633198bf5a186ea227e878b
|
4
|
+
data.tar.gz: b598dc0df0a28745eadfdc917cda0dda117f773c2b507e7563915c87fc4a3bb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9282de0acba5317c726d5ccb93f1bd3261ff3a8a4937eb0d12bb9dd96d656a887968f661530111ef661a060aed06a18de44dd8f42831c11ae73c0760d61d7ca2
|
7
|
+
data.tar.gz: 93095774ad6692645730284c959742eb7399b2504671d5160856694f7592f694712b68e32540dc86aa9af786dbdf21d8b0d6ac7f93ed3ec475df32c35e249bd7
|
data/README.markdown
CHANGED
@@ -66,14 +66,14 @@ Please follow these instructions to make the `glimmer` command available on your
|
|
66
66
|
|
67
67
|
Run this command to install directly:
|
68
68
|
```
|
69
|
-
jgem install glimmer -v 0.2.
|
69
|
+
jgem install glimmer -v 0.2.5
|
70
70
|
```
|
71
71
|
|
72
72
|
### Option 2: Bundler
|
73
73
|
|
74
74
|
Add the following to `Gemfile`:
|
75
75
|
```
|
76
|
-
gem 'glimmer', '~> 0.2.
|
76
|
+
gem 'glimmer', '~> 0.2.5'
|
77
77
|
```
|
78
78
|
|
79
79
|
And, then run:
|
@@ -144,7 +144,7 @@ The third example binds the text property of a widget like `label` to the nested
|
|
144
144
|
|
145
145
|
The fourth example demonstrates computed value data binding whereby the value of `name` depends on changes to both `first_name` and `last_name`.
|
146
146
|
|
147
|
-
The fifth example demonstrates nested indexed computed value data binding whereby the value of `profiles[0].name` depends on changes to both nested `profiles[0].first_name` and `profiles[0].last_name`.
|
147
|
+
The fifth example demonstrates nested indexed computed value data binding whereby the value of `profiles[0].name` depends on changes to both nested `profiles[0].first_name` and `profiles[0].last_name`.
|
148
148
|
|
149
149
|
You may learn more about Glimmer's syntax by reading the Eclipse Zone Tutorial mentioned in resources and opening up the samples under the `samples` folder.
|
150
150
|
|
@@ -226,6 +226,10 @@ jruby -J-XstartOnFirstThread -J-classpath "path_to/swt.jar" -r glimmer -S applic
|
|
226
226
|
|
227
227
|
These features have been suggested. You might see them in a future version of Glimmer. You are welcome to contribute more feature suggestions.
|
228
228
|
|
229
|
+
- Auto-include SWT packages when including Glimmer
|
230
|
+
- Glimmer Application: provide a standard structure for building a Glimmer app
|
231
|
+
- Glimmer Component: Glimmer already supports components by externalizing to objects, but it would be good if there is a module to include so Glimmer would automatically register
|
232
|
+
a new component and extend the DSL with it
|
229
233
|
- **Nested indexed property data binding**: a complementary feature to nested property data binding that binds to a collection element by index (e.g. `bind(user, 'addresses[1].street')`)
|
230
234
|
- **bind_collection**: an iterator that enables spawning widgets based on a variable collection (e.g. `bind_collection('user.addresses') { |address| address_widget {...} }` spawns 3 `AddressWidget`s if `user.addresses` is set with 3 addresses; and replaces with 2 `AddressWidget`s if `user.addresses` is reset with 2 addresses only). Needs further thought on naming and functionality.
|
231
235
|
|
@@ -2,11 +2,12 @@ require File.dirname(__FILE__) + "/observer"
|
|
2
2
|
|
3
3
|
class WidgetBinding
|
4
4
|
include Observer
|
5
|
-
|
5
|
+
|
6
6
|
attr_reader :widget, :property
|
7
7
|
@@property_type_converters = {
|
8
8
|
:text => Proc.new { |value| value.to_s },
|
9
|
-
:items => Proc.new { |value| value.to_java :string}
|
9
|
+
:items => Proc.new { |value| value.to_java :string},
|
10
|
+
:visible => Proc.new { |value| !!value}
|
10
11
|
}
|
11
12
|
def initialize(model, property, translator = nil)
|
12
13
|
@widget = model
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|