ratatui_ruby 0.10.0 → 0.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85b40cc89f8710bfc5ef356cbec12d29ed27d86bc900ad1f1a52795e95a0fcf0
4
- data.tar.gz: e13aad32fdc6a644cb8b608279af690a0046a0c130e04d40e5f6ca21cfd8eaff
3
+ metadata.gz: 5e12255e203dd3005db171f1c2062095644a5602b3384a1a820252f84f926abe
4
+ data.tar.gz: eefb8e9f9e5c4549eff00c36c4789ab7e13dbb508f7fb3edae86977eacdc17f5
5
5
  SHA512:
6
- metadata.gz: 82955407e8f3df33109527392bc82168b0527b3325c799beffeb13551bf42926b582dcbe1798abc5ed47c7c645846a6b64669c8b83de75e85f8b142c7f14b43f
7
- data.tar.gz: d48b7871e77d537c2fb22d8b49b616f570d6f33da024b904c81aed8e5e471d59c332d42fcf060a21ba22c6b832bc2465cda8d8e9774455ff44b3e9440927b9dc
6
+ metadata.gz: 5cb1c1695d98e23db66e938e2f8525d148d2a0076520312d62f17aacfe437c116b35477dc9c670b8e0a452831ca2e6a34684feac38d928a988430f49795f4534
7
+ data.tar.gz: e3c222831be6b4812f41bfbffe15024508a587769df0cbf5f1b5a65f7ac19c0010dbab7ffcafe7d669c41817a6bb2475d2437522d587f13f8f79c07338d6ba9d
data/.builds/ruby-3.2.yml CHANGED
@@ -16,7 +16,7 @@ packages:
16
16
  - clang
17
17
  - git
18
18
  artifacts:
19
- - ratatui_ruby/pkg/ratatui_ruby-0.10.0.gem
19
+ - ratatui_ruby/pkg/ratatui_ruby-0.10.1.gem
20
20
  sources:
21
21
  - https://git.sr.ht/~kerrick/ratatui_ruby
22
22
  tasks:
data/.builds/ruby-3.3.yml CHANGED
@@ -16,7 +16,7 @@ packages:
16
16
  - clang
17
17
  - git
18
18
  artifacts:
19
- - ratatui_ruby/pkg/ratatui_ruby-0.10.0.gem
19
+ - ratatui_ruby/pkg/ratatui_ruby-0.10.1.gem
20
20
  sources:
21
21
  - https://git.sr.ht/~kerrick/ratatui_ruby
22
22
  tasks:
data/.builds/ruby-3.4.yml CHANGED
@@ -16,7 +16,7 @@ packages:
16
16
  - clang
17
17
  - git
18
18
  artifacts:
19
- - ratatui_ruby/pkg/ratatui_ruby-0.10.0.gem
19
+ - ratatui_ruby/pkg/ratatui_ruby-0.10.1.gem
20
20
  sources:
21
21
  - https://git.sr.ht/~kerrick/ratatui_ruby
22
22
  tasks:
@@ -16,7 +16,7 @@ packages:
16
16
  - clang
17
17
  - git
18
18
  artifacts:
19
- - ratatui_ruby/pkg/ratatui_ruby-0.10.0.gem
19
+ - ratatui_ruby/pkg/ratatui_ruby-0.10.1.gem
20
20
  sources:
21
21
  - https://git.sr.ht/~kerrick/ratatui_ruby
22
22
  tasks:
data/CHANGELOG.md CHANGED
@@ -18,6 +18,18 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
18
18
 
19
19
  ### Removed
20
20
 
21
+ ## [0.10.1] - 2026-01-11
22
+
23
+ ### Added
24
+
25
+ ### Changed
26
+
27
+ ### Fixed
28
+
29
+ - **poll_event Return Type**: Fixed `poll_event` incorrectly returning `nil` for unknown event types. The method now correctly returns `Event::None` as per its contract.
30
+
31
+ ### Removed
32
+
21
33
  ## [0.10.0] - 2026-01-10
22
34
 
23
35
  ### Added
@@ -612,6 +624,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
612
624
  - **Testing Support**: Included `RatatuiRuby::TestHelper` and RSpec integration to make testing your TUI applications possible.
613
625
 
614
626
  [Unreleased]: https://git.sr.ht/~kerrick/ratatui_ruby/refs/HEAD
627
+ [0.10.1]: https://git.sr.ht/~kerrick/ratatui_ruby/refs/v0.10.1
628
+ [0.10.1]: https://git.sr.ht/~kerrick/ratatui_ruby/refs/v0.10.1
629
+ [0.10.1]: https://git.sr.ht/~kerrick/ratatui_ruby/refs/v0.10.1
615
630
  [0.10.0]: https://git.sr.ht/~kerrick/ratatui_ruby/refs/v0.10.0
616
631
  [0.9.1]: https://git.sr.ht/~kerrick/ratatui_ruby/refs/v0.9.1
617
632
  [0.9.0]: https://git.sr.ht/~kerrick/ratatui_ruby/refs/v0.9.0
