aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string
Commit message (Collapse)AuthorAgeFilesLines
* Update to ruby/spec@e7dc804Benoit Daloze2023-02-276-1/+15
|
* * remove trailing spaces, append newline at EOF. [ci skip]git2023-01-051-1/+1
|
* Update to ruby/spec@9d69b95Benoit Daloze2023-01-0537-78/+610
|
* [Bug #19087] Merge to "trailing garbage" caseNobuyoshi Nakada2022-12-021-6/+3
|
* [Bug #19087] Fix an assertion of `String#to_c`Nobuyoshi Nakada2022-12-021-2/+4
|
* Make String#rstrip{,!} raise Encoding::CompatibilityError for broken coderangeJeremy Evans2022-11-241-7/+21
| | | | | | | | | | | | | | | | It's questionable whether we want to allow rstrip to work for strings where the broken coderange occurs before the trailing whitespace and not after, but this approach is probably simpler, and I don't think users should expect string operations like rstrip to work on broken strings. In some cases, this changes rstrip to raise Encoding::CompatibilityError instead of ArgumentError. However, as the problem is related to an encoding issue in the receiver, and due not due to an issue with an argument, I think Encoding::CompatibilityError is the more appropriate error. Fixes [Bug #18931]
* Update to ruby/spec@740ccc8Benoit Daloze2022-11-0711-86/+166
|
* Update to ruby/spec@1d9d5c6Benoit Daloze2022-09-281-0/+26
|
* [Bug #18955] format single character for `%c`Nobuyoshi Nakada2022-08-201-2/+10
|
* Update to ruby/spec@cbfaf51Benoit Daloze2022-07-2719-11/+181
|
* Update to ruby/spec@ab32a1aBenoit Daloze2022-06-269-6/+71
|
* [Feature #18595] Alias String#-@ as String#dedupJean Boussier2022-05-203-45/+57
|
* Update to ruby/spec@3affe1eBenoit Daloze2022-04-2543-1152/+16
|
* Fix a typoKazuhiro NISHIYAMA2022-04-171-1/+1
|
* Update to ruby/spec@aaf998fBenoit Daloze2022-03-287-5/+29
|
* Update to ruby/spec@82cd3a3Benoit Daloze2022-03-031-0/+9
|
* Update to ruby/spec@902ab83Benoit Daloze2022-01-281-0/+11
|
* Update to ruby/spec@226cfdcBenoit Daloze2022-01-105-14/+24
|
* Update to ruby/spec@7f22a0bBenoit Daloze2021-11-297-7/+41
|
* Update to ruby/spec@21a48d9Benoit Daloze2021-10-281-4/+46
|
* pack.c: add an offset argument to unpack and unpack1Jean Boussier2021-10-262-0/+40
| | | | | | [Feature #18254] This is useful to avoid repeteadly copying strings when parsing binary formats
* Update to ruby/spec@ccf0d85Benoit Daloze2021-10-059-2/+118
|
* Update to ruby/spec@b65d01fBenoit Daloze2021-07-296-119/+100
|
* Update to ruby/spec@a0b7d0dBenoit Daloze2021-06-023-0/+29
|
* Update to ruby/spec@37e52e5Benoit Daloze2021-02-271-0/+14
|
* Make String#{strip,lstrip}{,!} strip leading NUL bytesJeremy Evans2021-02-202-18/+22
| | | | | | | | | | | The documentation already specifies that they strip whitespace and defines whitespace to include null. This wraps the new behavior in the appropriate guards in the specs, but does not specify behavior for previous versions, because this is a bug that could be backported. Fixes [Bug #17467]
* Update to ruby/spec@8cafaa5Benoit Daloze2021-01-283-0/+25
|
* Update to ruby/spec@4ce9f41Benoit Daloze2020-12-271-0/+6
|
* Use Integer instead of Fixnum/BignumNobuyoshi Nakada2020-12-217-23/+23
|
* Update to ruby/spec@ac878adBenoit Daloze2020-11-273-0/+26
|
* Use hex-encoded binaries instead of UTF-8Nobuyoshi Nakada2020-11-221-2/+2
| | | | | Which UTF-8 char corresponds to the binary representation is nonsense for other encodings, and just confusing.
* Add string encoding IBM720 alias CP720 (#3803)Lars Kanis2020-11-221-0/+8
| | | | | | The mapping table is generated from the ICU project: https://github.com/unicode-org/icu/blob/master/icu4c/source/data/mappings/ibm-720_P100-1997.ucm Fixes bug 16233 : https://bugs.ruby-lang.org/issues/16233
* Make String methods return String instances when called on a subclass instanceJeremy Evans2020-11-2023-148/+502
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modifies the following String methods to return String instances instead of subclass instances: * String#* * String#capitalize * String#center * String#chomp * String#chop * String#delete * String#delete_prefix * String#delete_suffix * String#downcase * String#dump * String#each/#each_line * String#gsub * String#ljust * String#lstrip * String#partition * String#reverse * String#rjust * String#rpartition * String#rstrip * String#scrub * String#slice! * String#slice/#[] * String#split * String#squeeze * String#strip * String#sub * String#succ/#next * String#swapcase * String#tr * String#tr_s * String#upcase This also fixes a bug in String#swapcase where it would return the receiver instead of a copy of the receiver if the receiver was the empty string. Some string methods were left to return subclass instances: * String#+@ * String#-@ Both of these methods will return the receiver (subclass instance) in some cases, so it is best to keep the returned class consistent. Fixes [#10845]
* Update to ruby/spec@b0b7f53Benoit Daloze2020-11-131-0/+8
|
* Update to ruby/spec@9277d27Benoit Daloze2020-09-301-5/+26
|
* Update to ruby/spec@e829fb0Benoit Daloze2020-09-173-118/+11
|
* Update to ruby/spec@335eb9bBenoit Daloze2020-08-281-0/+14
|
* Update to ruby/spec@07164daBenoit Daloze2020-07-271-5/+63
|
* Update to ruby/spec@032ee74Benoit Daloze2020-05-0341-183/+183
|
* Drop support for ruby 2.4 from ruby/specNobuyoshi Nakada2020-04-0110-649/+596
|
* Use FrozenError instead of frozen_error_classNobuyoshi Nakada2020-04-0129-137/+137
|
* Update to ruby/spec@41bf282Benoit Daloze2020-02-281-0/+20
|
* Warn non-nil `$/` [Feature #14240]Nobuyoshi Nakada2020-02-232-3/+11
|
* Update to ruby/spec@f8a2d54Benoit Daloze2020-01-286-0/+97
|
* Freeze Regexp literalsJean Boussier2020-01-151-1/+1
| | | | | | | [Feature #8948] [Feature #16377] Since Regexp literals always reference the same instance, allowing to mutate them can lead to state leak.
* Update to ruby/spec@d419e74Benoit Daloze2019-12-273-13/+18
|
* Fixed misspellingsNobuyoshi Nakada2019-12-201-1/+1
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-1843-670/+832
| | | | | | This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby.
* Update to ruby/spec@34e6246Benoit Daloze2019-09-293-31/+30
|
* Update to ruby/spec@519df35Benoit Daloze2019-09-291-3/+3
|