glimmer 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +4 -4
- data/VERSION +1 -1
- data/lib/glimmer/data_binding/model_binding.rb +3 -4
- data/lib/glimmer/dsl/engine.rb +8 -7
- data/lib/glimmer/launcher.rb +2 -0
- 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: a991d3df0f065a0caa7cd20d43c026561b99b334b4db9d67d37d54a9aa125a70
|
4
|
+
data.tar.gz: c9660908ac2b7b8d2c00a8af33c793ad8f2789bb513553fb1e8e2b4abf2f3db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289e423f490a3bb338fa91ab5502b03936c5e03088f48dafbb74aa4b31e606637e873c8b26a46167cb10306cab22ae09a733318ef98382ff424207fb06c93fac
|
7
|
+
data.tar.gz: d6d865f226ab24151983c5c9a3c0dc18bd73d7d4c8ca02a4e99fe4d231500ade3215d245add615e11d1713e39b8a9da5e47006bc13d8406ad4b7208679e38d07
|
data/README.markdown
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Glimmer 0.7.
|
1
|
+
# Glimmer 0.7.2 Beta (JRuby Desktop UI DSL + Data-Binding)
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/glimmer.svg)](http://badge.fury.io/rb/glimmer)
|
3
3
|
[![Coverage Status](https://coveralls.io/repos/github/AndyObtiva/glimmer/badge.svg?branch=master)](https://coveralls.io/github/AndyObtiva/glimmer?branch=master)
|
4
4
|
|
@@ -71,7 +71,7 @@ NOTE: Glimmer is in beta mode. Please help make better by adopting for small or
|
|
71
71
|
## Table of Contents
|
72
72
|
|
73
73
|
<!-- TOC START min:1 max:3 link:true asterisk:false update:true -->
|
74
|
-
- [Glimmer 0.7.
|
74
|
+
- [Glimmer 0.7.2 Beta (JRuby Desktop UI DSL + Data-Binding)](#glimmer-058-beta-jruby-desktop-ui-dsl--data-binding)
|
75
75
|
- [Examples](#examples)
|
76
76
|
- [Hello World](#hello-world)
|
77
77
|
- [Tic Tac Toe](#tic-tac-toe)
|
@@ -164,7 +164,7 @@ Please follow these instructions to make the `glimmer` command available on your
|
|
164
164
|
|
165
165
|
Run this command to install directly:
|
166
166
|
```
|
167
|
-
jgem install glimmer -v 0.7.
|
167
|
+
jgem install glimmer -v 0.7.2
|
168
168
|
```
|
169
169
|
|
170
170
|
`jgem` is JRuby's version of `gem` command.
|
@@ -175,7 +175,7 @@ Otherwise, you may also run `jruby -S gem install ...`
|
|
175
175
|
|
176
176
|
Add the following to `Gemfile`:
|
177
177
|
```
|
178
|
-
gem 'glimmer', '~> 0.7.
|
178
|
+
gem 'glimmer', '~> 0.7.2'
|
179
179
|
```
|
180
180
|
|
181
181
|
And, then run:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
@@ -203,10 +203,9 @@ module Glimmer
|
|
203
203
|
end
|
204
204
|
|
205
205
|
def evaluate_property
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
end
|
206
|
+
value = nil
|
207
|
+
value = invoke_property_reader(model, property_name) unless model.nil?
|
208
|
+
convert_on_read(value)
|
210
209
|
end
|
211
210
|
|
212
211
|
def evaluate_options_property
|
data/lib/glimmer/dsl/engine.rb
CHANGED
@@ -100,7 +100,7 @@ module Glimmer
|
|
100
100
|
return Glimmer::DSL::Engine.interpret(keyword, *args, &block)
|
101
101
|
rescue => e
|
102
102
|
Glimmer::DSL::Engine.reset
|
103
|
-
raise e if static_expression_dsl.nil?
|
103
|
+
raise e if static_expression_dsl.nil? || !Glimmer::DSL::Engine.static_expressions[keyword][static_expression_dsl].is_a?(TopLevelExpression)
|
104
104
|
end
|
105
105
|
end
|
106
106
|
raise Glimmer::Error, "Unsupported keyword: #{keyword}" unless static_expression_dsl || retrieved_static_expression
|
@@ -153,12 +153,13 @@ module Glimmer
|
|
153
153
|
#
|
154
154
|
# For example, a shell widget would get properties set and children added
|
155
155
|
def add_content(parent, expression, &block)
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
156
|
+
if block_given? && expression.is_a?(ParentExpression)
|
157
|
+
dsl_stack.push(expression.class.dsl)
|
158
|
+
parent_stack.push(parent)
|
159
|
+
expression.add_content(parent, &block)
|
160
|
+
parent_stack.pop
|
161
|
+
dsl_stack.pop
|
162
|
+
end
|
162
163
|
end
|
163
164
|
|
164
165
|
# Current parent while evaluating Glimmer DSL (nil if just started or done evaluatiing)
|
data/lib/glimmer/launcher.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|