glimmer-dsl-libui 0.12.6 → 0.12.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.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +23 -21
  5. data/VERSION +1 -1
  6. data/bin/girb +1 -1
  7. data/bin/girb_runner.rb +1 -1
  8. data/bin/glimmer +1 -1
  9. data/docs/examples/GLIMMER-DSL-LIBUI-ADVANCED-EXAMPLES.md +1 -1
  10. data/examples/snake/model/game.rb +12 -12
  11. data/examples/tetris/model/block.rb +1 -1
  12. data/examples/tetris/model/game.rb +1 -1
  13. data/examples/tetris/model/past_game.rb +1 -1
  14. data/examples/tetris/model/tetromino.rb +1 -1
  15. data/examples/tetris.rb +1 -1
  16. data/examples/tic_tac_toe/board.rb +1 -1
  17. data/examples/tic_tac_toe/cell.rb +1 -1
  18. data/glimmer-dsl-libui.gemspec +0 -0
  19. data/lib/glimmer/dsl/libui/bind_expression.rb +1 -1
  20. data/lib/glimmer/dsl/libui/content_expression.rb +1 -1
  21. data/lib/glimmer/dsl/libui/control_expression.rb +1 -1
  22. data/lib/glimmer/dsl/libui/custom_control_expression.rb +1 -1
  23. data/lib/glimmer/dsl/libui/custom_control_slot_content_expression.rb +1 -1
  24. data/lib/glimmer/dsl/libui/custom_shape_expression.rb +1 -1
  25. data/lib/glimmer/dsl/libui/data_binding_expression.rb +1 -1
  26. data/lib/glimmer/dsl/libui/dsl.rb +1 -1
  27. data/lib/glimmer/dsl/libui/file_expression.rb +1 -1
  28. data/lib/glimmer/dsl/libui/listener_expression.rb +1 -1
  29. data/lib/glimmer/dsl/libui/observe_expression.rb +1 -1
  30. data/lib/glimmer/dsl/libui/open_file_expression.rb +1 -1
  31. data/lib/glimmer/dsl/libui/open_folder_expression.rb +1 -1
  32. data/lib/glimmer/dsl/libui/operation_expression.rb +1 -1
  33. data/lib/glimmer/dsl/libui/property_expression.rb +1 -1
  34. data/lib/glimmer/dsl/libui/save_file_expression.rb +1 -1
  35. data/lib/glimmer/dsl/libui/shape_expression.rb +1 -1
  36. data/lib/glimmer/dsl/libui/shine_data_binding_expression.rb +1 -1
  37. data/lib/glimmer/dsl/libui/string_expression.rb +1 -1
  38. data/lib/glimmer/dsl/libui/tab_item_expression.rb +1 -1
  39. data/lib/glimmer/fiddle_consumer.rb +1 -1
  40. data/lib/glimmer/libui/attributed_string.rb +1 -1
  41. data/lib/glimmer/libui/control_proxy/area_proxy/scrolling_area_proxy.rb +1 -1
  42. data/lib/glimmer/libui/control_proxy/area_proxy.rb +1 -1
  43. data/lib/glimmer/libui/control_proxy/box/horizontal_box_proxy.rb +1 -1
  44. data/lib/glimmer/libui/control_proxy/box/vertical_box_proxy.rb +1 -1
  45. data/lib/glimmer/libui/control_proxy/box.rb +1 -1
  46. data/lib/glimmer/libui/control_proxy/button_proxy.rb +1 -1
  47. data/lib/glimmer/libui/control_proxy/checkbox_proxy.rb +1 -1
  48. data/lib/glimmer/libui/control_proxy/color_button_proxy.rb +1 -1
  49. data/lib/glimmer/libui/control_proxy/column/background_color_column_proxy.rb +1 -1
  50. data/lib/glimmer/libui/control_proxy/column/button_column_proxy.rb +1 -1
  51. data/lib/glimmer/libui/control_proxy/column/checkbox_column_proxy.rb +1 -1
  52. data/lib/glimmer/libui/control_proxy/column/checkbox_text_color_column_proxy.rb +1 -1
  53. data/lib/glimmer/libui/control_proxy/column/checkbox_text_column_proxy.rb +1 -1
  54. data/lib/glimmer/libui/control_proxy/column/image_column_proxy.rb +1 -1
  55. data/lib/glimmer/libui/control_proxy/column/image_text_color_column_proxy.rb +1 -1
  56. data/lib/glimmer/libui/control_proxy/column/image_text_column_proxy.rb +1 -1
  57. data/lib/glimmer/libui/control_proxy/column/progress_bar_column_proxy.rb +1 -1
  58. data/lib/glimmer/libui/control_proxy/column/text_color_column_proxy.rb +1 -1
  59. data/lib/glimmer/libui/control_proxy/column/text_column_proxy.rb +1 -1
  60. data/lib/glimmer/libui/control_proxy/column.rb +1 -1
  61. data/lib/glimmer/libui/control_proxy/combobox_proxy.rb +1 -1
  62. data/lib/glimmer/libui/control_proxy/date_time_picker_proxy/date_picker_proxy.rb +1 -1
  63. data/lib/glimmer/libui/control_proxy/date_time_picker_proxy/time_picker_proxy.rb +1 -1
  64. data/lib/glimmer/libui/control_proxy/date_time_picker_proxy.rb +1 -1
  65. data/lib/glimmer/libui/control_proxy/dual_column.rb +1 -1
  66. data/lib/glimmer/libui/control_proxy/editable_column.rb +1 -1
  67. data/lib/glimmer/libui/control_proxy/editable_combobox_proxy.rb +1 -1
  68. data/lib/glimmer/libui/control_proxy/enableable_column.rb +1 -1
  69. data/lib/glimmer/libui/control_proxy/entry_proxy/password_entry_proxy.rb +1 -1
  70. data/lib/glimmer/libui/control_proxy/entry_proxy/search_entry_proxy.rb +1 -1
  71. data/lib/glimmer/libui/control_proxy/entry_proxy.rb +1 -1
  72. data/lib/glimmer/libui/control_proxy/font_button_proxy.rb +1 -1
  73. data/lib/glimmer/libui/control_proxy/form_proxy.rb +1 -1
  74. data/lib/glimmer/libui/control_proxy/grid_proxy.rb +1 -1
  75. data/lib/glimmer/libui/control_proxy/group_proxy.rb +1 -1
  76. data/lib/glimmer/libui/control_proxy/image_part_proxy.rb +1 -1
  77. data/lib/glimmer/libui/control_proxy/image_proxy.rb +1 -1
  78. data/lib/glimmer/libui/control_proxy/label_proxy.rb +1 -1
  79. data/lib/glimmer/libui/control_proxy/matrix_proxy.rb +1 -1
  80. data/lib/glimmer/libui/control_proxy/menu_item_proxy/about_menu_item_proxy.rb +1 -1
  81. data/lib/glimmer/libui/control_proxy/menu_item_proxy/check_menu_item_proxy.rb +1 -1
  82. data/lib/glimmer/libui/control_proxy/menu_item_proxy/preferences_menu_item_proxy.rb +1 -1
  83. data/lib/glimmer/libui/control_proxy/menu_item_proxy/quit_menu_item_proxy.rb +1 -1
  84. data/lib/glimmer/libui/control_proxy/menu_item_proxy/radio_menu_item_proxy.rb +1 -1
  85. data/lib/glimmer/libui/control_proxy/menu_item_proxy/separator_menu_item_proxy.rb +1 -1
  86. data/lib/glimmer/libui/control_proxy/menu_item_proxy.rb +1 -1
  87. data/lib/glimmer/libui/control_proxy/menu_proxy.rb +1 -1
  88. data/lib/glimmer/libui/control_proxy/message_box/msg_box_error_proxy.rb +1 -1
  89. data/lib/glimmer/libui/control_proxy/message_box/msg_box_proxy.rb +1 -1
  90. data/lib/glimmer/libui/control_proxy/message_box.rb +1 -1
  91. data/lib/glimmer/libui/control_proxy/multiline_entry_proxy/non_wrapping_multiline_entry_proxy.rb +1 -1
  92. data/lib/glimmer/libui/control_proxy/multiline_entry_proxy.rb +1 -1
  93. data/lib/glimmer/libui/control_proxy/open_type_features_proxy.rb +1 -1
  94. data/lib/glimmer/libui/control_proxy/open_type_tag_proxy.rb +1 -1
  95. data/lib/glimmer/libui/control_proxy/path_proxy.rb +1 -1
  96. data/lib/glimmer/libui/control_proxy/radio_buttons_proxy.rb +1 -1
  97. data/lib/glimmer/libui/control_proxy/slider_proxy.rb +1 -1
  98. data/lib/glimmer/libui/control_proxy/spinbox_proxy.rb +1 -1
  99. data/lib/glimmer/libui/control_proxy/tab_item_proxy.rb +1 -1
  100. data/lib/glimmer/libui/control_proxy/table_proxy.rb +1 -1
  101. data/lib/glimmer/libui/control_proxy/text_proxy.rb +1 -1
  102. data/lib/glimmer/libui/control_proxy/transformable.rb +1 -1
  103. data/lib/glimmer/libui/control_proxy/triple_column.rb +1 -1
  104. data/lib/glimmer/libui/control_proxy/window_proxy.rb +1 -1
  105. data/lib/glimmer/libui/control_proxy.rb +1 -1
  106. data/lib/glimmer/libui/custom_control/code_area.rb +1 -1
  107. data/lib/glimmer/libui/custom_control/code_entry.rb +1 -1
  108. data/lib/glimmer/libui/custom_control/refined_table.rb +2 -2
  109. data/lib/glimmer/libui/custom_control.rb +1 -1
  110. data/lib/glimmer/libui/custom_shape.rb +1 -1
  111. data/lib/glimmer/libui/custom_window.rb +1 -1
  112. data/lib/glimmer/libui/data_bindable.rb +1 -1
  113. data/lib/glimmer/libui/parent.rb +1 -1
  114. data/lib/glimmer/libui/shape/arc.rb +1 -1
  115. data/lib/glimmer/libui/shape/bezier.rb +1 -1
  116. data/lib/glimmer/libui/shape/circle.rb +1 -1
  117. data/lib/glimmer/libui/shape/figure.rb +1 -1
  118. data/lib/glimmer/libui/shape/line.rb +1 -1
  119. data/lib/glimmer/libui/shape/polybezier.rb +1 -1
  120. data/lib/glimmer/libui/shape/polygon.rb +1 -1
  121. data/lib/glimmer/libui/shape/polyline.rb +1 -1
  122. data/lib/glimmer/libui/shape/rectangle.rb +1 -1
  123. data/lib/glimmer/libui/shape/square.rb +1 -1
  124. data/lib/glimmer/libui/shape.rb +1 -1
  125. data/lib/glimmer/libui.rb +1 -1
  126. data/lib/glimmer/rake_task/package.rb +1 -1
  127. data/lib/glimmer/rake_task/scaffold.rb +10 -6
  128. data/lib/glimmer/rake_task.rb +1 -1
  129. data/lib/glimmer-dsl-libui.rb +1 -1
  130. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b904f97a0c6ac0f1ab428f1e000325a9ddfee1dfdd5a4d5be71592039ed0c2e0
