Skip to content

Commit fe315dc

Browse files
authored
Merge branch 'master' into missing-sections
2 parents b95f4e8 + 309a604 commit fe315dc

26 files changed

Lines changed: 82 additions & 52 deletions

Gemfile.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,24 @@ GEM
115115
mini_portile2 (2.8.9)
116116
minitest (6.0.1)
117117
prism (~> 1.5)
118-
nokogiri (1.18.9)
118+
nokogiri (1.19.1)
119119
mini_portile2 (~> 2.8.2)
120120
racc (~> 1.4)
121-
nokogiri (1.18.9-aarch64-linux-gnu)
121+
nokogiri (1.19.1-aarch64-linux-gnu)
122122
racc (~> 1.4)
123-
nokogiri (1.18.9-aarch64-linux-musl)
123+
nokogiri (1.19.1-aarch64-linux-musl)
124124
racc (~> 1.4)
125-
nokogiri (1.18.9-arm-linux-gnu)
125+
nokogiri (1.19.1-arm-linux-gnu)
126126
racc (~> 1.4)
127-
nokogiri (1.18.9-arm-linux-musl)
127+
nokogiri (1.19.1-arm-linux-musl)
128128
racc (~> 1.4)
129-
nokogiri (1.18.9-arm64-darwin)
129+
nokogiri (1.19.1-arm64-darwin)
130130
racc (~> 1.4)
131-
nokogiri (1.18.9-x86_64-darwin)
131+
nokogiri (1.19.1-x86_64-darwin)
132132
racc (~> 1.4)
133-
nokogiri (1.18.9-x86_64-linux-gnu)
133+
nokogiri (1.19.1-x86_64-linux-gnu)
134134
racc (~> 1.4)
135-
nokogiri (1.18.9-x86_64-linux-musl)
135+
nokogiri (1.19.1-x86_64-linux-musl)
136136
racc (~> 1.4)
137137
paint (2.3.0)
138138
pathutil (0.16.2)
@@ -310,15 +310,15 @@ CHECKSUMS
310310
metrics (0.12.2) sha256=75caab08235dc2b3bb7440e00f64e8426b23b9caa94755d81cf9371fffa1e12a
311311
mini_portile2 (2.8.9) sha256=0cd7c7f824e010c072e33f68bc02d85a00aeb6fce05bb4819c03dfd3c140c289
312312
minitest (6.0.1) sha256=7854c74f48e2e975969062833adc4013f249a4b212f5e7b9d5c040bf838d54bb
313-
nokogiri (1.18.9) sha256=ac5a7d93fd0e3cef388800b037407890882413feccca79eb0272a2715a82fa33
314-
nokogiri (1.18.9-aarch64-linux-gnu) sha256=5bcfdf7aa8d1056a7ad5e52e1adffc64ef53d12d0724fbc6f458a3af1a4b9e32
315-
nokogiri (1.18.9-aarch64-linux-musl) sha256=55e9e6ca46c4ad1715e313f407d8481d15be1e3b65d9f8e52ba1c124d01676a7
316-
nokogiri (1.18.9-arm-linux-gnu) sha256=fe611ae65880e445a9c0f650d52327db239f3488626df4173c05beafd161d46e
317-
nokogiri (1.18.9-arm-linux-musl) sha256=935605e14c0ba17da18d203922440bf6c0676c602659278d855d4622d756a324
318-
nokogiri (1.18.9-arm64-darwin) sha256=eea3f1f06463ff6309d3ff5b88033c4948d0da1ab3cc0a3a24f63c4d4a763979
319-
nokogiri (1.18.9-x86_64-darwin) sha256=e0d2deb03d3d7af8016e8c9df5ff4a7d692159cefb135cbb6a4109f265652348
320-
nokogiri (1.18.9-x86_64-linux-gnu) sha256=b52f5defedc53d14f71eeaaf990da66b077e1918a2e13088b6a96d0230f44360
321-
nokogiri (1.18.9-x86_64-linux-musl) sha256=e69359d6240c17e64cc9f43970d54f13bfc7b8cc516b819228f687e953425e69
313+
nokogiri (1.19.1) sha256=598b327f36df0b172abd57b68b18979a6e14219353bca87180c31a51a00d5ad3
314+
nokogiri (1.19.1-aarch64-linux-gnu) sha256=cfdb0eafd9a554a88f12ebcc688d2b9005f9fce42b00b970e3dc199587b27f32
315+
nokogiri (1.19.1-aarch64-linux-musl) sha256=1e2150ab43c3b373aba76cd1190af7b9e92103564063e48c474f7600923620b5
316+
nokogiri (1.19.1-arm-linux-gnu) sha256=0a39ed59abe3bf279fab9dd4c6db6fe8af01af0608f6e1f08b8ffa4e5d407fa3
317+
nokogiri (1.19.1-arm-linux-musl) sha256=3a18e559ee499b064aac6562d98daab3d39ba6cbb4074a1542781b2f556db47d
318+
nokogiri (1.19.1-arm64-darwin) sha256=dfe2d337e6700eac47290407c289d56bcf85805d128c1b5a6434ddb79731cb9e
319+
nokogiri (1.19.1-x86_64-darwin) sha256=7093896778cc03efb74b85f915a775862730e887f2e58d6921e3fa3d981e68bf
320+
nokogiri (1.19.1-x86_64-linux-gnu) sha256=1a4902842a186b4f901078e692d12257678e6133858d0566152fe29cdb98456a
321+
nokogiri (1.19.1-x86_64-linux-musl) sha256=4267f38ad4fc7e52a2e7ee28ed494e8f9d8eb4f4b3320901d55981c7b995fc23
322322
paint (2.3.0) sha256=327d623e4038619d5bd99ae5db07973859cd78400c7f0329eea283cef8e83be5
323323
pathutil (0.16.2) sha256=e43b74365631cab4f6d5e4228f812927efc9cb2c71e62976edcb252ee948d589
324324
pdf-reader (2.14.1) sha256=b45a4521c249a394ad7ad9e691bfd46d4d00998cfc4f019e4525afb4963b411b

