stringio 3.1.2 → 3.1.6

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS.md +45 -0
  3. data/ext/stringio/stringio.c +4 -1
  4. metadata +5 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89f7a19f0a8689e3fa7ceae8a0139eab614a14f64f2d1f5831c0d012d3b49dac
4
- data.tar.gz: 71b2022cc337d594566c0dfcb215bc1f3d4949747c97ffb984ea0613f67d58aa
3
+ metadata.gz: 144b6bb8aaa29ad8b3447e979841af712093bdfe19623f26d46a595740541da6
4
+ data.tar.gz: a0936d98e00b6dec96769e8189b564fee83d922a7d7f2787fa58b15e648ff22f
5
5
  SHA512:
6
- metadata.gz: e6aa9ba1567fe2ea15f973a81ef8ae215be4ea7b88013dd9a4d9e8cbd8d1d0381dd70980ffb049d8b4283e0b1e6e586ef840618c8f129f1182c71bfa95847824
7
- data.tar.gz: ed2fd455cbe0f072ef020f2b6a114ae192a8a86509cebcb927fb4c7b9754551bdda8519ebc7aa21b6cbf2b3c0cab4170e5017c0468ad4431ea4b9eaf9c473825
6
+ metadata.gz: 3c49d46b584a010121a0c20a176a1e389178f8e53810d9898107c28154116519caf8883d68339a69a580b684f236854c36eecd4562182bf1724e67d951351a05
7
+ data.tar.gz: 69189970d83c1093020071a1c86c7eb60067b06e0500b112aa55c82ad97a95ad4ba66ce7f08c018ae58312a662a9cc55de59129c5d6ebcad93c2ec9c5927ed98
data/NEWS.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # News
2
2
 
3
+ ## 3.1.6 - 2025-03-25
4
+
5
+ ### Fixes
6
+
7
+ * CRuby: Fix SEGV at unget to a null device StringIO
8
+ * JRuby:
9
+ * Fix NullPointerException at unget to a null device StringIO
10
+ * Use proper checkEncoding signature
11
+ * Update strioWrite logic to match CRuby
12
+ * GH-124
13
+
14
+ ## 3.1.5 - 2025-02-21
15
+
16
+ ### Improvements
17
+
18
+ * JRuby: Improved compatibility with CRuby for `StringIO#seek` with
19
+ frozen string.
20
+ * GH-119
21
+ * GH-121
22
+
23
+ ## 3.1.4 - 2025-02-20
24
+
25
+ ### Improvements
26
+
27
+ * JRuby: Improved compatibility with CRuby.
28
+ * GH-116
29
+
30
+ ### Fixes
31
+
32
+ * CRuby: Fixed a bug that `StringIO` may mutate a shared string.
33
+ * GH-117
34
+
35
+ ## 3.1.3 - 2025-02-14
36
+
37
+ ### Fixes
38
+
39
+ * JRuby: Fixed a bug that JRuby may not be able to be started
40
+ * GH-112
41
+ * GH-113
42
+ * Reported by Karol Bucek
43
+
44
+ ### Thanks
45
+
46
+ * Karol Bucek
47
+
3
48
  ## 3.1.2 - 2024-11-07
4
49
 
5
50
  ### Improvements
@@ -13,7 +13,7 @@
13
13
  **********************************************************************/
14
14
 
15
15
  static const char *const
16
- STRINGIO_VERSION = "3.1.2";
16
+ STRINGIO_VERSION = "3.1.6";
17
17
 
18
18
  #include <stdbool.h>
19
19
 
@@ -180,6 +180,9 @@ check_modifiable(struct StringIO *ptr)
180
180
  else if (OBJ_FROZEN_RAW(ptr->string)) {
181
181
  rb_raise(rb_eIOError, "not modifiable string");
182
182
  }
183
+ else {
184
+ rb_str_modify(ptr->string);
185
+ }
183
186
  }
184
187
 
185
188
  static VALUE
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stringio
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nobu Nakada
8
8
  - Charles Oliver Nutter
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-11-07 00:00:00.000000000 Z
11
+ date: 2025-03-25 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Pseudo `IO` class from/to `String`.
15
14
  email:
@@ -42,8 +41,8 @@ homepage: https://github.com/ruby/stringio
42
41
  licenses:
43
42
  - Ruby
44
43
  - BSD-2-Clause
45
- metadata: {}
46
- post_install_message:
44
+ metadata:
45
+ changelog_uri: https://github.com/ruby/stringio/releases/tag/v3.1.6
47
46
  rdoc_options: []
48
47
  require_paths:
49
48
  - lib
@@ -58,8 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
57
  - !ruby/object:Gem::Version
59
58
  version: '0'
60
59
  requirements: []
61
- rubygems_version: 3.5.22
62
- signing_key:
60
+ rubygems_version: 3.6.2
63
61
  specification_version: 4
64
62
  summary: Pseudo IO on String
65
63
  test_files: []