glimmer-dsl-tk 0.0.1 → 0.0.6
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 +30 -0
- data/README.md +483 -14
- data/VERSION +1 -1
- data/bin/girb +10 -0
- data/bin/girb_runner.rb +26 -0
- data/lib/glimmer-dsl-tk.rb +3 -3
- data/lib/glimmer/data_binding/tk/list_selection_binding.rb +75 -0
- data/lib/glimmer/data_binding/tk/widget_binding.rb +28 -0
- data/lib/glimmer/dsl/tk/bind_expression.rb +36 -0
- data/lib/glimmer/dsl/tk/block_attribute_expression.rb +41 -0
- data/lib/glimmer/dsl/tk/data_binding_expression.rb +33 -0
- data/lib/glimmer/dsl/tk/dsl.rb +3 -0
- data/lib/glimmer/dsl/tk/list_selection_data_binding_expression.rb +60 -0
- data/lib/glimmer/dsl/tk/widget_expression.rb +8 -2
- data/lib/glimmer/tk/button_proxy.rb +35 -0
- data/lib/glimmer/tk/entry_proxy.rb +38 -0
- data/lib/glimmer/tk/frame_proxy.rb +42 -0
- data/lib/glimmer/tk/label_proxy.rb +40 -0
- data/lib/glimmer/tk/list_proxy.rb +60 -0
- data/lib/glimmer/tk/notebook_proxy.rb +45 -0
- data/lib/glimmer/tk/root_proxy.rb +2 -2
- data/lib/glimmer/tk/widget_proxy.rb +163 -37
- data/samples/hello/hello_combo.rb +61 -0
- data/samples/hello/hello_computed.rb +75 -0
- data/samples/hello/hello_computed/contact.rb +21 -0
- data/samples/hello/hello_list_multi_selection.rb +69 -0
- data/samples/hello/hello_list_single_selection.rb +60 -0
- data/samples/hello/hello_tab.rb +48 -0
- data/samples/hello/hello_world.rb +2 -0
- metadata +71 -130
@@ -0,0 +1,61 @@
|
|
1
|
+
# Copyright (c) 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
|
+
|
22
|
+
require 'glimmer-dsl-tk'
|
23
|
+
|
24
|
+
class Person
|
25
|
+
attr_accessor :country, :country_options
|
26
|
+
|
27
|
+
def initialize
|
28
|
+
self.country_options=["", "Canada", "US", "Mexico"]
|
29
|
+
self.country = "Canada"
|
30
|
+
end
|
31
|
+
|
32
|
+
def reset_country
|
33
|
+
self.country = "Canada"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
class HelloCombo
|
38
|
+
include Glimmer
|
39
|
+
|
40
|
+
def launch
|
41
|
+
person = Person.new
|
42
|
+
|
43
|
+
root {
|
44
|
+
title 'Hello, Combo!'
|
45
|
+
|
46
|
+
combobox {
|
47
|
+
state 'readonly'
|
48
|
+
text bind(person, :country)
|
49
|
+
}
|
50
|
+
|
51
|
+
button {
|
52
|
+
text "Reset Selection"
|
53
|
+
command {
|
54
|
+
person.reset_country
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}.open
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
HelloCombo.new.launch
|
@@ -0,0 +1,75 @@
|
|
1
|
+
require 'glimmer-dsl-tk'
|
2
|
+
|
3
|
+
require_relative 'hello_computed/contact'
|
4
|
+
|
5
|
+
class HelloComputed
|
6
|
+
include Glimmer
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@contact = Contact.new(
|
10
|
+
first_name: 'Barry',
|
11
|
+
last_name: 'McKibbin',
|
12
|
+
year_of_birth: 1985
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
def launch
|
17
|
+
root {
|
18
|
+
title 'Hello, Computed!'
|
19
|
+
|
20
|
+
frame {
|
21
|
+
grid column: 0, row: 0, padx: 5, pady: 5
|
22
|
+
|
23
|
+
label {
|
24
|
+
grid column: 0, row: 0, sticky: 'w'
|
25
|
+
text 'First Name: '
|
26
|
+
}
|
27
|
+
entry {
|
28
|
+
grid column: 1, row: 0
|
29
|
+
width 15
|
30
|
+
text bind(@contact, :first_name)
|
31
|
+
}
|
32
|
+
|
33
|
+
label {
|
34
|
+
grid column: 0, row: 1, sticky: 'w'
|
35
|
+
text 'Last Name: '
|
36
|
+
}
|
37
|
+
entry {
|
38
|
+
grid column: 1, row: 1
|
39
|
+
width 15
|
40
|
+
text bind(@contact, :last_name)
|
41
|
+
}
|
42
|
+
|
43
|
+
label {
|
44
|
+
grid column: 0, row: 2, sticky: 'w'
|
45
|
+
text 'Year of Birth: '
|
46
|
+
}
|
47
|
+
entry {
|
48
|
+
grid column: 1, row: 2
|
49
|
+
width 15
|
50
|
+
text bind(@contact, :year_of_birth)
|
51
|
+
}
|
52
|
+
|
53
|
+
label {
|
54
|
+
grid column: 0, row: 3, sticky: 'w'
|
55
|
+
text 'Name: '
|
56
|
+
}
|
57
|
+
label {
|
58
|
+
grid column: 1, row: 3, sticky: 'w'
|
59
|
+
text bind(@contact, :name, computed_by: [:first_name, :last_name])
|
60
|
+
}
|
61
|
+
|
62
|
+
label {
|
63
|
+
grid column: 0, row: 4, sticky: 'w'
|
64
|
+
text 'Age: '
|
65
|
+
}
|
66
|
+
label {
|
67
|
+
grid column: 1, row: 4, sticky: 'w'
|
68
|
+
text bind(@contact, :age, on_write: :to_i, computed_by: [:year_of_birth])
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}.open
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
HelloComputed.new.launch
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class HelloComputed
|
2
|
+
class Contact
|
3
|
+
attr_accessor :first_name, :last_name, :year_of_birth
|
4
|
+
|
5
|
+
def initialize(attribute_map)
|
6
|
+
@first_name = attribute_map[:first_name]
|
7
|
+
@last_name = attribute_map[:last_name]
|
8
|
+
@year_of_birth = attribute_map[:year_of_birth]
|
9
|
+
end
|
10
|
+
|
11
|
+
def name
|
12
|
+
"#{last_name}, #{first_name}"
|
13
|
+
end
|
14
|
+
|
15
|
+
def age
|
16
|
+
Time.now.year - year_of_birth.to_i
|
17
|
+
rescue
|
18
|
+
0
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# Copyright (c) 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
|
+
|
22
|
+
require 'glimmer-dsl-tk'
|
23
|
+
|
24
|
+
class Person
|
25
|
+
attr_accessor :provinces, :provinces_options
|
26
|
+
|
27
|
+
def initialize
|
28
|
+
self.provinces_options=[
|
29
|
+
"",
|
30
|
+
"Quebec",
|
31
|
+
"Ontario",
|
32
|
+
"Manitoba",
|
33
|
+
"Saskatchewan",
|
34
|
+
"Alberta",
|
35
|
+
"British Columbia",
|
36
|
+
"Nova Skotia",
|
37
|
+
"Newfoundland"
|
38
|
+
]
|
39
|
+
self.provinces = ["Quebec", "Manitoba", "Alberta"]
|
40
|
+
end
|
41
|
+
|
42
|
+
def reset_provinces
|
43
|
+
self.provinces = ["Quebec", "Manitoba", "Alberta"]
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
class HelloListMultiSelection
|
48
|
+
include Glimmer
|
49
|
+
|
50
|
+
def launch
|
51
|
+
person = Person.new
|
52
|
+
|
53
|
+
root {
|
54
|
+
title 'Hello, List Multi Selection!'
|
55
|
+
|
56
|
+
list {
|
57
|
+
selection bind(person, :provinces)
|
58
|
+
}
|
59
|
+
|
60
|
+
button {
|
61
|
+
text "Reset Selection To Defaults"
|
62
|
+
|
63
|
+
command { person.reset_provinces }
|
64
|
+
}
|
65
|
+
}.open
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
HelloListMultiSelection.new.launch
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Copyright (c) 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
|
+
|
22
|
+
require 'glimmer-dsl-tk'
|
23
|
+
|
24
|
+
class Person
|
25
|
+
attr_accessor :country, :country_options
|
26
|
+
|
27
|
+
def initialize
|
28
|
+
self.country_options=["", "Canada", "US", "Mexico"]
|
29
|
+
self.country = "Canada"
|
30
|
+
end
|
31
|
+
|
32
|
+
def reset_country
|
33
|
+
self.country = "Canada"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
class HelloListSingleSelection
|
38
|
+
include Glimmer
|
39
|
+
|
40
|
+
def launch
|
41
|
+
person = Person.new
|
42
|
+
|
43
|
+
root {
|
44
|
+
title 'Hello, List Single Selection!'
|
45
|
+
|
46
|
+
list {
|
47
|
+
selectmode 'browse'
|
48
|
+
selection bind(person, :country)
|
49
|
+
}
|
50
|
+
|
51
|
+
button {
|
52
|
+
text "Reset Selection To Default Value"
|
53
|
+
|
54
|
+
command { person.reset_country }
|
55
|
+
}
|
56
|
+
}.open
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
HelloListSingleSelection.new.launch
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Copyright (c) 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
|
+
|
22
|
+
require 'glimmer-dsl-tk'
|
23
|
+
|
24
|
+
class HelloTab
|
25
|
+
include Glimmer
|
26
|
+
|
27
|
+
def launch
|
28
|
+
root {
|
29
|
+
title 'Hello, Tab!'
|
30
|
+
|
31
|
+
notebook {
|
32
|
+
frame(text: 'English') {
|
33
|
+
label {
|
34
|
+
text 'Hello, World!'
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
frame(text: 'French') {
|
39
|
+
label {
|
40
|
+
text 'Bonjour, Univers!'
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}.open
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
HelloTab.new.launch
|
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.6
|
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-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glimmer
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.3
|
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: 0.10.
|
26
|
+
version: 0.10.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: tk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.3.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:
|
40
|
+
version: 0.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
type: :
|
47
|
+
version: 3.5.0
|
48
|
+
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 3.5.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rdoc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
type: :
|
61
|
+
version: '3.12'
|
62
|
+
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '3.12'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
76
|
-
type: :
|
75
|
+
version: '1.0'
|
76
|
+
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.
|
82
|
+
version: '1.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: jeweler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
- - "<"
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 3.0.0
|
93
|
-
type: :
|
93
|
+
type: :development
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
@@ -101,158 +101,79 @@ dependencies:
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 3.0.0
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - ">="
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 2.3.0
|
110
|
-
- - "<"
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 3.0.0
|
113
|
-
type: :runtime
|
114
|
-
prerelease: false
|
115
|
-
version_requirements: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: 2.3.0
|
120
|
-
- - "<"
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: 3.0.0
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: os
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: 1.0.0
|
130
|
-
- - "<"
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: 2.0.0
|
133
|
-
type: :runtime
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: 1.0.0
|
140
|
-
- - "<"
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: 2.0.0
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
|
-
name: rake
|
145
|
-
requirement: !ruby/object:Gem::Requirement
|
146
|
-
requirements:
|
147
|
-
- - ">="
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: 10.1.0
|
150
|
-
- - "<"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 14.0.0
|
153
|
-
type: :runtime
|
154
|
-
prerelease: false
|
155
|
-
version_requirements: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 10.1.0
|
160
|
-
- - "<"
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version: 14.0.0
|
163
|
-
- !ruby/object:Gem::Dependency
|
164
|
-
name: text-table
|
104
|
+
name: rake-tui
|
165
105
|
requirement: !ruby/object:Gem::Requirement
|
166
106
|
requirements:
|
167
107
|
- - ">="
|
168
108
|
- !ruby/object:Gem::Version
|
169
|
-
version:
|
170
|
-
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: 2.0.0
|
173
|
-
type: :runtime
|
109
|
+
version: 0.2.1
|
110
|
+
type: :development
|
174
111
|
prerelease: false
|
175
112
|
version_requirements: !ruby/object:Gem::Requirement
|
176
113
|
requirements:
|
177
114
|
- - ">="
|
178
115
|
- !ruby/object:Gem::Version
|
179
|
-
version:
|
180
|
-
- - "<"
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
version: 2.0.0
|
116
|
+
version: 0.2.1
|
183
117
|
- !ruby/object:Gem::Dependency
|
184
|
-
name:
|
118
|
+
name: puts_debuggerer
|
185
119
|
requirement: !ruby/object:Gem::Requirement
|
186
120
|
requirements:
|
187
121
|
- - "~>"
|
188
122
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.
|
190
|
-
type: :
|
123
|
+
version: 0.10.0
|
124
|
+
type: :development
|
191
125
|
prerelease: false
|
192
126
|
version_requirements: !ruby/object:Gem::Requirement
|
193
127
|
requirements:
|
194
128
|
- - "~>"
|
195
129
|
- !ruby/object:Gem::Version
|
196
|
-
version: 0.
|
130
|
+
version: 0.10.0
|
197
131
|
- !ruby/object:Gem::Dependency
|
198
|
-
name:
|
132
|
+
name: coveralls
|
199
133
|
requirement: !ruby/object:Gem::Requirement
|
200
134
|
requirements:
|
201
|
-
- -
|
135
|
+
- - '='
|
202
136
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
137
|
+
version: 0.8.23
|
204
138
|
type: :development
|
205
139
|
prerelease: false
|
206
140
|
version_requirements: !ruby/object:Gem::Requirement
|
207
141
|
requirements:
|
208
|
-
- -
|
142
|
+
- - '='
|
209
143
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
144
|
+
version: 0.8.23
|
211
145
|
- !ruby/object:Gem::Dependency
|
212
|
-
name:
|
146
|
+
name: simplecov
|
213
147
|
requirement: !ruby/object:Gem::Requirement
|
214
148
|
requirements:
|
215
149
|
- - "~>"
|
216
150
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
151
|
+
version: 0.16.1
|
218
152
|
type: :development
|
219
153
|
prerelease: false
|
220
154
|
version_requirements: !ruby/object:Gem::Requirement
|
221
155
|
requirements:
|
222
156
|
- - "~>"
|
223
157
|
- !ruby/object:Gem::Version
|
224
|
-
version:
|
158
|
+
version: 0.16.1
|
225
159
|
- !ruby/object:Gem::Dependency
|
226
|
-
name:
|
160
|
+
name: simplecov-lcov
|
227
161
|
requirement: !ruby/object:Gem::Requirement
|
228
162
|
requirements:
|
229
|
-
- - "
|
230
|
-
- !ruby/object:Gem::Version
|
231
|
-
version: '1.0'
|
232
|
-
type: :development
|
233
|
-
prerelease: false
|
234
|
-
version_requirements: !ruby/object:Gem::Requirement
|
235
|
-
requirements:
|
236
|
-
- - ">="
|
237
|
-
- !ruby/object:Gem::Version
|
238
|
-
version: '1.0'
|
239
|
-
- !ruby/object:Gem::Dependency
|
240
|
-
name: simplecov
|
241
|
-
requirement: !ruby/object:Gem::Requirement
|
242
|
-
requirements:
|
243
|
-
- - ">="
|
163
|
+
- - "~>"
|
244
164
|
- !ruby/object:Gem::Version
|
245
|
-
version:
|
165
|
+
version: 0.7.0
|
246
166
|
type: :development
|
247
167
|
prerelease: false
|
248
168
|
version_requirements: !ruby/object:Gem::Requirement
|
249
169
|
requirements:
|
250
|
-
- - "
|
170
|
+
- - "~>"
|
251
171
|
- !ruby/object:Gem::Version
|
252
|
-
version:
|
253
|
-
description: Glimmer DSL for
|
172
|
+
version: 0.7.0
|
173
|
+
description: Glimmer DSL for Tk (Ruby Desktop GUI)
|
254
174
|
email: andy.am@gmail.com
|
255
|
-
executables:
|
175
|
+
executables:
|
176
|
+
- girb
|
256
177
|
extensions: []
|
257
178
|
extra_rdoc_files:
|
258
179
|
- CHANGELOG.md
|
@@ -263,13 +184,33 @@ files:
|
|
263
184
|
- LICENSE.txt
|
264
185
|
- README.md
|
265
186
|
- VERSION
|
187
|
+
- bin/girb
|
188
|
+
- bin/girb_runner.rb
|
266
189
|
- lib/glimmer-dsl-tk.rb
|
190
|
+
- lib/glimmer/data_binding/tk/list_selection_binding.rb
|
191
|
+
- lib/glimmer/data_binding/tk/widget_binding.rb
|
267
192
|
- lib/glimmer/dsl/tk/attribute_expression.rb
|
193
|
+
- lib/glimmer/dsl/tk/bind_expression.rb
|
194
|
+
- lib/glimmer/dsl/tk/block_attribute_expression.rb
|
195
|
+
- lib/glimmer/dsl/tk/data_binding_expression.rb
|
268
196
|
- lib/glimmer/dsl/tk/dsl.rb
|
197
|
+
- lib/glimmer/dsl/tk/list_selection_data_binding_expression.rb
|
269
198
|
- lib/glimmer/dsl/tk/root_expression.rb
|
270
199
|
- lib/glimmer/dsl/tk/widget_expression.rb
|
200
|
+
- lib/glimmer/tk/button_proxy.rb
|
201
|
+
- lib/glimmer/tk/entry_proxy.rb
|
202
|
+
- lib/glimmer/tk/frame_proxy.rb
|
203
|
+
- lib/glimmer/tk/label_proxy.rb
|
204
|
+
- lib/glimmer/tk/list_proxy.rb
|
205
|
+
- lib/glimmer/tk/notebook_proxy.rb
|
271
206
|
- lib/glimmer/tk/root_proxy.rb
|
272
207
|
- lib/glimmer/tk/widget_proxy.rb
|
208
|
+
- samples/hello/hello_combo.rb
|
209
|
+
- samples/hello/hello_computed.rb
|
210
|
+
- samples/hello/hello_computed/contact.rb
|
211
|
+
- samples/hello/hello_list_multi_selection.rb
|
212
|
+
- samples/hello/hello_list_single_selection.rb
|
213
|
+
- samples/hello/hello_tab.rb
|
273
214
|
- samples/hello/hello_world.rb
|
274
215
|
homepage: http://github.com/AndyObtiva/glimmer-dsl-tk
|
275
216
|
licenses:
|
@@ -290,8 +231,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
231
|
- !ruby/object:Gem::Version
|
291
232
|
version: '0'
|
292
233
|
requirements: []
|
293
|
-
rubygems_version: 3.1.
|
234
|
+
rubygems_version: 3.1.4
|
294
235
|
signing_key:
|
295
236
|
specification_version: 4
|
296
|
-
summary: Glimmer DSL for
|
237
|
+
summary: Glimmer DSL for Tk
|
297
238
|
test_files: []
|