shoes 4.0.0.pre11 → 4.0.0.pre12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/bin/shoes-stub +8 -0
  3. data/lib/shoes/samples.rb +8 -0
  4. data/samples/README +122 -0
  5. data/samples/avatar.png +0 -0
  6. data/samples/blue-box.png +0 -0
  7. data/samples/class-book.yaml +387 -0
  8. data/samples/class_book.rb +46 -0
  9. data/samples/cy.png +0 -0
  10. data/samples/expert_definr.rb +24 -0
  11. data/samples/expert_funnies.rb +60 -0
  12. data/samples/expert_game_of_life.rb +224 -0
  13. data/samples/expert_irb.rb +109 -0
  14. data/samples/expert_minesweeper.rb +272 -0
  15. data/samples/expert_othello.rb +323 -0
  16. data/samples/expert_pong.rb +69 -0
  17. data/samples/expert_snake.rb +88 -0
  18. data/samples/expert_tankspank.rb +425 -0
  19. data/samples/expert_tetris.rb +322 -0
  20. data/samples/good_arc.rb +51 -0
  21. data/samples/good_bounce.rb +34 -0
  22. data/samples/good_clock.rb +55 -0
  23. data/samples/good_displace.rb +99 -0
  24. data/samples/good_follow.rb +27 -0
  25. data/samples/good_image_dl.rb +13 -0
  26. data/samples/good_potato_chopping.rb +23 -0
  27. data/samples/good_psychidelic_circles.rb +73 -0
  28. data/samples/good_reminder.rb +163 -0
  29. data/samples/good_vjot.rb +65 -0
  30. data/samples/lib/require_me.rb +6 -0
  31. data/samples/loogink.png +0 -0
  32. data/samples/menu-corner1.png +0 -0
  33. data/samples/menu-corner2.png +0 -0
  34. data/samples/menu-gray.png +0 -0
  35. data/samples/menu-left.png +0 -0
  36. data/samples/menu-right.png +0 -0
  37. data/samples/menu-top.png +0 -0
  38. data/samples/nks_booklist.rb +25 -0
  39. data/samples/nks_breadsticks.rb +8 -0
  40. data/samples/nks_dancing_circle.rb +14 -0
  41. data/samples/nks_dictionary.rb +24 -0
  42. data/samples/nks_edit_box.rb +5 -0
  43. data/samples/nks_edit_line.rb +7 -0
  44. data/samples/nks_notes.rb +16 -0
  45. data/samples/nks_poem.rb +23 -0
  46. data/samples/nks_self.rb +7 -0
  47. data/samples/nks_text_sizes.rb +11 -0
  48. data/samples/nks_trurl.rb +6 -0
  49. data/samples/potato_chopping/1258_s001.gif +0 -0
  50. data/samples/potato_chopping/1258_s002.gif +0 -0
  51. data/samples/potato_chopping/1258_s003.gif +0 -0
  52. data/samples/potato_chopping/1258_s004.gif +0 -0
  53. data/samples/potato_chopping/1258_s005.gif +0 -0
  54. data/samples/potato_chopping/1258_s006.gif +0 -0
  55. data/samples/potato_chopping/1258_s007.gif +0 -0
  56. data/samples/potato_chopping/1258_s008.gif +0 -0
  57. data/samples/potato_chopping/1258_s009.gif +0 -0
  58. data/samples/potato_chopping/1258_s010.gif +0 -0
  59. data/samples/potato_chopping/1258_s011.gif +0 -0
  60. data/samples/potato_chopping/1258_s012.gif +0 -0
  61. data/samples/potato_chopping/1258_s013.gif +0 -0
  62. data/samples/potato_chopping/1258_s014.gif +0 -0
  63. data/samples/potato_chopping/1258_s015.gif +0 -0
  64. data/samples/potato_chopping/1258_s016.gif +0 -0
  65. data/samples/potato_chopping/1258_s017.gif +0 -0
  66. data/samples/potato_chopping/1258_s018.gif +0 -0
  67. data/samples/potato_chopping/1258_s019.gif +0 -0
  68. data/samples/potato_chopping/1258_s020.gif +0 -0
  69. data/samples/potato_chopping/1258_s021.gif +0 -0
  70. data/samples/potato_chopping/1258_s022.gif +0 -0
  71. data/samples/potato_chopping/1258_s023.gif +0 -0
  72. data/samples/potato_chopping/1258_s024.gif +0 -0
  73. data/samples/potato_chopping/1258_s025.gif +0 -0
  74. data/samples/potato_chopping/1258_s026.gif +0 -0
  75. data/samples/potato_chopping/1258_s027.gif +0 -0
  76. data/samples/potato_chopping/1258_s028.gif +0 -0
  77. data/samples/potato_chopping/1258_s029.gif +0 -0
  78. data/samples/potato_chopping/1258_s030.gif +0 -0
  79. data/samples/potato_chopping/1258_s031.gif +0 -0
  80. data/samples/potato_chopping/1258_s032.gif +0 -0
  81. data/samples/potato_chopping/1258_s033.gif +0 -0
  82. data/samples/potato_chopping/1258_s034.gif +0 -0
  83. data/samples/potato_chopping/1258_s035.gif +0 -0
  84. data/samples/potato_chopping/1258_s036.gif +0 -0
  85. data/samples/potato_chopping/1258_s037.gif +0 -0
  86. data/samples/potato_chopping/1258_s038.gif +0 -0
  87. data/samples/potato_chopping/1258_s039.gif +0 -0
  88. data/samples/potato_chopping/1258_s040.gif +0 -0
  89. data/samples/potato_chopping/1258_s041.gif +0 -0
  90. data/samples/potato_chopping/1258_s042.gif +0 -0
  91. data/samples/potato_chopping/1258_s043.gif +0 -0
  92. data/samples/potato_chopping/1258_s044.gif +0 -0
  93. data/samples/potato_chopping/1258_s045.gif +0 -0
  94. data/samples/potato_chopping/1258_s046.gif +0 -0
  95. data/samples/potato_chopping/1258_s047.gif +0 -0
  96. data/samples/potato_chopping/1258_s048.gif +0 -0
  97. data/samples/potato_chopping/1258_s049.gif +0 -0
  98. data/samples/potato_chopping/1258_s050.gif +0 -0
  99. data/samples/potato_chopping/1258_s051.gif +0 -0
  100. data/samples/potato_chopping/1258_s052.gif +0 -0
  101. data/samples/potato_chopping/1258_s053.gif +0 -0
  102. data/samples/potato_chopping/1258_s054.gif +0 -0
  103. data/samples/potato_chopping/1258_s055.gif +0 -0
  104. data/samples/potato_chopping/1258_s056.gif +0 -0
  105. data/samples/potato_chopping/1258_s057.gif +0 -0
  106. data/samples/potato_chopping/1258_s058.gif +0 -0
  107. data/samples/potato_chopping/1258_s059.gif +0 -0
  108. data/samples/red-box.png +0 -0
  109. data/samples/shape_arc_to.rb +10 -0
  110. data/samples/simple-form.shy +0 -0
  111. data/samples/simple_accordion.rb +98 -0
  112. data/samples/simple_alert.rb +10 -0
  113. data/samples/simple_altered_para.rb +11 -0
  114. data/samples/simple_anim_shapes.rb +18 -0
  115. data/samples/simple_anim_text.rb +14 -0
  116. data/samples/simple_animate.rb +12 -0
  117. data/samples/simple_arc.rb +25 -0
  118. data/samples/simple_attach.rb +26 -0
  119. data/samples/simple_border_image.rb +9 -0
  120. data/samples/simple_borderless.rb +4 -0
  121. data/samples/simple_bounce.rb +27 -0
  122. data/samples/simple_breadsticks.rb +11 -0
  123. data/samples/simple_breadsticks2.rb +11 -0
  124. data/samples/simple_brightness_transitions.rb +16 -0
  125. data/samples/simple_button_animate.rb +17 -0
  126. data/samples/simple_buttons.rb +4 -0
  127. data/samples/simple_calc.rb +67 -0
  128. data/samples/simple_calc_2.rb +49 -0
  129. data/samples/simple_clipboard.rb +17 -0
  130. data/samples/simple_color_selector.rb +11 -0
  131. data/samples/simple_color_transitions.rb +12 -0
  132. data/samples/simple_concentric_circles.rb +9 -0
  133. data/samples/simple_console.rb +12 -0
  134. data/samples/simple_control_sizes.rb +25 -0
  135. data/samples/simple_count_and_draw.rb +19 -0
  136. data/samples/simple_curve.rb +34 -0
  137. data/samples/simple_dialogs.rb +33 -0
  138. data/samples/simple_dialogs_outside.rb +17 -0
  139. data/samples/simple_displace.rb +16 -0
  140. data/samples/simple_downloader.rb +29 -0
  141. data/samples/simple_draw.rb +16 -0
  142. data/samples/simple_editor.rb +30 -0
  143. data/samples/simple_face.rb +15 -0
  144. data/samples/simple_flashing.rb +22 -0
  145. data/samples/simple_flow_wrap.rb +12 -0
  146. data/samples/simple_font.rb +18 -0
  147. data/samples/simple_form.rb +30 -0
  148. data/samples/simple_fullscreen.rb +5 -0
  149. data/samples/simple_gradient_shapes.rb +23 -0
  150. data/samples/simple_guess_game.rb +30 -0
  151. data/samples/simple_image_as_stroke.rb +22 -0
  152. data/samples/simple_image_fill.rb +13 -0
  153. data/samples/simple_image_stroke.rb +13 -0
  154. data/samples/simple_info.rb +10 -0
  155. data/samples/simple_iterated_content.rb +8 -0
  156. data/samples/simple_keypress.rb +15 -0
  157. data/samples/simple_logo_display.rb +15 -0
  158. data/samples/simple_loogink_cy.rb +33 -0
  159. data/samples/simple_lorem_ipsum.rb +19 -0
  160. data/samples/simple_manual.rb +5 -0
  161. data/samples/simple_menu.rb +42 -0
  162. data/samples/simple_mouse_follow.rb +9 -0
  163. data/samples/simple_oval.rb +6 -0
  164. data/samples/simple_polygon_line.rb +19 -0
  165. data/samples/simple_position_as_we_go.rb +10 -0
  166. data/samples/simple_progress_bar.rb +15 -0
  167. data/samples/simple_random_bubbles.rb +15 -0
  168. data/samples/simple_require.rb +9 -0
  169. data/samples/simple_sample_executor.rb +7 -0
  170. data/samples/simple_sample_executor_all.rb +14 -0
  171. data/samples/simple_sesame_street_shoes.rb +6 -0
  172. data/samples/simple_shoes_intro.rb +22 -0
  173. data/samples/simple_slide.rb +57 -0
  174. data/samples/simple_stack_flow_buttons.rb +16 -0
  175. data/samples/simple_stripes.rb +9 -0
  176. data/samples/simple_system_background.rb +5 -0
  177. data/samples/simple_text_movement.rb +8 -0
  178. data/samples/simple_tictactoe.rb +224 -0
  179. data/samples/simple_timer.rb +16 -0
  180. data/samples/simple_translate.rb +10 -0
  181. data/samples/simple_visibility.rb +20 -0
  182. metadata +186 -7
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+ Shoes.app height: 150, width: 250 do
3
+ background rgb(240, 250, 208)
4
+ stack margin: 10 do
5
+ button "Start" do
6
+ @time = Time.now
7
+ @label.replace "Stop watch started at #{@time}"
8
+ end
9
+
10
+ button "Stop" do
11
+ @label.replace "Stopped, ", strong((Time.now - @time).to_s), " seconds elapsed."
12
+ end
13
+
14
+ @label = para "Press ", strong("start"), " to begin timing."
15
+ end
16
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+ Shoes.app do
3
+ para "The following art elements would have shown in the top corner if not for translate!", center: true, size: 20
4
+
5
+ translate 100, 100
6
+ rect 0, 0, 100, 100, fill: blue
7
+
8
+ translate 200, 200
9
+ oval 0, 0, 100, 100, fill: green
10
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+ Shoes.app do
3
+ slot = stack do
4
+ background lightsteelblue
5
+ para 'Some content'
6
+ button 'Hello' do
7
+ alert 'hi there'
8
+ end
9
+ end
10
+
11
+ button 'Show' do
12
+ slot.show
13
+ end
14
+ button 'Hide' do
15
+ slot.hide
16
+ end
17
+ button 'Toggle' do
18
+ slot.toggle
19
+ end
20
+ end
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoes
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.pre11
4
+ version: 4.0.0.pre12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Shoes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-21 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 4.0.0.pre11
18
+ version: 4.0.0.pre12
19
19
  name: shoes-core