_data/locales/ru.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,5 +225,5 @@ footer:
225225
text: Новости RSS
226226
url: /ru/feeds/news.rss
227227
ruby_license:
228-
text: Ruby License
228+
text: Лицензия Ruby
229229
url: /en/about/license.txt

_plugins/localize_post_url.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# frozen_string_literal: true
2+
3+
module Jekyll
4+
5+
# Provides a Liquid filter to resolve a localized version of a
6+
# post URL when a translation exists for the given language.
7+
#
8+
# Falls back to the original (English) URL if no translation is found.
9+
#
10+
# Example:
11+
# {{ release.post | localize_post_url: page.lang }}
12+
#
13+
module LocalizePostUrlFilter
14+
15+
def localize_post_url(url, lang)
16+
return url if lang.nil? || lang == "en"
17+
18+
localized_url = url.sub(%r{\A/en/}, "/#{lang}/")
19+
return url if localized_url == url
20+
21+
site = @context.registers[:site]
22+
23+
# Build a lookup set of all post URLs on first use (cached per site)
24+
@post_urls ||= Set.new(site.posts.docs.map(&:url))
25+
26+
if @post_urls.include?(localized_url)
27+
localized_url
28+
else
29+
url
30+
end
31+
end
32+
end
33+
end
34+
35+
Liquid::Template.register_filter(Jekyll::LocalizePostUrlFilter)

en/news/_posts/2025-12-18-ruby-4-0-0-preview3-released.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Ruby 4.0 introduces Ruby::Box and "ZJIT", and adds many improvements.
1414
## Ruby::Box
1515

