ed-precompiled_stringio 3.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ebd62c1ebd4885910126601a4556d6e77d994e6c0436b6a64ffaf8c2beca3c6b
4
+ data.tar.gz: 38bee8043429617987a945dfeb70c369ef331be507f7c3ee642a08fddad1c4c7
5
+ SHA512:
6
+ metadata.gz: 531a944927bd36367d9993fb9e28ed0aae8347b8f2ef062e69c598c4215105f16c84832595f12b969085e298b6f04893e2b99d63212f09452d8837f79bc2c4fa
7
+ data.tar.gz: a7783383f2269c2eb0ae923cedac3e96021df04f7c900874e52241131b4c085c12d2728d02026b990f25e9b2b152252a96a7756e3800dc7a22b0266aed08007e
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ COPYING
2
+ *.md
3
+ *.txt
4
+ docs/
5
+ ext/stringio/
data/.rdoc_options ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ main_page: README.md
data/COPYING ADDED
@@ -0,0 +1,56 @@
1
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
2
+ You can redistribute it and/or modify it under either the terms of the
3
+ 2-clause BSDL (see the file BSDL), or the conditions below:
4
+
5
+ 1. You may make and give away verbatim copies of the source form of the
6
+ software without restriction, provided that you duplicate all of the
7
+ original copyright notices and associated disclaimers.
8
+
9
+ 2. You may modify your copy of the software in any way, provided that
10
+ you do at least ONE of the following:
11
+
12
+ a. place your modifications in the Public Domain or otherwise
13
+ make them Freely Available, such as by posting said
14
+ modifications to Usenet or an equivalent medium, or by allowing
15
+ the author to include your modifications in the software.
16
+
17
+ b. use the modified software only within your corporation or
18
+ organization.
19
+
20
+ c. give non-standard binaries non-standard names, with
21
+ instructions on where to get the original software distribution.
22
+
23
+ d. make other distribution arrangements with the author.
24
+
25
+ 3. You may distribute the software in object code or binary form,
26
+ provided that you do at least ONE of the following:
27
+
28
+ a. distribute the binaries and library files of the software,
29
+ together with instructions (in the manual page or equivalent)
30
+ on where to get the original distribution.
31
+
32
+ b. accompany the distribution with the machine-readable source of
33
+ the software.
34
+
35
+ c. give non-standard binaries non-standard names, with
36
+ instructions on where to get the original software distribution.
37
+
38
+ d. make other distribution arrangements with the author.
39
+
40
+ 4. You may modify and include the part of the software into any other
41
+ software (possibly commercial). But some files in the distribution
42
+ are not written by the author, so that they are not under these terms.
43
+
44
+ For the list of those files and their copying conditions, see the
45
+ file LEGAL.
46
+
47
+ 5. The scripts and library files supplied as input to or produced as
48
+ output from the software do not automatically fall under the
49
+ copyright of the software, but belong to whomever generated them,
50
+ and may be sold commercially, and may be aggregated with this
51
+ software.
52
+
53
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
54
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
55
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
56
+ PURPOSE.
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions
5
+ are met:
6
+ 1. Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ 2. Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
+ SUCH DAMAGE.
data/NEWS.md ADDED
@@ -0,0 +1,243 @@
1
+ # News
2
+
3
+ ## 3.1.7 - 2025-04-21
4
+
5
+ ### Improvements
6
+
7
+ * CRuby: Added support for `rb_io_mode_t` that will be introduced in
8
+ Ruby 3.5 or later.
9
+ * GH-129
10
+ * Patch by Samuel Williams
11
+
12
+ ### Thanks
13
+
14
+ * Samuel Williams
15
+
16
+ ## 3.1.6 - 2025-03-25
17
+
18
+ ### Fixes
19
+
20
+ * CRuby: Fix SEGV at unget to a null device StringIO
21
+ * JRuby:
22
+ * Fix NullPointerException at unget to a null device StringIO
23
+ * Use proper checkEncoding signature
24
+ * Update strioWrite logic to match CRuby
25
+ * GH-124
26
+
27
+ ## 3.1.5 - 2025-02-21
28
+
29
+ ### Improvements
30
+
31
+ * JRuby: Improved compatibility with CRuby for `StringIO#seek` with
32
+ frozen string.
33
+ * GH-119
34
+ * GH-121
35
+
36
+ ## 3.1.4 - 2025-02-20
37
+
38
+ ### Improvements
39
+
40
+ * JRuby: Improved compatibility with CRuby.
41
+ * GH-116
42
+
43
+ ### Fixes
44
+
45
+ * CRuby: Fixed a bug that `StringIO` may mutate a shared string.
46
+ * GH-117
47
+
48
+ ## 3.1.3 - 2025-02-14
49
+
50
+ ### Fixes
51
+
52
+ * JRuby: Fixed a bug that JRuby may not be able to be started
53
+ * GH-112
54
+ * GH-113
55
+ * Reported by Karol Bucek
56
+
57
+ ### Thanks
58
+
59
+ * Karol Bucek
60
+
61
+ ## 3.1.2 - 2024-11-07
62
+
63
+ ### Improvements
64
+
65
+ * JRuby: Added support for detecting encoding by BOM.
66
+ * GH-100
67
+ * GH-101
68
+
69
+ ### Fixes
70
+
71
+ * CRuby: Fixed a bug that unknown memory may be used by
72
+ `StringIO#ungetc`/`StringIO#ungetbyte`.
73
+ * https://hackerone.com/reports/2805165
74
+ * Reported by manun.
75
+
76
+ ### Thanks
77
+
78
+ * manun
79
+
80
+ ## 3.1.1 - 2024-06-13
81
+
82
+ ### Improvements
83
+
84
+ * JRuby: Improved.
85
+ * GH-83
86
+ * GH-84
87
+ * GH-85
88
+
89
+ * Added `StringIO::MAX_LENGTH`.
90
+
91
+ * Added support for NULL `StringIO` by `StringIO.new(nil)`.
92
+
93
+ * Improved IO compatibility for partial read.
94
+ * GH-95
95
+ * https://bugs.ruby-lang.org/issues/20418
96
+
97
+ ### Fixes
98
+
99
+ * Fixed a bug that coderange isn't updated after overwrite.
100
+ * Reported by Tiago Cardoso.
101
+ * https://bugs.ruby-lang.org/issues/20185
102
+ * GH-77
103
+ * GH-79
104
+
105
+ ### Thanks
106
+
107
+ * Tiago Cardoso
108
+
109
+ ## 3.1.0 - 2023-11-28
110
+
111
+ ### Fixes
112
+
113
+ * TruffleRuby: Do not compile the C extension
114
+
115
+ GH-71
116
+
117
+ ## 3.0.9 - 2023-11-08
118
+
119
+ ### Improvements
120
+
121
+ * JRuby: Aligned `StringIO#gets` behavior with the C implementation.
122
+
123
+ GH-61
124
+
125
+ ### Fixes
126
+
127
+ * CRuby: Fixed `StringIO#pread` with the length 0.
128
+
129
+ Patch by Jean byroot Boussier.
130
+
131
+ GH-67
132
+
133
+ * CRuby: Fixed a bug that `StringIO#gets` with non ASCII compatible
134
+ encoding such as UTF-16 doesn't detect correct new line characters.
135
+
136
+ Reported by IWAMOTO Kouichi.
137
+
138
+ GH-68
139
+
140
+ ### Thanks
141
+
142
+ * Jean byroot Boussier
143
+
144
+ * IWAMOTO Kouichi
145
+
146
+ ## 3.0.8 - 2023-08-10
147
+
148
+ ### Improvements
149
+
150
+ * Added `StringIO#pread`.
151
+
152
+ Patch by Jean byroot Boussier.
153
+
154
+ GH-56
155
+
156
+ * JRuby: Added `StringIO::VERSION`.
157
+
158
+ GH-57 GH-59
159
+
160
+ ### Thanks
161
+
162
+ * Jean byroot Boussier
163
+
164
+ ## 3.0.7 - 2023-06-02
165
+
166
+ * CRuby: Avoid direct struct usage. This change is for supporting
167
+ Ruby 3.3.
168
+
169
+ GH-54
170
+
171
+ ## 3.0.6 - 2023-04-14
172
+
173
+ ### Improvements
174
+
175
+ * CRuby: Added support for write barrier.
176
+
177
+ * JRuby: Added missing arty-checking.
178
+
179
+ GH-48
180
+
181
+ * JRuby: Added support for `StringIO.new(encoding:)`.
182
+
183
+ GH-45
184
+
185
+ ## 3.0.5 - 2023-02-02
186
+
187
+ ### Improvements
188
+
189
+ ### Fixes
190
+
191
+ * Fixed a bug that `StringIO#gets("2+ character", chomp: true)` did not
192
+ remove the separator at the end.
193
+ [[Bug #19389](https://bugs.ruby-lang.org/issues/19389)]
194
+
195
+ ## 3.0.4 - 2022-12-09
196
+
197
+ ### Improvements
198
+
199
+ * JRuby: Changed to use flag registry.
200
+ [[GitHub#33](https://github.com/ruby/stringio/pull/26)]
201
+
202
+ ## 3.0.3 - 2022-12-08
203
+
204
+ ### Improvements
205
+
206
+ * Improved documents.
207
+ [[GitHub#33](https://github.com/ruby/stringio/pull/33)]
208
+ [[GitHub#34](https://github.com/ruby/stringio/pull/34)]
209
+ [[GitHub#35](https://github.com/ruby/stringio/pull/35)]
210
+ [[GitHub#36](https://github.com/ruby/stringio/pull/36)]
211
+ [[GitHub#37](https://github.com/ruby/stringio/pull/37)]
212
+ [Patch by Burdette Lamar]
213
+
214
+ ### Fixes
215
+
216
+ * Fixed a bug that large `StringIO#ungetc`/`StringIO#ungetbyte`
217
+ break internal buffer.
218
+
219
+ * Fixed a bug that `StringIO#each("2+ character", chomp: true)` cause
220
+ infinite loop.
221
+ [[Bug #18769](https://bugs.ruby-lang.org/issues/18769)]
222
+
223
+ * Fixed a bug that `StringIO#each(nil, chomp: true)` chomps.
224
+ [[Bug #18770](https://bugs.ruby-lang.org/issues/18770)]
225
+
226
+ * Fixed a bug that `StringIO#each("", chomp: true)` isn't compatible
227
+ with `IO#each("", chomp: true)`.
228
+ [[Bug #18768](https://bugs.ruby-lang.org/issues/18768)]
229
+
230
+ * Fixed a bug that `StringIO#set_encoding` doesn't accept external
231
+ and internal encodings pairo.
232
+ [[GitHub#16](https://github.com/ruby/stringio/issues/16)]
233
+ [Reported by Kenta Murata]
234
+
235
+ * Fixed a bug that `StringIO#truncate` isn't compatible with
236
+ `File#truncate`.
237
+
238
+ ### Thanks
239
+
240
+ * Kenta Murata
241
+
242
+ * Burdette Lamar
243
+
data/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # StringIO
2
+
3
+ ![ubuntu](https://github.com/ruby/stringio/workflows/ubuntu/badge.svg?branch=master&event=push)
4
+ ![macos](https://github.com/ruby/stringio/workflows/macos/badge.svg?branch=master&event=push)
5
+ ![windows](https://github.com/ruby/stringio/workflows/windows/badge.svg?branch=master&event=push)
6
+
7
+ Pseudo `IO` class from/to `String`.
8
+
9
+ This library is based on MoonWolf version written in Ruby. Thanks a lot.
10
+
11
+ ## Differences to `IO`
12
+
13
+ * `fileno` raises `NotImplementedError`.
14
+ * encoding conversion is not implemented, and ignored silently.
15
+ * there is no `#to_io` method because this is not an `IO`.
16
+
17
+ ## Installation
18
+
19
+ Add this line to your application's Gemfile:
20
+
21
+ ```ruby
22
+ gem 'stringio'
23
+ ```
24
+
25
+ And then execute:
26
+
27
+ $ bundle
28
+
29
+ Or install it yourself as:
30
+
31
+ $ gem install stringio
32
+
33
+ ## Development
34
+
35
+ Run `bundle install` to install dependencies and then `bundle exec rake test` to run the tests.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, author a NEWS.md section, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/stringio.
42
+
43
+ ## License
44
+
45
+ The gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).
data/docs/io.rb ADDED
@@ -0,0 +1,8 @@
1
+ # :stopdoc:
2
+ class IO
3
+ module generic_readable
4
+ end
5
+ module generic_writable
6
+ end
7
+ end
8
+ # :startdoc:
@@ -0,0 +1 @@
1
+ *.[ch]
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: false
2
+ require 'mkmf'
3
+ if RUBY_ENGINE == 'ruby'
4
+ have_type("rb_io_mode_t", "ruby/io.h")
5
+
6
+ create_makefile('stringio')
7
+ else
8
+ File.write('Makefile', dummy_makefile("").join)
9
+ end