glimmer 0.10.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +361 -0
- data/CONTRIBUTING.md +62 -0
- data/LICENSE.txt +1 -1
- data/PROCESS.md +35 -0
- data/README.md +550 -2831
- data/VERSION +1 -1
- data/lib/glimmer.rb +30 -19
- data/lib/glimmer/config.rb +42 -5
- data/lib/glimmer/data_binding/model_binding.rb +37 -27
- data/lib/glimmer/data_binding/observable.rb +21 -0
- data/lib/glimmer/data_binding/observable_array.rb +229 -30
- data/lib/glimmer/data_binding/observable_model.rb +43 -20
- data/lib/glimmer/data_binding/observer.rb +25 -6
- data/lib/glimmer/dsl/engine.rb +68 -60
- data/lib/glimmer/dsl/expression.rb +21 -0
- data/lib/glimmer/dsl/expression_handler.rb +23 -3
- data/lib/glimmer/dsl/parent_expression.rb +21 -0
- data/lib/glimmer/dsl/static_expression.rb +21 -0
- data/lib/glimmer/dsl/top_level_expression.rb +21 -0
- data/lib/glimmer/error.rb +21 -0
- data/lib/glimmer/invalid_keyword_error.rb +21 -0
- metadata +44 -18
- data/lib/glimmer/excluded_keyword_error.rb +0 -5
@@ -1,3 +1,24 @@
|
|
1
|
+
# Copyright (c) 2007-2020 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
|
+
|
1
22
|
require 'facets/string/underscore'
|
2
23
|
|
3
24
|
require 'glimmer/error'
|
@@ -1,3 +1,24 @@
|
|
1
|
+
# Copyright (c) 2007-2020 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
|
+
|
1
22
|
module Glimmer
|
2
23
|
module DSL
|
3
24
|
# Mixin that represents expressions that are always at the top with parent nil
|
data/lib/glimmer/error.rb
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
# Copyright (c) 2007-2020 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
|
+
|
1
22
|
module Glimmer
|
2
23
|
# Represents Glimmer errors that occur due to invalid use of Glimmer
|
3
24
|
# without handing control flow back to original method_missing
|
@@ -1,3 +1,24 @@
|
|
1
|
+
# Copyright (c) 2007-2020 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
|
+
|
1
22
|
module Glimmer
|
2
23
|
# Represents Glimmer errors that occur due to invalid use of Glimmer
|
3
24
|
# without handing control flow back to original method_missing
|
metadata
CHANGED
@@ -1,16 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: array_include_methods
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.2
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.0.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.0.2
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.0.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: facets
|
14
35
|
requirement: !ruby/object:Gem::Requirement
|
15
36
|
requirements:
|
16
37
|
- - ">="
|
@@ -19,7 +40,6 @@ dependencies:
|
|
19
40
|
- - "<"
|
20
41
|
- !ruby/object:Gem::Version
|
21
42
|
version: 4.0.0
|
22
|
-
name: facets
|
23
43
|
type: :runtime
|
24
44
|
prerelease: false
|
25
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,12 +51,12 @@ dependencies:
|
|
31
51
|
- !ruby/object:Gem::Version
|
32
52
|
version: 4.0.0
|
33
53
|
- !ruby/object:Gem::Dependency
|
54
|
+
name: rspec-mocks
|
34
55
|
requirement: !ruby/object:Gem::Requirement
|
35
56
|
requirements:
|
36
57
|
- - "~>"
|
37
58
|
- !ruby/object:Gem::Version
|
38
59
|
version: 3.5.0
|
39
|
-
name: rspec-mocks
|
40
60
|
type: :development
|
41
61
|
prerelease: false
|
42
62
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -45,12 +65,12 @@ dependencies:
|
|
45
65
|
- !ruby/object:Gem::Version
|
46
66
|
version: 3.5.0
|
47
67
|
- !ruby/object:Gem::Dependency
|
68
|
+
name: rspec
|
48
69
|
requirement: !ruby/object:Gem::Requirement
|
49
70
|
requirements:
|
50
71
|
- - "~>"
|
51
72
|
- !ruby/object:Gem::Version
|
52
73
|
version: 3.5.0
|
53
|
-
name: rspec
|
54
74
|
type: :development
|
55
75
|
prerelease: false
|
56
76
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -59,20 +79,21 @@ dependencies:
|
|
59
79
|
- !ruby/object:Gem::Version
|
60
80
|
version: 3.5.0
|
61
81
|
- !ruby/object:Gem::Dependency
|
82
|
+
name: puts_debuggerer
|
62
83
|
requirement: !ruby/object:Gem::Requirement
|
63
84
|
requirements:
|
64
85
|
- - "~>"
|
65
86
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.
|
67
|
-
name: puts_debuggerer
|
87
|
+
version: 0.10.0
|
68
88
|
type: :development
|
69
89
|
prerelease: false
|
70
90
|
version_requirements: !ruby/object:Gem::Requirement
|
71
91
|
requirements:
|
72
92
|
- - "~>"
|
73
93
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
94
|
+
version: 0.10.0
|
75
95
|
- !ruby/object:Gem::Dependency
|
96
|
+
name: rake
|
76
97
|
requirement: !ruby/object:Gem::Requirement
|
77
98
|
requirements:
|
78
99
|
- - ">="
|
@@ -81,7 +102,6 @@ dependencies:
|
|
81
102
|
- - "<"
|
82
103
|
- !ruby/object:Gem::Version
|
83
104
|
version: 14.0.0
|
84
|
-
name: rake
|
85
105
|
type: :development
|
86
106
|
prerelease: false
|
87
107
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -93,6 +113,7 @@ dependencies:
|
|
93
113
|
- !ruby/object:Gem::Version
|
94
114
|
version: 14.0.0
|
95
115
|
- !ruby/object:Gem::Dependency
|
116
|
+
name: jeweler
|
96
117
|
requirement: !ruby/object:Gem::Requirement
|
97
118
|
requirements:
|
98
119
|
- - ">="
|
@@ -101,7 +122,6 @@ dependencies:
|
|
101
122
|
- - "<"
|
102
123
|
- !ruby/object:Gem::Version
|
103
124
|
version: 3.0.0
|
104
|
-
name: jeweler
|
105
125
|
type: :development
|
106
126
|
prerelease: false
|
107
127
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -113,6 +133,7 @@ dependencies:
|
|
113
133
|
- !ruby/object:Gem::Version
|
114
134
|
version: 3.0.0
|
115
135
|
- !ruby/object:Gem::Dependency
|
136
|
+
name: rdoc
|
116
137
|
requirement: !ruby/object:Gem::Requirement
|
117
138
|
requirements:
|
118
139
|
- - ">="
|
@@ -121,7 +142,6 @@ dependencies:
|
|
121
142
|
- - "<"
|
122
143
|
- !ruby/object:Gem::Version
|
123
144
|
version: 7.0.0
|
124
|
-
name: rdoc
|
125
145
|
type: :development
|
126
146
|
prerelease: false
|
127
147
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -133,12 +153,12 @@ dependencies:
|
|
133
153
|
- !ruby/object:Gem::Version
|
134
154
|
version: 7.0.0
|
135
155
|
- !ruby/object:Gem::Dependency
|
156
|
+
name: coveralls
|
136
157
|
requirement: !ruby/object:Gem::Requirement
|
137
158
|
requirements:
|
138
159
|
- - '='
|
139
160
|
- !ruby/object:Gem::Version
|
140
161
|
version: 0.8.23
|
141
|
-
name: coveralls
|
142
162
|
type: :development
|
143
163
|
prerelease: false
|
144
164
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -147,12 +167,12 @@ dependencies:
|
|
147
167
|
- !ruby/object:Gem::Version
|
148
168
|
version: 0.8.23
|
149
169
|
- !ruby/object:Gem::Dependency
|
170
|
+
name: simplecov
|
150
171
|
requirement: !ruby/object:Gem::Requirement
|
151
172
|
requirements:
|
152
173
|
- - "~>"
|
153
174
|
- !ruby/object:Gem::Version
|
154
175
|
version: 0.16.1
|
155
|
-
name: simplecov
|
156
176
|
type: :development
|
157
177
|
prerelease: false
|
158
178
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -161,12 +181,12 @@ dependencies:
|
|
161
181
|
- !ruby/object:Gem::Version
|
162
182
|
version: 0.16.1
|
163
183
|
- !ruby/object:Gem::Dependency
|
184
|
+
name: simplecov-lcov
|
164
185
|
requirement: !ruby/object:Gem::Requirement
|
165
186
|
requirements:
|
166
187
|
- - "~>"
|
167
188
|
- !ruby/object:Gem::Version
|
168
189
|
version: 0.7.0
|
169
|
-
name: simplecov-lcov
|
170
190
|
type: :development
|
171
191
|
prerelease: false
|
172
192
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -174,15 +194,22 @@ dependencies:
|
|
174
194
|
- - "~>"
|
175
195
|
- !ruby/object:Gem::Version
|
176
196
|
version: 0.7.0
|
177
|
-
description: Ruby
|
197
|
+
description: Glimmer is a Ruby DSL engine with support for the Glimmer DSL for SWT
|
198
|
+
(JRuby Desktop Development GUI Library), the Glimmer DSL for Tk (Ruby Desktop Development
|
199
|
+
GUI Library), the Glimmer DSL for Opal (Web GUI Adapter for Desktop Apps), the Glimmer
|
200
|
+
DSL for XML (& HTML), and the Glimmer DSL for CSS.
|
178
201
|
email: andy.am@gmail.com
|
179
202
|
executables: []
|
180
203
|
extensions: []
|
181
204
|
extra_rdoc_files:
|
205
|
+
- CHANGELOG.md
|
182
206
|
- LICENSE.txt
|
183
207
|
- README.md
|
184
208
|
files:
|
209
|
+
- CHANGELOG.md
|
210
|
+
- CONTRIBUTING.md
|
185
211
|
- LICENSE.txt
|
212
|
+
- PROCESS.md
|
186
213
|
- README.md
|
187
214
|
- VERSION
|
188
215
|
- lib/glimmer.rb
|
@@ -199,7 +226,6 @@ files:
|
|
199
226
|
- lib/glimmer/dsl/static_expression.rb
|
200
227
|
- lib/glimmer/dsl/top_level_expression.rb
|
201
228
|
- lib/glimmer/error.rb
|
202
|
-
- lib/glimmer/excluded_keyword_error.rb
|
203
229
|
- lib/glimmer/invalid_keyword_error.rb
|
204
230
|
homepage: http://github.com/AndyObtiva/glimmer
|
205
231
|
licenses:
|
@@ -220,8 +246,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
246
|
- !ruby/object:Gem::Version
|
221
247
|
version: '0'
|
222
248
|
requirements: []
|
223
|
-
rubygems_version: 3.
|
249
|
+
rubygems_version: 3.1.2
|
224
250
|
signing_key:
|
225
251
|
specification_version: 4
|
226
|
-
summary: Ruby
|
252
|
+
summary: Glimmer Ruby DSL Engine
|
227
253
|
test_files: []
|