glimmer 0.7.1 → 0.7.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31b586dfb4cb23af36ebd26ad97a46625fe122c64d9725b237c8f88f0c72ce71
4
- data.tar.gz: 14ff7f5996588c4261cf4d102d5ffca28fc59cef5bd151d07c273038efae3da5
3
+ metadata.gz: a991d3df0f065a0caa7cd20d43c026561b99b334b4db9d67d37d54a9aa125a70
4
+ data.tar.gz: c9660908ac2b7b8d2c00a8af33c793ad8f2789bb513553fb1e8e2b4abf2f3db1
5
5
  SHA512:
6
- metadata.gz: 6eb266dffd64ba21842038fd272c06a3342f3399b5729d178b966b9543dfdbb9eb45eea079782d0db205e68cc9b63a5a0a4222a9d77c9f5df2cacc01126fed51
7
- data.tar.gz: 123a861f812ac0e4ee2e4c802255ff017c2459a65de79cb52863897a0b017fc8037d9b57eb8e041dc75005d68ee4a3835b07a7cd03f87c30f524c5fef67717ca
6
+ metadata.gz: 289e423f490a3bb338fa91ab5502b03936c5e03088f48dafbb74aa4b31e606637e873c8b26a46167cb10306cab22ae09a733318ef98382ff424207fb06c93fac
7
+ data.tar.gz: d6d865f226ab24151983c5c9a3c0dc18bd73d7d4c8ca02a4e99fe4d231500ade3215d245add615e11d1713e39b8a9da5e47006bc13d8406ad4b7208679e38d07
data/README.markdown CHANGED
@@ -1,4 +1,4 @@
1
- # Glimmer 0.7.1 Beta (JRuby Desktop UI DSL + Data-Binding)
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.1 Beta (JRuby Desktop UI DSL + Data-Binding)](#glimmer-058-beta-jruby-desktop-ui-dsl--data-binding)
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.1
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.1'
178
+ gem 'glimmer', '~> 0.7.2'
179
179
  ```
180
180
 
181
181
  And, then run:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
@@ -203,10 +203,9 @@ module Glimmer
203
203
  end
204
204
 
205
205
  def evaluate_property
206
- unless model.nil?
207
- value = invoke_property_reader(model, property_name)
208
- convert_on_read(value)
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
@@ -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
- time = Time.now.to_f
157
- dsl_stack.push(expression.class.dsl)
158
- parent_stack.push(parent) if expression.is_a?(ParentExpression)
159
- expression.add_content(parent, &block) if block_given?
160
- parent_stack.pop if expression.is_a?(ParentExpression)
161
- dsl_stack.pop
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)
@@ -3,6 +3,8 @@ require 'rake'
3
3
 
4
4
  require_relative 'rake_task'
5
5
 
6
+ load File.expand_path('./Rakefile') if File.exist?(File.expand_path('./Rakefile'))
7
+
6
8
  module Glimmer
7
9
  class Launcher
8
10
  OPERATING_SYSTEMS_SUPPORTED = ["mac", "windows", "linux"]
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.1
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 00:00:00.000000000 Z
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