4
- data.tar.gz: 7479c1ca847c105939752122ab0fa8a6319f14e9c68a38ab7a241dbec5947a38
3
+ metadata.gz: f05c17af8a9c7188911ef270e4f2ea7880b2f8db99f7f6eb95a566cc640a9cbd
4
+ data.tar.gz: e33c187107d619b3a59f3009dbe232ea79cb3da8ddf4ce59f480abebd25727cc
5
5
  SHA512:
6
- metadata.gz: 0a0ca4e301ce0a7edc45af0fb66933ca397c6b653af49688fd86276bb205d90e930a27949abf09e499fc92e66685baa26780a02565059ff26d43fd74a1605fdd
7
- data.tar.gz: 02ee7881c7ef54310b5c7a977a63f4fb03ec57f481c7b0c5659846e916e5846e659061a2de66815f69ffa88d2c58f6dc2e332568e07f1d080dace48eb3598e53
6
+ metadata.gz: 67f64ec9bd98928547a399bc3e2d29a338c9b6fa648b58985ddb1249ad01f3a0540194310541b3eba571caa43ca9e795897886c437cf214264d33f06e7d2b094
7
+ data.tar.gz: 00e2ca7c876929dde0b653f27be812d8e4426e2b2ce560141883758ca324559cab32e6b47c464fad6b8eb5e31f73a3206d85cf436a4c61ad0e5f976e86adafc7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.12.8
4
+
5
+ - Fix issue with refined_table crashing when filtering by a specific column (e.g. name:john) and column is not found
6
+ - Fix broken spec/examples/snake/model/game_spec.rb due to method being made private incorrectly
7
+
8
+ ## 0.12.7
9
+
10
+ - Application Scaffolding now generates the main view as `SomeNameApplication` (with `_application` suffix in file name) to indicate clearly it is a `Glimmer::LibUI::Application` class.
11
+ - Application Scaffolding now generates a `presenter` directory for convenience in case presenters are needed.
12
+
3
13
  ## 0.12.6