1616
A new (experimental) feature to provide separation about definitions.
17-
For the detail of "Ruby Box", see [doc/language/box.md](https://github.com/ruby/ruby/blob/master/doc/language/box.md).
17+
For the detail of "Ruby Box", see [doc/language/box.md](https://docs.ruby-lang.org/en/4.0/language/box_md.html).
1818
[[Feature #21311]] [[Misc #21385]]
1919

2020
## Language changes
@@ -175,7 +175,7 @@ Note: We're only listing outstanding class updates.
175175
* Ruby::Box
176176
177177
* A new (experimental) feature to provide separation about definitions.
178-
For the detail of "Ruby Box", see [doc/language/box.md](https://github.com/ruby/ruby/blob/master/doc/language/box.md).
178+
For the detail of "Ruby Box", see [doc/language/box.md](https://docs.ruby-lang.org/en/4.0/language/box_md.html).
179179
[[Feature #21311]] [[Misc #21385]]
180180
181181
* Set

en/news/_posts/2025-12-25-ruby-4-0-0-released.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Note: We're only listing outstanding class updates.
279279
* Ruby::Box
280280

281281
* A new (experimental) feature to provide separation about definitions.
282-
For the detail of "Ruby Box", see [doc/language/box.md](doc/language/box.md).
282+
For the detail of "Ruby Box", see [doc/language/box.md](https://docs.ruby-lang.org/en/4.0/language/box_md.html).
283283
[[Feature #21311]] [[Misc #21385]]
284284

285285
* Set

es/news/_posts/2025-12-18-ruby-4-0-0-preview3-released.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Ruby 4.0 introduce Ruby::BOX y "ZJIT", y agrega muchas mejoras.
1414
## Ruby::BOX
1515

1616
Una nueva característica (experimental) para dar separación en definiciones.
17-
Vea detalles de "Ruby Box" en [doc/language/box.md](https://github.com/ruby/ruby/blob/master/doc/language/box.md).
17+
Vea detalles de "Ruby Box" en [doc/language/box.md](https://docs.ruby-lang.org/en/4.0/language/box_md.html).
1818
[[Característica #21311]] [[Misc #21385]]
1919

2020
## Cambios en el lenguaje
@@ -173,7 +173,7 @@ y ahora está definido oficialmente. [[Característica #20884]]
173173
* Ruby::Box
174174

175175
* Una nueva característica (experimental) para proporcionar separación entre definiciones.
176-
Para obtener detalles sobre "Ruby Box", consulte [doc/language/box.md](https://github.com/ruby/ruby/blob/master/doc/language/box.md).
176+
Para obtener detalles sobre "Ruby Box", consulte [doc/language/box.md](https://docs.ruby-lang.org/en/4.0/language/box_md.html).
177177
[[Característica #21311]] [[Misc #21385]]
178178

179179
* Set

ja/downloads/releases/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ lang: ja
2828
<td>Ruby {{ release.version }}</td>
2929
<td>{{ release.date }}</td>
3030
<td><a href="{{ release.url.gz }}">download</a></td>
31-
<td><a href="{{ release.post }}">more...</a></td>
31+
<td><a href="{{ release.post | localize_post_url: page.lang }}">more...</a></td>
3232
</tr>{% endfor %}
3333
</table>

ja/news/_posts/2025-12-18-ruby-4-0-0-preview3-released.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Ruby {{ release.version }} が公開されました。
133133

134134
* Ruby::Box
135135

136-
* 定義の分離を提供するための新しい (実験的な) 機能です。"Ruby Box" の詳細については、[doc/language/box.md](https://github.com/ruby/ruby/blob/master/doc/language/box.md) を参照してください。
136+
* 定義の分離を提供するための新しい (実験的な) 機能です。"Ruby Box" の詳細については、[doc/language/box.md](https://docs.ruby-lang.org/en/4.0/language/box_md.html) を参照してください。
137137
[[Feature #21311]] [[Misc #21385]]
138138

139139
* Set

ja/news/_posts/2025-12-25-ruby-4-0-0-released.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ Ruby 3.0 で experimental feature として導入されましたが、来年く
235235

236236
* Ruby::Box
237237

238-
* 定義の分離を提供する新しい(実験的)機能です。詳細は [doc/language/box.md](doc/language/box.md) を参照してください。[[Feature #21311]] [[Misc #21385]]
238+
* 定義の分離を提供する新しい(実験的)機能です。詳細は [doc/language/box.md](https://docs.ruby-lang.org/en/4.0/language/box_md.html) を参照してください。[[Feature #21311]] [[Misc #21385]]
239239

240240
* Set
241241

ko/documentation/faq/1/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,6 @@ set reply_regexp="^(\[[a-z0-9:-]+\][[:space:]]*)?(re([\[0-9\]+])*|aw):[[:space:]
254254
[http://www.xs4all.nl/~hipster/lib/ruby/ruby.vim](http://www.xs4all.nl/~hipster/lib/ruby/ruby.vim)에서 찾을 수 있습니다.
255255
* [Jedit](http://jedit.sourceforge.net/): Java로 작성된 휴대용 편집기로 Ruby를
256256
지원합니다.
257-
* [Nedit](http://www.nedit.org): Eric Santonacci는 Nedit에 대한 Ruby 지원을
258-
작성했습니다.
259-
[ftp://ftp.talc.fr/pub/ruby/ruby.nedit-0.1.tar.gz](ftp://ftp.talc.fr/pub/ruby/ruby.nedit-0.1.tar.gz)에서 사용 가능합니다.
260257
* Barry Shultz는 TextPad용 Ruby 정의 파일을 작성했습니다.
261258
[https://www.textpad.com/add-ons/synn2t.html](https://www.textpad.com/add-ons/synn2t.html)에서 사용 가능합니다.
262259

0 commit comments

Comments
 (0)