Merge pull request #57826 from Shopify/deprecate-mime-constants
Deprecate Mime::SET, Mime::LOOKUP and Mime::EXTENSION_LOOKUP
Deprecate Mime::SET, Mime::LOOKUP and Mime::EXTENSION_LOOKUP
ThreadSanitizer cannot follow Ruby's userspace coroutine stack switches, so its per-thread shadow stack leaks across a switch and eventu
Set RUBY_TEST_GC_VERIFY to call GC.verify_internal_consistency after each test. An integer >= 2 samples once every N tests; any other non
These are all simple getters which don't allocate or raise exceptions. We can declare them as a leaf and skip pushing frames inside YJIT/ZJI
Attribute methods ractor safe
Mark a connection unverified when a non-StandardError interrupts a query
`with_raw_connection` only rescues `StandardError`, so an interrupt that is not a `StandardError` (a `Timeout`, or a fiber scheduler's c
枕は一度買えばずっと使えるものと思っていたのですが、どうやらへたってきたりつぶれてきたりしたら買い換えた方がいいらしい、ということを最近知りました。今使ってる枕、一体何年使ってきたんだ……。 というわけで今、新しい枕を買うべくネットやお店で...
Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.
Ruby on Rails. Contribute to rails/rails development by creating an account on GitHub.
想定読者 ・Microsoft Defender for Endpoint(MDE)の設計や導入に関わる方 ・Microsoft Defender Antivirus(MDAV)のパターンファイル更新や配布方式について理解したい方 ・更新方式の選択や設計判断に悩んでいる...
These constants expose the MIME type registries directly, leaking mutable internal state. Everything they're used for is already covered
お疲れ様です! シリーズで計算量やレースコンディションを書いてきましたが、今回は DBインデックス です 「indexを貼ると速くなる」は知っていても、なぜ速いのか/どこに貼るべきかまで説明できると強いので、そこをまとめてみました。 興味ある方は読んでいただけると嬉しいで...
こんにちは ソーイ株式会社Webエンジニア2年目の村上です。 最近私事ですがAWSの初級資格であるAWS Certified AI Practitionerに合格しました。 今回はその振り返りと有効だった手を記す合格体験記になります。 業務でAWSの生成AIサービスを扱う機...
Fix: https://github.com/ruby/json/issues/976 https://github.com/ruby/json/commit/ea008e82fe Co-Authored-By: Jean Boussier <byroot@ruby-lan
1.はじめに 4月に入社した新人の方も、そろそろ3か月。 企業や組織によっては、すでに配属されている方もいれば、これから配属という方もいる頃でしょうか。 Azure 関連の部署に配属されて「何から始めればいいんだろう?」「Azure って難しそう…」と感じている方もいると...
* Increase timeout of test_port_receive_dnt_with_port_send Still times out with 90 seconds on Windows CI. https://github.com/ruby/ruby/act
The "using an implicit hostname" example connects with TCPSocket.new(nil, port) to a server bound to the IPv4 loopback, then asser
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
No need for a separate pass. We can handle it with the other specialization.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
https://github.com/ruby/psych/pull/805 added files psych_emitter_fy.c and psych_parser_fy.c so we need to update the depend file too.
Move `Symbol#empty?` from the C `sym_empty` into `symbol.rb`, implemented as `RBOOL(RSTRING_LEN(rb_sym2str(self)) == 0)`, mirroring the exis
KDDIアイレットの取り組みとして6月22日〜7月3日の期間で開催中の「Google Cloud Next '26 / Google I/O やってみた系ブログリレー」、本日は10日目の投稿です。 人間がメインで執筆しています。 ADK 2.0 とは? ADK は...
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
Check for `step` before the length, although it looks impossible to create 0-step `ArithmeticSequence` currently.
…:HTTP The hardcoded Gem::Net::HTTP in Artifice.deactivate, is actually the replaced Artifice::Net::HTTP. This doesn't restore the orig
…plicitly. This commit fixes the following failures. The `require "support/artifice/compact_index"` is not enough because the fil
… integration connection tests Create spec/bundler/fetcher/gem_remote_fetcher_local_ssl_server_spec.rb adding non-PQC and PQC server/client
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
Cover what the libfyaml backend does distinctly, each placed with the concern it belongs to: the Psych::BACKEND and Psych.libfyaml_version c
Reject canonical output with NotImplementedError instead of silently ignoring the request, and honor the implicit flag in start_sequence and
The libfyaml-dev package on Ubuntu is 0.8, which segfaults psych's emitter, while 0.9.6 (used on macOS via Homebrew) passes the whole su
Mark the reconstructed SyntaxError message UTF-8 instead of US-ASCII, so a diagnostic that embeds a multibyte snippet of the input does not
libfyaml only consumes UTF-8, so a UTF-16 IO fed through the chunked reader reached it as raw bytes and was rejected as invalid UTF-8. When
Built only with --enable-libfyaml; without the flag the default libyaml backend is unchanged. The parser and emitter are reimplemented again
Drop the tag when plain_implicit or quoted_implicit is set, matching how libyaml omits a tag that the value resolves to on reload; otherwise
Add a libfyaml? helper and guard the tests that intentionally diverge on the experimental YAML 1.2 backend: yes/no/on/off are strings rather
Scalar type resolution happens in ScalarScanner, not the C backend, so swapping to libfyaml alone still resolved yes/no/on/off to booleans.
…cument The xcalloc'd tag buffers leaked when StringValue, the tuple-length check, or the emit raised mid-way. Wrap the work in rb_ensu
Create a fresh parser per parse instead of reusing one via fy_parser_reset(), which left default tag handles unset and rejected bare ("
These guards no longer match current mswin behavior. The affected tests pass reliably on an x64-mswin64_140 build, repeatedly and under -j16
Loading the extension libraries in a box exceeds the default 10-second assert_separately timeout under -j16 CI load. Use 60 seconds, matchin
Cover behavior documented in rdoc but not asserted in test/ruby/test_string.rb: * insert returns self * boundary negative index -(length +
Bundler::DSLError#to_s read the offending line number from `trace_line.split(":")[1]`. On Windows the backtrace path carries a dri
The Ruby Programming Language. Contribute to ruby/ruby development by creating an account on GitHub.
write_lock decided whether to emit `\r\n` from @lockfile_contents, which is read in text mode and drops carriage returns on Windows. A `\r\n
Keeps IO errors on the raw read mapped to Bundler friendly errors like the other file operations in write_lock. Also rename the CRLF spec de
These examples pass on Windows as is now. Materialization detects a yanked platform-specific locked spec and falls back to the generic varia