aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Update to ruby/spec@875a09eBenoit Daloze2019-07-2770-454/+454
|
* Update to ruby/spec@94d98ffBenoit Daloze2019-06-271-1/+1
|
* Update to ruby/spec@8d74d49Benoit Daloze2019-06-2728-73/+85
|
* Make specs pass on OpenBSDJeremy Evans2019-06-061-56/+101
| | | | | | | | | | | | | | | | | Skip Process clockres specs that don't work on either FreeBSD or Solaris/AIX in addition to OpenBSD. Run most current String#crypt specs on non-OpenBSD, and add a new set of crypt specs for OpenBSD, which support bcrypt but not DES in crypt(3). Use @server.connect_address instead of @server.getsockname in some socket tests, as OpenBSD does not treat connection to all zero IPv4 or IPv6 addresses as connection to localhost. When trying to connect using UDP on an unsupported address family, allow Errno::EPROTONOSUPPORT in addition to Errno::EAFNOSUPPORT, as OpenBSD raises the former.
* Update to ruby/spec@9a501a8Benoit Daloze2019-05-281-0/+17
|
* Update to ruby/spec@7de852dBenoit Daloze2019-04-2832-1290/+1200
|
* Update to ruby/spec@15c9619Benoit Daloze2019-04-2715-705/+583
|
* Suppress warningsnobu2019-04-181-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@e81b3cderegon2019-03-282-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e