data/README.md CHANGED
@@ -27,6 +27,23 @@ Mailing List: Announcements](https://img.shields.io/badge/mailing_list-announcem
27
27
 
28
28
  Please join the **announce** mailing list at https://lists.sr.ht/~kerrick/ratatui_ruby-announce to stay up-to-date on new releases and announcements. See the [`trunk` branch](https://git.sr.ht/~kerrick/ratatui_ruby/tree/trunk) for pre-release updates.
29
29
 
30
+ ---
31
+
32
+ ## Quick Links
33
+
34
+ ### The Ecosystem
35
+
36
+ **RatatuiRuby:** [Core engine](https://git.sr.ht/~kerrick/ratatui_ruby) • **Tea:** [MVU architecture](https://git.sr.ht/~kerrick/ratatui_ruby-tea) • **Kit:** [Component architecture](https://git.sr.ht/~kerrick/ratatui_ruby-kit) (Planned) • **DSL:** [Glimmer syntax](https://sr.ht/~kerrick/ratatui_ruby/#chapter-4-the-syntax) (Planned) • **Framework:** [Omakase framework](https://git.sr.ht/~kerrick/ratatui_ruby-framework) (Planned) • **UI:** [Polished widgets](https://git.sr.ht/~kerrick/ratatui_ruby-ui) (Planned) • **UI Pro:** [More polished widgets](https://sr.ht/~kerrick/ratatui_ruby#chapter-6-licensing) (Planned)
37
+
38
+ ### For App Developers
39
+
40
+ **Get Started:** [Quickstart](https://git.sr.ht/~kerrick/ratatui_ruby/tree/stable/item/doc/getting_started/quickstart.md) • [Examples](https://git.sr.ht/~kerrick/ratatui_ruby/tree/stable/item/examples) ⸺ **Stay Informed:** [Announce List](https://lists.sr.ht/~kerrick/ratatui_ruby-announce) • [FAQ](https://man.sr.ht/~kerrick/ratatui_ruby/troubleshooting.md) ⸺ **Reach Out:** [Discuss List](https://lists.sr.ht/~kerrick/ratatui_ruby-discuss) • [Bug Tracker](https://todo.sr.ht/~kerrick/ratatui_ruby)
41
+
42
+ ### For Contributors
43
+
44
+ **Get Started:** [Contributing Guide](https://man.sr.ht/~kerrick/ratatui_ruby/contributing.md) • [Code of Conduct](https://man.sr.ht/~kerrick/ratatui_ruby/code_of_conduct.md) ⸺ **Stay Informed:** [Announce List](https://lists.sr.ht/~kerrick/ratatui_ruby-announce) • [Project History](https://man.sr.ht/~kerrick/ratatui_ruby/history/index.md) ⸺ **Reach Out:** [Development List](https://lists.sr.ht/~kerrick/ratatui_ruby-devel) • [Bug Tracker](https://todo.sr.ht/~kerrick/ratatui_ruby)
45
+
46
+ ---
30
47
 
31
48
  ## Compatibility
32
49
 
@@ -1059,7 +1059,7 @@ dependencies = [
1059
1059
 
1060
1060
  [[package]]
1061
1061
  name = "ratatui_ruby"
1062
- version = "0.10.0"
1062
+ version = "0.10.1"
1063
1063
  dependencies = [
1064
1064
  "bumpalo",
1065
1065
  "lazy_static",
@@ -3,7 +3,7 @@
3
3
 
4
4
  [package]
5
5
  name = "ratatui_ruby"
6
- version = "0.10.0"
6
+ version = "0.10.1"
7
7
  edition = "2021"
8
8
 
9
9
  [lib]
@@ -8,5 +8,5 @@
8
8
  module RatatuiRuby
9
9
  # The version of the ratatui_ruby gem.
10
10
  # See https://semver.org/spec/v2.0.0.html
11
- VERSION = "0.10.0"
11
+ VERSION = "0.10.1"
12
12
  end
data/lib/ratatui_ruby.rb CHANGED
@@ -387,8 +387,8 @@ module RatatuiRuby
387
387
  when :focus_lost
388
388
  Event::FocusLost.new.freeze
389
389
  else
390
- # Fallback for unknown events, though ideally we cover them all
391
- nil
390
+ # Return None for unknown event types
391
+ Event::None.new.freeze
392
392
  end
393
393
  end
394
394
 
@@ -47,7 +47,7 @@ module RatatuiRuby
47
47
  | () { (Frame) -> void } -> void
48
48
  # untyped: FFI boundary - Rust returns dynamic event hash with varying keys per event type
49
49
  def self._poll_event: (Float?) -> Hash[Symbol, untyped]?
50
- def self.poll_event: (?timeout: Float?) -> Event?
50
+ def self.poll_event: (?timeout: Float?) -> Event
51
51
  def self.inject_test_event: ("key", { code: String, ?modifiers: Array[String], ?kind: Event::key_kind }) -> void
52
52
  | ("mouse", { kind: String, x: Integer, y: Integer, ?button: String, ?modifiers: Array[String] }) -> void
53
53
  | ("resize", { width: Integer, height: Integer }) -> void
@@ -12,7 +12,7 @@ module RatatuiRuby
12
12
  module Core
13
13
  def draw: (?widget? tree) -> void
14
14
  | () { (Frame) -> void } -> void
15
- def poll_event: (?timeout: Float) -> Event?
15
+ def poll_event: (?timeout: Float) -> Event
16
16
  def get_cell_at: (Integer x, Integer y) -> Buffer::Cell
17
17
  def draw_cell: (Integer x, Integer y, Buffer::Cell cell) -> Draw::CellCmd
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratatui_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerrick Long