glimmer-dsl-libui 0.3.5 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +4364 -3406
  4. data/VERSION +1 -1
  5. data/examples/basic_entry.rb +27 -24
  6. data/examples/basic_entry2.rb +31 -0
  7. data/examples/button_counter.rb +27 -0
  8. data/examples/color_the_circles.rb +2 -2
  9. data/examples/form.rb +42 -30
  10. data/examples/form2.rb +37 -0
  11. data/examples/form_table.rb +100 -85
  12. data/examples/form_table2.rb +95 -0
  13. data/examples/login.rb +45 -39
  14. data/examples/login2.rb +55 -0
  15. data/examples/login3.rb +65 -0
  16. data/examples/login4.rb +61 -0
  17. data/examples/login5.rb +43 -0
  18. data/examples/meta_example.rb +10 -7
  19. data/examples/method_based_custom_keyword.rb +8 -15
  20. data/examples/method_based_custom_keyword2.rb +97 -0
  21. data/examples/midi_player.rb +2 -6
  22. data/examples/snake/model/game.rb +2 -2
  23. data/examples/snake/presenter/grid.rb +5 -3
  24. data/examples/snake.rb +11 -21
  25. data/examples/tetris.rb +12 -12
  26. data/examples/tic_tac_toe.rb +3 -12
  27. data/examples/timer.rb +2 -6
  28. data/glimmer-dsl-libui.gemspec +0 -0
  29. data/lib/glimmer/dsl/libui/bind_expression.rb +36 -0
  30. data/lib/glimmer/dsl/libui/data_binding_expression.rb +45 -0
  31. data/lib/glimmer/dsl/libui/dsl.rb +3 -0
  32. data/lib/glimmer/dsl/libui/observe_expression.rb +35 -0
  33. data/lib/glimmer/dsl/libui/shine_data_binding_expression.rb +42 -0
  34. data/lib/glimmer/dsl/libui/string_expression.rb +4 -5
  35. data/lib/glimmer/libui/attributed_string.rb +19 -6
  36. data/lib/glimmer/libui/control_proxy/area_proxy.rb +52 -46
  37. data/lib/glimmer/libui/control_proxy/entry_proxy.rb +5 -0
  38. data/lib/glimmer/libui/control_proxy/image_proxy.rb +4 -5
  39. data/lib/glimmer/libui/control_proxy/multiline_entry_proxy.rb +5 -0
  40. data/lib/glimmer/libui/control_proxy/table_proxy.rb +1 -1
  41. data/lib/glimmer/libui/control_proxy.rb +16 -1
  42. data/lib/glimmer/libui/shape.rb +6 -3
  43. metadata +17 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43de106828bf48e1f04b2257f20ffb4248d5b65401accade19826fdf7cb851af
4
- data.tar.gz: 0247ccd9451013b36972f44e9512337f8a1b275536a8dfc047534c0320720e69
3
+ metadata.gz: '05618c68efbc037c1da16b8644529316d97a8e8d3ac6dba4df8d74eb64264809'
4
+ data.tar.gz: e2b56cf6d20fdd6091d3e2701b731ba34f770d63aaaf1c2eb5ba2f88c75fa914
5
5
  SHA512:
6
- metadata.gz: c429f9ca63a7a4d0e236d9299ca9810454091865e2a22395aa6fe1aaeb0b3637a61fa6bf368f830c60098fe697ee8b54dba68db67ab0593e3d58f7420ffa9503
7
- data.tar.gz: 11f519d6473637baa392f65478f86e60c6643bf782738bd680a35739cf94b236f981c349c60451ac69b2531ed51f1b9b88b0c326a065ac71b608c16f7095d9d1
6
+ metadata.gz: 7c62fb459566fc5c0dd428696809ae1a451e64beec43aa0fcc4c577ec976797000b7cef484bb6614f7019441de197bac75e5ed6ffeb6b8cae500b6db60e3e964
7
+ data.tar.gz: 702b6218d118543c7dbdfa825452dd59f469d0f9cd0aa8bbded05d04d44479c2bfb0e89d9cddce710052239c92d9f4efd932eab45f3acbf9ca627ec654786427
data/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.4.3
4
+
5
+ - Support `entry` `text` bidirectional data-binding
6
+ - Support `search_entry` `text` property bidirectional data-binding (with `<=>` sign)
7
+ - Support `multiline_entry` `text` property bidirectional data-binding (with `<=>` sign)
8
+ - Support `non_wrapping_multiline_entry` `text` property bidirectional data-binding (with `<=>` sign)
9
+ - Improve examples/basic_entry.rb with bidirectional data-binding for `entry` `text`
10
+ - Improve examples/form.rb with bidirectional data-binding for `entry` `text`
11
+ - Improve examples/form_table.rb with bidirectional data-binding for `entry` `text`
12
+ - Improve examples/login.rb with bidirectional data-binding for `entry` `text`
13
+ - Improve examples/method_based_custom_keyword.rb with bidirectional data-binding for `entry` `text`
14
+ - Improve examples/meta_example.rb with bidirectional data-binding for `non_wrapping_multiline_entry` `text`
15
+
16
+ ## 0.4.2
17
+
18
+ - examples/button_counter.rb (takes advantage of unidirectional data-binding)
19
+ - Ensure that upon re-opening `#content {}` of `area`, `path`, shapes, `image`, `table`, `text`, and general controls, `post_add_content` initialization is prevented from running multiple times where inappropriate.
20
+ - Document `LibUI` API methods
21
+ - Fix issue with examples/meta_example.rb showing more versions in counts than available
22
+
23
+ ## 0.4.1
24
+
25
+ - Document `observe` keyword
26
+ - Document unidirectional data-binding in more detail (like `:before_read`, `:on_read`, and `:after_read` options)
27
+ - Simplify examples/tetris.rb with `observe` keyword
28
+ - Simplify examples/method_based_custom_keyword.rb with `observe` keyword
29
+ - Simplify examples/color_the_circles.rb with `observe` keyword
30
+ - Simplify examples/snake.rb with `observe` keyword
31
+
32
+ ## 0.4.0
33
+
34
+ - Upgrade to LibUI 0.0.13
35
+ - Support general control/shape/attributed_string property unidirectional data-binding (with `<=` sign or `<=>`)
36
+ - Support `observe` DSL keyword for simple model observation outside of GUI (e.g. `observe(model, attribute) { do_something }` )
37
+ - Simplify examples/snake.rb with data-binding and make smaller (20x20) to be more challenging and fun
38
+ - Simplify examples/tic_tac_toe.rb with data-binding
39
+ - Fix issue with `Shape#redraw` method calling `AreaProxy#auto_redraw` instead of `AreaProxy#redraw`
40
+
3
41
  ## 0.3.5
4
42
 
5
43
  - Fixed Area Gallery example (all versions) after a recent refactoring broke it