4
14
 
5
15
  - Shape Content Data-Binding
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2021-2024 Andy Maleh
1
+ Copyright (c) 2021-2025 Andy Maleh
2
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
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for LibUI 0.12.6
1
+ # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for LibUI 0.12.8
2
2
  ## Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library ([Fukuoka Award Winning](http://www.digitalfukuoka.jp/topics/187?locale=ja))
3
3
  ### The Quickest Way From Zero To GUI
4
4
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-libui.svg)](http://badge.fury.io/rb/glimmer-dsl-libui)
@@ -8,6 +8,8 @@
8
8
 
9
9
  (**[Fukuoka Ruby Award Competition 2022 Special Award Winner](https://andymaleh.blogspot.com/2022/02/glimmer-dsl-for-libui-wins-fukuoka-ruby.html)** [[Award Announcement]](http://www.digitalfukuoka.jp/topics/187?locale=ja))
10
10
 
11
+ (**[***RubyConf 2024 Workshop - How To Build Basic Desktop Applications in Ruby***](https://www.youtube.com/watch?v=TTSqRdTVtDY)**)
12
+
11
13
  (**[***RubyConf 2023 Workshop - How To Build Desktop Applications in Ruby***](https://github.com/AndyObtiva/how-to-build-desktop-applications-in-ruby)**)
12
14
 
13
15
  (**[***RubyConf 2022 Talk - Building Native GUI Apps in Ruby***](https://andymaleh.blogspot.com/2023/02/rubyconf-2022-talk-video-for-building.html)**)
@@ -464,7 +466,7 @@ gem install glimmer-dsl-libui
464
466
  Or install via Bundler `Gemfile`:
465
467
 
466
468
  ```ruby
467
- gem 'glimmer-dsl-libui', '~> 0.12.6'
469
+ gem 'glimmer-dsl-libui', '~> 0.12.8'
468
470
  ```
469
471
 
470
472
  Test that installation worked by running the [Glimmer Meta-Example](#examples):
@@ -790,7 +792,7 @@ hello_world
790
792
  When you are in a scaffolded application, you can scaffold a new [custom control](#custom-components) (a control that you can put anything in to represent a view concept in your application) by running this command:
791
793
 
792
794
  ```
793
- glimmer scaffold:customcontrol[name,namespace]
795
+ glimmer "scaffold:customcontrol[name,namespace]"
794
796
  ```
795
797
 
796
798
  The `name` represents the [custom control](#custom-components) view class name (it can be underscored, and Glimmer will automatically classify it).
@@ -800,13 +802,13 @@ The `namespace` is optional and represents the module that the [custom control](
800
802
  You can also use the shorter `cc` alias for `customcontrol`:
801
803
 
802
804
  ```
803
- glimmer scaffold:cc[name,namespace]
805
+ glimmer "scaffold:cc[name,namespace]"
804
806
  ```
805
807
 
806
808
  For example by running this command under a `hello_world` application:
807
809
 
808
810
  ```
809
- glimmer scaffold:cc[model_form]
811
+ glimmer "scaffold:cc[model_form]"
810
812
  ```
811
813
 
812
814
  That will generate this class under `app/hello_world/view/model_form`:
@@ -880,7 +882,7 @@ window {
880
882
  Here is an example that generates a [custom control](#custom-components) with a namespace:
881
883
 
882
884
  ```
883
- glimmer scaffold:cc[model_form,common]
885
+ glimmer "scaffold:cc[model_form,common]"
884
886
  ```
885
887
 
886
888
  That will generate this class under `app/common/view/model_form`:
@@ -980,7 +982,7 @@ A custom window is a specialization of a custom control that has a `window` as i
980
982
  When you are in a scaffolded application, you can scaffold a new custom window (a window that you can put anything in to represent a view concept in your application) by running this command:
981
983
 
982
984
  ```
983
- glimmer scaffold:customwindow[name,namespace]
985
+ glimmer "scaffold:customwindow[name,namespace]"
984
986
  ```
985
987
 
986
988
  The `name` represents the custom window view class name (it can be underscored, and Glimmer will automatically classify it).
@@ -990,13 +992,13 @@ The `namespace` is optional and represents the module that the custom window vie
990
992
  You can also use the shorter `cw` alias for `customwindow`:
991
993
 
992
994
  ```
993
- glimmer scaffold:cw[name,namespace]
995
+ glimmer "scaffold:cw[name,namespace]"
994
996
  ```
995
997
 
996
998
  For example by running this command under a `hello_world` application:
997
999
 
998
1000
  ```
999
- glimmer scaffold:cw[greeting_window]
1001
+ glimmer "scaffold:cw[greeting_window]"
1000
1002
  ```
1001
1003
 
1002
1004
  That will generate this class under `app/hello_world/view/greeting_window`:
@@ -1057,7 +1059,7 @@ greeting_window.show
1057
1059
  Here is an example that generates a custom window with a namespace:
1058
1060
 
1059
1061
  ```
1060
- glimmer scaffold:cw[train,station]
1062
+ glimmer "scaffold:cw[train,station]"
1061
1063
  ```
1062
1064
 
1063
1065
  That will generate this class under `app/station/view/train`:
@@ -1132,7 +1134,7 @@ hello_world__view__train.show
1132
1134
  When you are in a scaffolded application, you can scaffold a new [custom shape](#custom-components) (a shape that you can put anything in to represent a view concept in your application) by running this command:
1133
1135
 
1134
1136
  ```
1135
- glimmer scaffold:customshape[name,namespace]
1137
+ glimmer "scaffold:customshape[name,namespace]"
1136
1138
  ```
1137
1139
 
1138
1140
  The `name` represents the [custom shape](#custom-components) view class name (it can be underscored, and Glimmer will automatically classify it).
@@ -1142,13 +1144,13 @@ The `namespace` is optional and represents the module that the [custom shape](#c
1142
1144
  You can also use the shorter `cs` alias for `customshape`:
1143
1145
 
1144
1146
  ```
1145
- glimmer scaffold:cs[name,namespace]
1147
+ glimmer "scaffold:cs[name,namespace]"
1146
1148
  ```
1147
1149
 
1148
1150
  For example by running this command under a `hello_world` application:
1149
1151
 
1150
1152
  ```
1151
- glimmer scaffold:cs[heart]
1153
+ glimmer "scaffold:cs[heart]"
1152
1154
  ```
1153
1155
 
1154
1156
  That will generate this class under `app/hello_world/view/heart`:
@@ -1233,7 +1235,7 @@ window {
1233
1235
  Here is an example that generates a [custom shape](#custom-components) with a namespace:
1234
1236
 
1235
1237
  ```
1236
- glimmer scaffold:cs[heart,acme]
1238
+ glimmer "scaffold:cs[heart,acme]"
1237
1239
  ```
1238
1240
 
1239
1241
  That will generate this class under `app/acme/view/heart`:
@@ -1330,7 +1332,7 @@ window {
1330
1332
  You can scaffold a Ruby gem around a reusable [custom control](#custom-components) to expose publicly and make available for multiple projects by running this command:
1331
1333
 
1332
1334
  ```
1333
- glimmer scaffold:gem:customcontrol[name,namespace]
1335
+ glimmer "scaffold:gem:customcontrol[name,namespace]"
1334
1336
  ```
1335
1337
 
1336
1338
  That will generate a [custom control](#custom-components) gem project under the naming convention: `glimmer-libui-cc-name-namespace`
@@ -1344,7 +1346,7 @@ The `namespace` is needed to avoid clashing with other [custom control](#custom-
1344
1346
  Here is a shorter alias for the [custom control](#custom-components) gem scaffolding command:
1345
1347
 
1346
1348
  ```
1347
- glimmer scaffold:gem:cc[name,namespace]
1349
+ glimmer "scaffold:gem:cc[name,namespace]"
1348
1350
  ```
1349
1351
 
1350
1352
  You can package the newly scaffolded project as a Ruby gem by running this command:
@@ -1398,7 +1400,7 @@ A custom window is a specialization of a custom control that has a `window` as i
1398
1400
  You can scaffold a Ruby gem around a reusable custom window to expose publicly and make available for multiple projects by running this command:
1399
1401
 
1400
1402
  ```
1401
- glimmer scaffold:gem:customwindow[name,namespace]
1403
+ glimmer "scaffold:gem:customwindow[name,namespace]"
1402
1404
  ```
1403
1405
 
1404
1406
  That will generate a custom window gem project under the naming convention: `glimmer-libui-cw-name-namespace`
@@ -1412,7 +1414,7 @@ The `namespace` is needed to avoid clashing with other custom window gems that o
1412
1414
  Here is a shorter alias for the custom window gem scaffolding command:
1413
1415
 
1414
1416
  ```
1415
- glimmer scaffold:gem:cw[name,namespace]
1417
+ glimmer "scaffold:gem:cw[name,namespace]"
1416
1418
  ```
1417
1419
 
1418
1420
  You can package the newly scaffolded project as a Ruby gem by running this command:
@@ -1458,7 +1460,7 @@ greeter.show
1458
1460
  You can scaffold a Ruby gem around a reusable [custom shape](#custom-components) to expose publicly and make available for multiple projects by running this command:
1459
1461
 
1460
1462
  ```
1461
- glimmer scaffold:gem:customshape[name,namespace]
1463
+ glimmer "scaffold:gem:customshape[name,namespace]"
1462
1464
  ```
1463
1465
 
1464
1466
  That will generate a [custom shape](#custom-components) gem project under the naming convention: `glimmer-libui-cc-name-namespace`
@@ -1472,7 +1474,7 @@ The `namespace` is needed to avoid clashing with other [custom shape](#custom-co
1472
1474
  Here is a shorter alias for the [custom shape](#custom-components) gem scaffolding command:
1473
1475
 
1474
1476
  ```
1475
- glimmer scaffold:gem:cs[name,namespace]
1477
+ glimmer "scaffold:gem:cs[name,namespace]"
1476
1478
  ```
1477
1479
 
1478
1480
  You can package the newly scaffolded project as a Ruby gem by running this command:
@@ -4599,7 +4601,7 @@ Note that the latest development sometimes takes place in the [development](http
4599
4601
 
4600
4602
  [MIT](LICENSE.txt)
4601
4603
 
4602
- Copyright (c) 2021-2024 Andy Maleh
4604
+ Copyright (c) 2021-2025 Andy Maleh
4603
4605
 
4604
4606
  --
4605
4607
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.6
1
+ 0.12.8
data/bin/girb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2021-2024 Andy Maleh
3
+ # Copyright (c) 2021-2025 Andy Maleh
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining
6
6
  # a copy of this software and associated documentation files (the
data/bin/girb_runner.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
data/bin/glimmer CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2021-2024 Andy Maleh
3
+ # Copyright (c) 2021-2025 Andy Maleh
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining
6
6
  # a copy of this software and associated documentation files (the
@@ -2916,7 +2916,7 @@ class Tetris
2916
2916
 
2917
2917
  def show_about_dialog
2918
2918
  Glimmer::LibUI.queue_main do
2919
- msg_box('About', 'Glimmer Tetris - Glimmer DSL for LibUI Example - Copyright (c) 2021-2024 Andy Maleh')
2919
+ msg_box('About', 'Glimmer Tetris - Glimmer DSL for LibUI Example - Copyright (c) 2021-2025 Andy Maleh')
2920
2920
  end
2921
2921
  end
2922
2922
  end
@@ -24,18 +24,6 @@ class Snake
24
24
  @high_score = File.read(FILE_HIGH_SCORE).to_i rescue 0
25
25
  end
26
26
 
27
- def score=(new_score)
28
- @score = new_score
29
- self.high_score = @score if @score > @high_score
30
- end
31
-
32
- def high_score=(new_high_score)
33
- @high_score = new_high_score
34
- File.write(FILE_HIGH_SCORE, @high_score.to_s)
35
- rescue => e
36
- puts e.full_message
37
- end
38
-
39
27
  def start
40
28
  self.over = false
41
29
  self.score = 0
@@ -63,6 +51,18 @@ class Snake
63
51
  def inspect
64
52
  "#{super[0, 75]}... >"
65
53
  end
54
+
55
+ def score=(new_score)
56
+ @score = new_score
57
+ self.high_score = @score if @score > @high_score
58
+ end
59
+
60
+ def high_score=(new_high_score)
61
+ @high_score = new_high_score
62
+ File.write(FILE_HIGH_SCORE, @high_score.to_s)
63
+ rescue => e
64
+ puts e.full_message
65
+ end
66
66
  end
67
67
  end
68
68
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
data/examples/tetris.rb CHANGED
@@ -396,7 +396,7 @@ class Tetris
396
396
 
397
397
  def show_about_dialog
398
398
  Glimmer::LibUI.queue_main do
399
- msg_box('About', 'Glimmer Tetris - Glimmer DSL for LibUI Example - Copyright (c) 2021-2024 Andy Maleh')
399
+ msg_box('About', 'Glimmer Tetris - Glimmer DSL for LibUI Example - Copyright (c) 2021-2025 Andy Maleh')
400
400
  end
401
401
  end
402
402
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
Binary file
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2021-2024 Andy Maleh
1
+ # Copyright (c) 2021-2025 Andy Maleh
2
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