glimmer-dsl-tk 0.0.4 → 0.0.8
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/CHANGELOG.md +24 -0
- data/LICENSE.txt +1 -1
- data/README.md +240 -41
- data/VERSION +1 -1
- data/bin/girb +27 -7
- data/icons/glimmer.png +0 -0
- data/lib/glimmer/data_binding/tk/list_selection_binding.rb +6 -6
- data/lib/glimmer/data_binding/tk/widget_binding.rb +22 -1
- data/lib/glimmer/dsl/tk/attribute_expression.rb +4 -4
- data/lib/glimmer/dsl/tk/bind_expression.rb +21 -0
- data/lib/glimmer/dsl/tk/block_attribute_expression.rb +4 -4
- data/lib/glimmer/dsl/tk/data_binding_expression.rb +22 -1
- data/lib/glimmer/dsl/tk/dsl.rb +4 -4
- data/lib/glimmer/dsl/tk/list_selection_data_binding_expression.rb +4 -4
- data/lib/glimmer/dsl/tk/root_expression.rb +9 -4
- data/lib/glimmer/dsl/tk/widget_expression.rb +7 -5
- data/lib/glimmer/tk/button_proxy.rb +5 -5
- data/lib/glimmer/tk/entry_proxy.rb +38 -0
- data/lib/glimmer/tk/frame_proxy.rb +5 -5
- data/lib/glimmer/tk/label_proxy.rb +40 -0
- data/lib/glimmer/tk/list_proxy.rb +8 -8
- data/lib/glimmer/tk/notebook_proxy.rb +5 -5
- data/lib/glimmer/tk/root_proxy.rb +19 -5
- data/lib/glimmer/tk/widget_proxy.rb +63 -23
- data/lib/glimmer-dsl-tk.rb +4 -4
- data/samples/hello/hello_combo.rb +9 -9
- data/samples/hello/hello_computed/contact.rb +21 -0
- data/samples/hello/hello_computed.rb +96 -0
- data/samples/hello/hello_list_multi_selection.rb +4 -4
- data/samples/hello/hello_list_single_selection.rb +6 -6
- data/samples/hello/hello_tab.rb +5 -5
- data/samples/hello/hello_world.rb +4 -4
- metadata +16 -10
@@ -1,5 +1,5 @@
|
|
1
|
-
# Copyright (c) 2020 Andy Maleh
|
2
|
-
#
|
1
|
+
# Copyright (c) 2020-2021 Andy Maleh
|
2
|
+
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
# a copy of this software and associated documentation files (the
|
5
5
|
# "Software"), to deal in the Software without restriction, including
|
@@ -7,10 +7,10 @@
|
|
7
7
|
# distribute, sublicense, and/or sell copies of the Software, and to
|
8
8
|
# permit persons to whom the Software is furnished to do so, subject to
|
9
9
|
# the following conditions:
|
10
|
-
#
|
10
|
+
#
|
11
11
|
# The above copyright notice and this permission notice shall be
|
12
12
|
# included in all copies or substantial portions of the Software.
|
13
|
-
#
|
13
|
+
#
|
14
14
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
15
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
16
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# Copyright (c) 2020 Andy Maleh
|
2
|
-
#
|
1
|
+
# Copyright (c) 2020-2021 Andy Maleh
|
2
|
+
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
# a copy of this software and associated documentation files (the
|
5
5
|
# "Software"), to deal in the Software without restriction, including
|
@@ -7,10 +7,10 @@
|
|
7
7
|
# distribute, sublicense, and/or sell copies of the Software, and to
|
8
8
|
# permit persons to whom the Software is furnished to do so, subject to
|
9
9
|
# the following conditions:
|
10
|
-
#
|
10
|
+
#
|
11
11
|
# The above copyright notice and this permission notice shall be
|
12
12
|
# included in all copies or substantial portions of the Software.
|
13
|
-
#
|
13
|
+
#
|
14
14
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
15
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
16
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
require 'glimmer-dsl-tk'
|
23
23
|
|
24
|
-
class Person
|
24
|
+
class Person
|
25
25
|
attr_accessor :country, :country_options
|
26
26
|
|
27
27
|
def initialize
|
@@ -40,7 +40,7 @@ class HelloListSingleSelection
|
|
40
40
|
def launch
|
41
41
|
person = Person.new
|
42
42
|
|
43
|
-
root {
|
43
|
+
root {
|
44
44
|
title 'Hello, List Single Selection!'
|
45
45
|
|
46
46
|
list {
|
data/samples/hello/hello_tab.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# Copyright (c) 2020 Andy Maleh
|
2
|
-
#
|
1
|
+
# Copyright (c) 2020-2021 Andy Maleh
|
2
|
+
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
# a copy of this software and associated documentation files (the
|
5
5
|
# "Software"), to deal in the Software without restriction, including
|
@@ -7,10 +7,10 @@
|
|
7
7
|
# distribute, sublicense, and/or sell copies of the Software, and to
|
8
8
|
# permit persons to whom the Software is furnished to do so, subject to
|
9
9
|
# the following conditions:
|
10
|
-
#
|
10
|
+
#
|
11
11
|
# The above copyright notice and this permission notice shall be
|
12
12
|
# included in all copies or substantial portions of the Software.
|
13
|
-
#
|
13
|
+
#
|
14
14
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
15
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
16
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
@@ -25,7 +25,7 @@ class HelloTab
|
|
25
25
|
include Glimmer
|
26
26
|
|
27
27
|
def launch
|
28
|
-
root {
|
28
|
+
root {
|
29
29
|
title 'Hello, Tab!'
|
30
30
|
|
31
31
|
notebook {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# Copyright (c) 2020 Andy Maleh
|
2
|
-
#
|
1
|
+
# Copyright (c) 2020-2021 Andy Maleh
|
2
|
+
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
# a copy of this software and associated documentation files (the
|
5
5
|
# "Software"), to deal in the Software without restriction, including
|
@@ -7,10 +7,10 @@
|
|
7
7
|
# distribute, sublicense, and/or sell copies of the Software, and to
|
8
8
|
# permit persons to whom the Software is furnished to do so, subject to
|
9
9
|
# the following conditions:
|
10
|
-
#
|
10
|
+
#
|
11
11
|
# The above copyright notice and this permission notice shall be
|
12
12
|
# included in all copies or substantial portions of the Software.
|
13
|
-
#
|
13
|
+
#
|
14
14
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
15
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
16
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-dsl-tk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glimmer
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: tk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.4.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,14 +120,14 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: 0.
|
123
|
+
version: 0.13.1
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.
|
130
|
+
version: 0.13.1
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: coveralls
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,7 +170,7 @@ dependencies:
|
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: 0.7.0
|
173
|
-
description: Glimmer DSL for Tk (Ruby Desktop GUI)
|
173
|
+
description: Glimmer DSL for Tk (Ruby Desktop Development GUI Library)
|
174
174
|
email: andy.am@gmail.com
|
175
175
|
executables:
|
176
176
|
- girb
|
@@ -186,6 +186,7 @@ files:
|
|
186
186
|
- VERSION
|
187
187
|
- bin/girb
|
188
188
|
- bin/girb_runner.rb
|
189
|
+
- icons/glimmer.png
|
189
190
|
- lib/glimmer-dsl-tk.rb
|
190
191
|
- lib/glimmer/data_binding/tk/list_selection_binding.rb
|
191
192
|
- lib/glimmer/data_binding/tk/widget_binding.rb
|
@@ -198,12 +199,16 @@ files:
|
|
198
199
|
- lib/glimmer/dsl/tk/root_expression.rb
|
199
200
|
- lib/glimmer/dsl/tk/widget_expression.rb
|
200
201
|
- lib/glimmer/tk/button_proxy.rb
|
202
|
+
- lib/glimmer/tk/entry_proxy.rb
|
201
203
|
- lib/glimmer/tk/frame_proxy.rb
|
204
|
+
- lib/glimmer/tk/label_proxy.rb
|
202
205
|
- lib/glimmer/tk/list_proxy.rb
|
203
206
|
- lib/glimmer/tk/notebook_proxy.rb
|
204
207
|
- lib/glimmer/tk/root_proxy.rb
|
205
208
|
- lib/glimmer/tk/widget_proxy.rb
|
206
209
|
- samples/hello/hello_combo.rb
|
210
|
+
- samples/hello/hello_computed.rb
|
211
|
+
- samples/hello/hello_computed/contact.rb
|
207
212
|
- samples/hello/hello_list_multi_selection.rb
|
208
213
|
- samples/hello/hello_list_single_selection.rb
|
209
214
|
- samples/hello/hello_tab.rb
|
@@ -216,6 +221,7 @@ post_install_message:
|
|
216
221
|
rdoc_options: []
|
217
222
|
require_paths:
|
218
223
|
- lib
|
224
|
+
- "."
|
219
225
|
required_ruby_version: !ruby/object:Gem::Requirement
|
220
226
|
requirements:
|
221
227
|
- - ">="
|
@@ -227,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
233
|
- !ruby/object:Gem::Version
|
228
234
|
version: '0'
|
229
235
|
requirements: []
|
230
|
-
rubygems_version: 3.
|
236
|
+
rubygems_version: 3.2.22
|
231
237
|
signing_key:
|
232
238
|
specification_version: 4
|
233
239
|
summary: Glimmer DSL for Tk
|