summaryrefslogtreecommitdiff
path: root/spec/ruby/library
AgeCommit message (Collapse)Author
2025-10-07Update rubyspec as of CVE-2025-27221Nobuyoshi Nakada
2025-02-13merge revision(s) 46b544c54955348ef1ea9692b837b061f59f91cd, ↵Takashi Kokubun
d3abee739f4feb91bb9aaae33877d70c8c576db0: [Backport #21095] Prefer `uname -n` over `hostname`. (#12647) Add fallback for `hostname` if `uname` isn't available. (#12655)
2024-12-22Suppress WIN32OLE deprecation warnings for the time beingNobuyoshi Nakada
2024-12-10Update to ruby/spec@9f10222Andrew Konchin
Notes: Merged: https://github.com/ruby/ruby/pull/12297
2024-12-03Socket#connect may be raise ECONNREFUSEDKazuhiro NISHIYAMA
On my environment with `sudo ufw default reject outgoing`, outgoing packets are filtered without allow rules. Notes: Merged: https://github.com/ruby/ruby/pull/12238
2024-11-21Omit flaky example with Windows platformHiroshi SHIBATA
https://github.com/ruby/ruby/actions/runs/11948300522/job/33305664284?pr=12139 ``` IO#wait [events, timeout] passed changes thread status to 'sleep' when waits for WRITABLE event FAILED Expected false == "sleep" to be truthy but was false D:/a/ruby/ruby/src/spec/ruby/library/io-wait/wait_spec.rb:99:in 'block (3 levels) in <top (required)>' D:/a/ruby/ruby/src/spec/ruby/library/io-wait/wait_spec.rb:8:in '<top (required)>' ``` Notes: Merged: https://github.com/ruby/ruby/pull/12140
2024-11-06Update to ruby/spec@54c391eBenoit Daloze
2024-10-23Harden the ObjectSpace.memsize_of specJean Boussier
[Bug #20803] `abc` is used a lot across the ruby spec suite, if another test runs before this spec is loaded and create this symbol dynamically (`"abc".to_sym`) the spec will fail. So it's preferable to use a symbol name that is very unlikely to be used elsewhere to avoid flakes. Notes: Merged: https://github.com/ruby/ruby/pull/11942
2024-10-12Support `IO#timeout` for `rsock_connect`. (#11880)Samuel Williams
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2024-10-03Update spec/ruby/ for colon-style hash inspecttompng
Notes: Merged: https://github.com/ruby/ruby/pull/10924
2024-09-17Skip failing examples related with ↵Hiroshi SHIBATA
https://github.com/ruby/ruby/commit/d81b0588bb3c97167d1f7e2d2a74185e0c19b68c
2024-09-05Move Time#xmlschema in core and optimize itJean Boussier
[Feature #20707] Converting Time into RFC3339 / ISO8601 representation is an significant hotspot for applications that serialize data in JSON, XML or other formats. By moving it into core we can optimize it much further than what `strftime` will allow. ``` compare-ruby: ruby 3.4.0dev (2024-08-29T13:11:40Z master 6b08a50a62) +YJIT [arm64-darwin23] built-ruby: ruby 3.4.0dev (2024-08-30T13:17:32Z native-xmlschema 34041ff71f) +YJIT [arm64-darwin23] warming up...... | |compare-ruby|built-ruby| |:-----------------------|-----------:|---------:| |time.xmlschema | 1.087M| 5.190M| | | -| 4.78x| |utc_time.xmlschema | 1.464M| 6.848M| | | -| 4.68x| |time.xmlschema(6) | 859.960k| 4.646M| | | -| 5.40x| |utc_time.xmlschema(6) | 1.080M| 5.917M| | | -| 5.48x| |time.xmlschema(9) | 893.909k| 4.668M| | | -| 5.22x| |utc_time.xmlschema(9) | 1.056M| 5.707M| | | -| 5.40x| ``` Notes: Merged: https://github.com/ruby/ruby/pull/11510
2024-07-24Add "c_long_size" guard, supplanting "wordsize" and stop using Integer#sizeAlan Wu
What a "word" is when talking about sizes is confusing because it's a highly overloaded term. Intel, Microsoft, and GDB are just a few vendors that have their own definition of what a "word" is. Specs that used the "wordsize" guard actually were mostly testing for the size of the C `long` fundamental type, so rename the guard for clarity. Also, get the size of `long` directly from RbConfig instead of guessing using Integer#size. Integer#size is not guaranteed to have anything to do with the `long` type. Notes: Merged: https://github.com/ruby/ruby/pull/11130
2024-07-18Split URI::Parser examples with RFC2396 and RFC3986Hiroshi SHIBATA
Prepare for https://github.com/ruby/uri/pull/107
2024-07-02Update to ruby/spec@f8987acAndrew Konchin
2024-06-18net-ftp-0.3.6 always return response with put/puttextfile.Hiroshi SHIBATA
* https://github.com/ruby/net-ftp/pull/34 * https://github.com/ruby/net-ftp/issues/36
2024-06-12'SPEC_TEMP_DIR` should not be world-writableKoichi Sasada
`SPEC_TEMP_DIR` is not present until `tmp()` method is called on parallel run. In this case `tmp()` is called with `File.umask = 0`. This patch makes `SPEC_TEMP_DIR` before `File.umask = 0`. To solve the issue essentially, I think `SPEC_TEMP_DIR` should be prepared at the beginning of parallel process.
2024-06-10Fix CI when YJIT is enabledAndrew Konchin
2024-06-10Update to ruby/spec@517f06fAndrew Konchin
2024-05-19Update to ruby/spec@6b04c1dAndrew Konchin
2024-04-02Update to ruby/spec@573cf97Andrew Konchin
2024-03-28Suppress warning at literal stringNobuyoshi Nakada
2024-03-16Prefer the simple read/write `File` singleton methodsNobuyoshi Nakada
2024-03-14Update to ruby/spec@89175b2Benoit Daloze
2024-03-05[DOC] fix some commentscui fliter
Signed-off-by: cui fliter <imcusg@gmail.com>
2024-02-26Update to ruby/spec@3a510bbBenoit Daloze
2024-02-15Skip failing examples at Ruby 3.2+Hiroshi SHIBATA
2024-02-15Re-enabled old bundled gemsHiroshi SHIBATA
2024-02-15ruby-spec: Accept the receiver in backtracesYusuke Endoh
2024-02-15Rename and restructured net/ftp and net/http examplesHiroshi SHIBATA
2024-02-15Move examples related core extension feature by Bigdecimal to under the ↵Hiroshi SHIBATA
library/bigdecimal
2024-02-15ruby-spec: Accept both a backtick and a single quote in error messagesYusuke Endoh
2024-02-12Skip spec failing on i686Benoit Daloze
2024-02-12Exclude a problematic spec when run in CRuby via make test-spec until fixedBenoit Daloze
2024-02-12Update to ruby/spec@ce834adBenoit Daloze
2024-02-05Update to ruby/spec@3fc4444Benoit Daloze
2024-01-22spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' ↵Hiroshi SHIBATA
spec/ruby/library/csv/**/*.rb
2024-01-22spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' ↵Hiroshi SHIBATA
spec/ruby/library/syslog/**/*.rb
2024-01-22spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' ↵Hiroshi SHIBATA
spec/ruby/library/drb/start_service_spec.rb
2024-01-19spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' ↵Hiroshi SHIBATA
spec/ruby/library/abbrev/**/*.rb
2024-01-19spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' ↵Hiroshi SHIBATA
spec/ruby/library/observer/**/*.rb
2024-01-18Guard bigdecimal related examplesHiroshi SHIBATA
spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' spec/ruby/core/integer/coerce_spec.rb spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' spec/ruby/shared/rational/coerce.rb spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' spec/ruby/library/bigmath/log_spec.rb and example of at_spec.rb
2024-01-18spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' ↵Hiroshi SHIBATA
spec/ruby/library/bigdecimal/**/*_spec.rb
2024-01-17spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' ↵Hiroshi SHIBATA
spec/ruby/library/base64/**/*_spec.rb
2024-01-16spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' ↵Hiroshi SHIBATA
spec/ruby/library/getoptlong/**/*.rb
2024-01-16Do not pollute toplevel namespaceNobuyoshi Nakada
2023-12-23Fix for older set versionsNobuyoshi Nakada
`Set::VERSION` was not defined in old set.rb bundled with ruby 3.2 or earlier. Also add comment for spec/mspec/tool/remove_old_guards.rb.
2023-12-23Set 1.1 now checks subclass-ness stricterNobuyoshi Nakada
2023-11-30Fix failing specMisaki Shioi
2023-11-27Update to ruby/spec@c3206f6Benoit Daloze