summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-05[ruby/json] Re-enable passing testBenoit Daloze
https://github.com/ruby/json/commit/82d21f01c5 Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] Add tests for the behavior of JSON.generate with base types ↵Jean Boussier
subclasses Ref: https://github.com/ruby/json/pull/674 Ref: https://github.com/ruby/json/pull/668 The behavior on such case it quite unclear, the goal here is to figure out whatever was the behavior on Cext version of `json 2.7.0` and get all implementations to converge. We can then decide to make them all behave differently if we so wish. https://github.com/ruby/json/commit/614921dcef Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] Use rb_str_new_frozenJean Boussier
https://github.com/ruby/json/commit/90c8aaaa6a Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] JSON::Ext::Parser mark the name cache entries when not on the heapJean Boussier
This is somewhat dead code as unless you are using `JSON::Parser.new` direcltly we never allocate `JSON::Ext::Parser` anymore. But still, we should mark all its reference in case some code out there uses that. Followup: #675 https://github.com/ruby/json/commit/8bf74a977b Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05Update json gem syncing logicJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[rubygems/rubygems] Test with JRuby 9.4.9.0David Rodríguez
https://github.com/rubygems/rubygems/commit/b282668d9d
2024-11-05Remove RGENGC_FORCE_MAJOR_GC flagMatt Valentine-House
[Bug #20762] Notes: Merged: https://github.com/ruby/ruby/pull/12002
2024-11-05Use wide character startupNobuyoshi Nakada
Mingw crt-git 12.0.0.r369.g0d4221712-1 now prohibits "command line contains characters that are not supported in the active code page". https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0d42217123d3aec0341b79f6d959c76e09648a1e/ Already Ruby builds `argv` in `rb_w32_sysinit`, instead of mswin- or mingw-made `argv`. Just bypass the conversion in mingw crt.
2024-11-05[ruby/irb] windows does not support Process.kill("TERM", pid)YO4
(https://github.com/ruby/irb/pull/1026) https://github.com/ruby/irb/commit/7bbb885163
2024-11-05Get rid of JSON benchmarksJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/11999
2024-11-05tool/sync_default_gems.rb: update json rulesJean Boussier
`lib/json/ext/generator/state.rb` should actually be `ext/json/lib/json/ext/generator/state.rb` Notes: Merged: https://github.com/ruby/ruby/pull/11999
2024-11-05Use rb_fiber_scheduler_get() instead of rb_fiber_scheduler_current()Yusuke Endoh
rb_fiber_scheduler_current() may return nil depending on whether the scheduler is being prevented for some reason, e.g., Fiber.blocking{}. Co-Authored-By: Samuel Williams <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/12001
2024-11-05Name dependency checks jobNobuyoshi Nakada
And run on the latest ubuntu.
2024-11-05Update dependencyYusuke Endoh
2024-11-05Let vm_dump show whether the fiber scheduler is enabled or notYusuke Endoh
... just for the case. Notes: Merged: https://github.com/ruby/ruby/pull/12000
2024-11-05[ruby/stringio] Copy from the relocated stringNobuyoshi Nakada
When ungetting the string same as the same buffer string, extending the buffer can move the pointer in the argument. Reported by manun Manu (manun) at https://hackerone.com/reports/2805165. https://github.com/ruby/stringio/commit/95c1194832
2024-11-05[ruby/date] Extract Julian calendar epoch literalsNobuyoshi Nakada
https://github.com/ruby/date/commit/e677e99a86
2024-11-05[ruby/date] Update `argc` by `rb_scan_args` not to contain keywordsNobuyoshi Nakada
https://github.com/ruby/date/commit/f277463439
2024-11-05[ruby/date] Refine assertionsNobuyoshi Nakada
https://github.com/ruby/date/commit/1970b740d0
2024-11-05[ruby/date] Fix incorrect argc2 decrement in datetime_s_iso8601 functionDmitrii Zudin
Replace the decrement (argc2--) with an increment (argc2++) for the correct number of arguments when opt is provided. https://github.com/ruby/date/commit/b6974b00d8
2024-11-05Try macos-15 buildHiroshi SHIBATA
https://github.com/actions/runner-images/issues/10686 Notes: Merged: https://github.com/ruby/ruby/pull/11996
2024-11-05Fixup b1fc1af4440. Removed benchmark files from ruby/jsonHiroshi SHIBATA
2024-11-05Stop syncing json benchmarks.nagachika
Notes: Merged: https://github.com/ruby/ruby/pull/11978
2024-11-04macos-12 is deprecated and fails on MondaysTakashi Kokubun
https://github.com/actions/runner-images/issues/10721
2024-11-04[ruby/rdoc] Display class ancestors in the sidebar #1183Alexis Bernard
https://github.com/ruby/rdoc/commit/50dda13426
2024-11-04YJIT: Replace Array#each only when YJIT is enabled (#11955)Takashi Kokubun
* YJIT: Replace Array#each only when YJIT is enabled * Add comments about BUILTIN_ATTR_C_TRACE * Make Ruby Array#each available with --yjit as well * Fix all paths that expect a C location * Use method_basic_definition_p to detect patches * Copy a comment about C_TRACE flag to compilers * Rephrase a comment about add_yjit_hook * Give METHOD_ENTRY_BASIC flag to Array#each * Add --yjit-c-builtin option * Allow inconsistent source_location in test-spec * Refactor a check of BUILTIN_ATTR_C_TRACE * Set METHOD_ENTRY_BASIC without touching vm->running Notes: Merged-By: maximecb <[email protected]>
2024-11-04Fix a typo in a local variable nameNobuyoshi Nakada
2024-11-04Fix Dir.mktmpdir argumentNobuyoshi Nakada
The temporary directory is the second argument.
2024-11-04Precompute hash only once when interning string literalsÉtienne Barrié
When a fake string is interned, use the capa field to store the string hash. This lets us compute it once for hash lookup and embedding the hash in the interned string. Co-authored-by: Jean Boussier <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/11989
2024-11-04Mingw: Exclude failing tests due to the crt changeNobuyoshi Nakada
Mingw crt-git 12.0.0.r369.g0d4221712-1 now prohibits "command line contains characters that are not supported in the active code page". https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0d42217123d3aec0341b79f6d959c76e09648a1e/ Provisionally exclude tests that fail by passing such characters. Notes: Merged: https://github.com/ruby/ruby/pull/11991
2024-11-04Validate user input encodingDavid Rodríguez
If the user has the encoding of her system messed up, she may end up sending us incorrectly encoding input, causing "invalid byte sequence in UTF-8" errors at random places. These errors can be forced on a system without encoding issues with something like: ``` $ gem install$(echo -e "\xFF") foo /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/config_file.rb:534:in `block in set_config_file_name': invalid byte sequence in UTF-8 (ArgumentError) from /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/config_file.rb:530:in `each' from /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/config_file.rb:530:in `set_config_file_name' from /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/config_file.rb:177:in `initialize' from /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/gem_runner.rb:71:in `new' from /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/gem_runner.rb:71:in `do_configuration' from /Users/deivid/.asdf/installs/ruby/3.2.1/lib/ruby/site_ruby/3.2.0/rubygems/gem_runner.rb:33:in `run' from /Users/deivid/.asdf/installs/ruby/3.2.1/bin/gem:10:in `<main>' ``` This commit makes RubyGems print a better error in this case: ``` $ ruby -Ilib bin/gem install$(echo -e "\xFF") foo /Users/deivid/Code/rubygems/rubygems/lib/rubygems/gem_runner.rb:75:in `validate_encoding': invalid argument: 'install�' has invalid encoding (Gem::OptionParser::InvalidArgument) from /Users/deivid/Code/rubygems/rubygems/lib/rubygems/gem_runner.rb:31:in `run' from bin/gem:10:in `<main>' ```
2024-11-04[rubygems/rubygems] Fix commands with 2 MFA requests when webauthn is enabledDavid Rodríguez
If a command requires two MFA authenticated requests, and webauthn is enabled, then first one will succeed but the second one will fail because it tries to reuse the OTP code from the first request and that does not work. This happens when you have not yet logged in to rubygems.org, or when you have an API key with invalid scopes for the current operation. In that case, we need: * An API request to get a token or change scopes for the one that you have. * Another API request to perform the actual operation. Instead of trying to reuse the token, make sure it's cleared so we are asked to authenticate again. We only do this when webauthn is enabled because reusing TOPT tokens otherwise is allowed and I don't want to break that. https://github.com/rubygems/rubygems/commit/669e343935
2024-11-04[rubygems/rubygems] TermError should inherit from SystemExitDavid Rodríguez
The `gem owner` command rescues standard errors, but does not rescue SystemExit errors. If TermError is a standard error, not a system exit, tests don't behave like realworld for this command. https://github.com/rubygems/rubygems/commit/cf7d500f4d
2024-11-04[rubygems/rubygems] OTP is already added by `rubygems_api_request`David Rodríguez
https://github.com/rubygems/rubygems/commit/15930fe126
2024-11-04[rubygems/rubygems] Fix incompatible encodings errorDavid Rodríguez
https://github.com/rubygems/rubygems/commit/d478ec403f
2024-11-03[ruby/prism] Error for def ivarKevin Newton
https://github.com/ruby/prism/commit/232a02acef
2024-11-02Skip TestProc#test_hash_does_not_change_after_compaction if compaction is ↵Peter Zhu
not supported Notes: Merged: https://github.com/ruby/ruby/pull/11980
2024-11-02Include windows.h for `LONG` and `Interlocked` functionsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11985
2024-11-02Fix the conditional macro name [ci skip]Nobuyoshi Nakada
`RUBY_VM_CRITICAL_SECTION` is not used anywhere.
2024-11-02Add documentation for `RUBY_ASSERT_CRITICAL_SECTION`. (#11982)Samuel Williams
Notes: Merged-By: ioquatix <[email protected]>
2024-11-01Improve coverage of TestProc#test_hash_uniquenessPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/11966
2024-11-01Add TestProc#test_hash_equalPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/11966
2024-11-01Rename test_hash to test_hash_uniquenessPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/11966
2024-11-01[Bug #20853] Fix Proc#hash to not change after compactionPeter Zhu
The hash value of a Proc must remain constant after a compaction, otherwise it may not work as the key in a hash table. Notes: Merged: https://github.com/ruby/ruby/pull/11966
2024-11-01Balance omnibus compilationsNobuyoshi Nakada
2024-11-01Balance omnibus compilationsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11976
2024-11-01Extract the condition to skipNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11976
2024-11-01Update default gems list at 314b556cc57d93a6e0e2b120fb7e7a [ci skip]git
2024-11-01[ruby/fileutils] Bump up v1.7.3Hiroshi SHIBATA
https://github.com/ruby/fileutils/commit/c138e67613
2024-11-01Update default gems list at bb5f28c8f7e692571a30359e08b539 [ci skip]git