xot 0.3.7 → 0.3.9

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: 8cc5ed60541fa3ee86c6eec2210bd614ce1c57f61962021f22a779cae98e22b3
4
- data.tar.gz: f1857f64a4750a53f7ae890c3c5b668f02e5cfe7a4095611a97184281d2e5da3
3
+ metadata.gz: 542e0190c871258dcaeecacf936de4181ccc66a72e527e9c998bfc6714d62029
4
+ data.tar.gz: 639a4874658638bfe7b1550b3dceab8965d499487a9cfcf26df981c2ee91ebfa
5
5
  SHA512:
6
- metadata.gz: cda7e24a4978142f25ac13d0c96bb81d85b97fbeffea50fb9bed676f377a4daa47cfe9a2abd1c8f3035622feb45d30137f16cecf5b3fc191a705e23901d87dd2
7
- data.tar.gz: e7a9e2ae5345700370276cba16b11c1ff4fc3f48c6f409037227330758c7de6bff67c7eeba6aa6c2c76150a6da8690252a4875d2a08e8a75e88f3c38fc678a66
6
+ metadata.gz: 432e5c625b94c3d89400abada614c6dede4ddb5282b8c4e32a2e1f08fb1a22218866837b0254f84b9994d82d56b25f929b6bb8dfd27455e6e6ca17b88508208a
7
+ data.tar.gz: 4d7fb96c8190e2aed12572c6e282d6f1c25d5893a76a93b2d1316de9b95440954f13999139d4b385912cb60cdd6acf3bcd5b142779ec0559e392d422c98f2565
data/ChangeLog.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # xot ChangeLog
2
2
 
3
3
 
4
+ ## [v0.3.9] - 2025-07-06
5
+
6
+ - Add deepwiki badge
7
+
8
+
9
+ ## [v0.3.8] - 2025-05-22
10
+
11
+ - Add Xot::range_error()
12
+
13
+
4
14
  ## [v0.3.7] - 2025-05-11
5
15
 
6
16
  - Delete Xot::clip(), and use std::clamp()
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Xot - Some useful utility classes and functions
2
2
 
3
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/xord/xot)
3
4
  ![License](https://img.shields.io/github/license/xord/xot)
4
5
  ![Build Status](https://github.com/xord/xot/actions/workflows/test.yml/badge.svg)
5
6
  ![Gem Version](https://badge.fury.io/rb/xot.svg)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.9
@@ -60,6 +60,10 @@ namespace Xot
60
60
  void index_error (
61
61
  const char* file, int line, const char* format = NULL, ...);
62
62
 
63
+ [[noreturn]]
64
+ void range_error (
65
+ const char* file, int line, const char* format = NULL, ...);
66
+
63
67
  [[noreturn]]
64
68
  void invalid_state_error (
65
69
  const char* file, int line, const char* format = NULL, ...);
data/src/exception.cpp CHANGED
@@ -93,6 +93,13 @@ namespace Xot
93
93
  throw std::out_of_range(error_text(file, line, s));
94
94
  }
95
95
 
96
+ void
97
+ range_error (const char* file, int line, const char* format, ...)
98
+ {
99
+ XOT_STRINGF(format, s);
100
+ throw std::range_error(error_text(file, line, s));
101
+ }
102
+
96
103
  void
97
104
  invalid_state_error (const char* file, int line, const char* format, ...)
98
105
  {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - xordog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-10 00:00:00.000000000 Z
11
+ date: 2025-07-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This library include some useful utility classes and functions for development
14
14
  with C++.