20
20
  prerelease: false
21
21
  type: :runtime
@@ -23,13 +23,13 @@ dependencies:
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0.pre11
26
+ version: 4.0.0.pre12
27
27
  - !ruby/object:Gem::Dependency
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - '='
31
31
  - !ruby/object:Gem::Version
32
- version: 4.0.0.pre11
32
+ version: 4.0.0.pre12
33
33
  name: shoes-swt
34
34
  prerelease: false
35
35
  type: :runtime
@@ -37,7 +37,7 @@ dependencies:
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.0.0.pre11
40
+ version: 4.0.0.pre12
41
41
  - !ruby/object:Gem::Dependency
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
@@ -74,6 +74,185 @@ files:
74
74
  - ext/install/Rakefile
75
75
  - ext/install/shoes.bat
76
76
  - lib/rubygems_plugin.rb
77
+ - lib/shoes/samples.rb
78
+ - samples/README
79
+ - samples/avatar.png
80
+ - samples/blue-box.png
81
+ - samples/class-book.yaml
82
+ - samples/class_book.rb
83
+ - samples/cy.png
84
+ - samples/expert_definr.rb
85
+ - samples/expert_funnies.rb
86
+ - samples/expert_game_of_life.rb
87
+ - samples/expert_irb.rb
88
+ - samples/expert_minesweeper.rb
89
+ - samples/expert_othello.rb
90
+ - samples/expert_pong.rb
91
+ - samples/expert_snake.rb
92
+ - samples/expert_tankspank.rb
93
+ - samples/expert_tetris.rb
94
+ - samples/good_arc.rb
95
+ - samples/good_bounce.rb
96
+ - samples/good_clock.rb
97
+ - samples/good_displace.rb
98
+ - samples/good_follow.rb
99
+ - samples/good_image_dl.rb
100
+ - samples/good_potato_chopping.rb
101
+ - samples/good_psychidelic_circles.rb
102
+ - samples/good_reminder.rb
103
+ - samples/good_vjot.rb
104
+ - samples/lib/require_me.rb
105
+ - samples/loogink.png
106
+ - samples/menu-corner1.png
107
+ - samples/menu-corner2.png
108
+ - samples/menu-gray.png
109
+ - samples/menu-left.png
110
+ - samples/menu-right.png
111
+ - samples/menu-top.png
112
+ - samples/nks_booklist.rb
113
+ - samples/nks_breadsticks.rb
114
+ - samples/nks_dancing_circle.rb
115
+ - samples/nks_dictionary.rb
116
+ - samples/nks_edit_box.rb
117
+ - samples/nks_edit_line.rb
118
+ - samples/nks_notes.rb
119
+ - samples/nks_poem.rb
120
+ - samples/nks_self.rb
121
+ - samples/nks_text_sizes.rb
122
+ - samples/nks_trurl.rb
123
+ - samples/potato_chopping/1258_s001.gif
124
+ - samples/potato_chopping/1258_s002.gif
125
+ - samples/potato_chopping/1258_s003.gif
126
+ - samples/potato_chopping/1258_s004.gif
127
+ - samples/potato_chopping/1258_s005.gif
128
+ - samples/potato_chopping/1258_s006.gif
129
+ - samples/potato_chopping/1258_s007.gif
130
+ - samples/potato_chopping/1258_s008.gif
131
+ - samples/potato_chopping/1258_s009.gif
132
+ - samples/potato_chopping/1258_s010.gif
133
+ - samples/potato_chopping/1258_s011.gif
134
+ - samples/potato_chopping/1258_s012.gif
135
+ - samples/potato_chopping/1258_s013.gif
136
+ - samples/potato_chopping/1258_s014.gif
137
+ - samples/potato_chopping/1258_s015.gif
138
+ - samples/potato_chopping/1258_s016.gif
139
+ - samples/potato_chopping/1258_s017.gif
140
+ - samples/potato_chopping/1258_s018.gif
141
+ - samples/potato_chopping/1258_s019.gif
142
+ - samples/potato_chopping/1258_s020.gif
143
+ - samples/potato_chopping/1258_s021.gif
144
+ - samples/potato_chopping/1258_s022.gif
145
+ - samples/potato_chopping/1258_s023.gif
146
+ - samples/potato_chopping/1258_s024.gif
147
+ - samples/potato_chopping/1258_s025.gif
148
+ - samples/potato_chopping/1258_s026.gif
149
+ - samples/potato_chopping/1258_s027.gif
150
+ - samples/potato_chopping/1258_s028.gif
151
+ - samples/potato_chopping/1258_s029.gif
152
+ - samples/potato_chopping/1258_s030.gif
153
+ - samples/potato_chopping/1258_s031.gif
154
+ - samples/potato_chopping/1258_s032.gif
155
+ - samples/potato_chopping/1258_s033.gif
156
+ - samples/potato_chopping/1258_s034.gif
157
+ - samples/potato_chopping/1258_s035.gif
158
+ - samples/potato_chopping/1258_s036.gif
159
+ - samples/potato_chopping/1258_s037.gif
160
+ - samples/potato_chopping/1258_s038.gif
161
+ - samples/potato_chopping/1258_s039.gif
162
+ - samples/potato_chopping/1258_s040.gif
163
+ - samples/potato_chopping/1258_s041.gif
164
+ - samples/potato_chopping/1258_s042.gif
165
+ - samples/potato_chopping/1258_s043.gif
166
+ - samples/potato_chopping/1258_s044.gif
167
+ - samples/potato_chopping/1258_s045.gif
168
+ - samples/potato_chopping/1258_s046.gif
169
+ - samples/potato_chopping/1258_s047.gif
170
+ - samples/potato_chopping/1258_s048.gif
171
+ - samples/potato_chopping/1258_s049.gif
172
+ - samples/potato_chopping/1258_s050.gif
173
+ - samples/potato_chopping/1258_s051.gif
174
+ - samples/potato_chopping/1258_s052.gif
175
+ - samples/potato_chopping/1258_s053.gif
176
+ - samples/potato_chopping/1258_s054.gif
177
+ - samples/potato_chopping/1258_s055.gif
178
+ - samples/potato_chopping/1258_s056.gif
179
+ - samples/potato_chopping/1258_s057.gif
180
+ - samples/potato_chopping/1258_s058.gif
181
+ - samples/potato_chopping/1258_s059.gif
182
+ - samples/red-box.png
183
+ - samples/shape_arc_to.rb
184
+ - samples/simple-form.shy
185
+ - samples/simple_accordion.rb
186
+ - samples/simple_alert.rb
187
+ - samples/simple_altered_para.rb
188
+ - samples/simple_anim_shapes.rb
189
+ - samples/simple_anim_text.rb
190
+ - samples/simple_animate.rb
191
+ - samples/simple_arc.rb
192
+ - samples/simple_attach.rb
193
+ - samples/simple_border_image.rb
194
+ - samples/simple_borderless.rb
195
+ - samples/simple_bounce.rb
196
+ - samples/simple_breadsticks.rb
197
+ - samples/simple_breadsticks2.rb
198
+ - samples/simple_brightness_transitions.rb
199
+ - samples/simple_button_animate.rb
200
+ - samples/simple_buttons.rb
201
+ - samples/simple_calc.rb
202
+ - samples/simple_calc_2.rb
203
+ - samples/simple_clipboard.rb
204
+ - samples/simple_color_selector.rb
205
+ - samples/simple_color_transitions.rb
206
+ - samples/simple_concentric_circles.rb
207
+ - samples/simple_console.rb
208
+ - samples/simple_control_sizes.rb
209
+ - samples/simple_count_and_draw.rb
210
+ - samples/simple_curve.rb
211
+ - samples/simple_dialogs.rb
212
+ - samples/simple_dialogs_outside.rb
213
+ - samples/simple_displace.rb
214
+ - samples/simple_downloader.rb
215
+ - samples/simple_draw.rb
216
+ - samples/simple_editor.rb
217
+ - samples/simple_face.rb
218
+ - samples/simple_flashing.rb
219
+ - samples/simple_flow_wrap.rb
220
+ - samples/simple_font.rb
221
+ - samples/simple_form.rb
222
+ - samples/simple_fullscreen.rb
223
+ - samples/simple_gradient_shapes.rb
224
+ - samples/simple_guess_game.rb
225
+ - samples/simple_image_as_stroke.rb
226
+ - samples/simple_image_fill.rb
227
+ - samples/simple_image_stroke.rb
228
+ - samples/simple_info.rb
229
+ - samples/simple_iterated_content.rb
230
+ - samples/simple_keypress.rb
231
+ - samples/simple_logo_display.rb
232
+ - samples/simple_loogink_cy.rb
233
+ - samples/simple_lorem_ipsum.rb
234
+ - samples/simple_manual.rb
235
+ - samples/simple_menu.rb
236
+ - samples/simple_mouse_follow.rb
237
+ - samples/simple_oval.rb
238
+ - samples/simple_polygon_line.rb
239
+ - samples/simple_position_as_we_go.rb
240
+ - samples/simple_progress_bar.rb
241
+ - samples/simple_random_bubbles.rb
242
+ - samples/simple_require.rb
243
+ - samples/simple_sample_executor.rb
244
+ - samples/simple_sample_executor_all.rb
245
+ - samples/simple_sesame_street_shoes.rb
246
+ - samples/simple_shoes_intro.rb
247
+ - samples/simple_slide.rb
248
+ - samples/simple_stack_flow_buttons.rb
249
+ - samples/simple_stripes.rb
250
+ - samples/simple_system_background.rb
251
+ - samples/simple_text_movement.rb
252
+ - samples/simple_tictactoe.rb
253
+ - samples/simple_timer.rb
254
+ - samples/simple_translate.rb
255
+ - samples/simple_visibility.rb
77
256
  homepage: https://github.com/shoes/shoes4
78
257
  licenses:
79
258
  - MIT
@@ -94,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
273
  version: 1.3.1
95
274
  requirements: []
96
275
  rubyforge_project:
97
- rubygems_version: 2.6.11
276
+ rubygems_version: 2.6.13
98
277
  signing_key:
99
278
  specification_version: 4
100
279
  summary: Shoes is the best little GUI toolkit for Ruby. Shoes runs on JRuby only for