Merge remote-tracking branch 'parent/main' into upstream-20240412

This commit is contained in:
KMY 2024-04-12 08:40:08 +09:00
commit b7f3cba9b4
11 changed files with 24 additions and 29 deletions

View file

@ -2,7 +2,6 @@ inherits_from: .haml-lint_todo.yml
exclude: exclude:
- 'vendor/**/*' - 'vendor/**/*'
- lib/templates/haml/scaffold/_form.html.haml
require: require:
- ./lib/linter/haml_middle_dot.rb - ./lib/linter/haml_middle_dot.rb

View file

@ -198,7 +198,7 @@ GEM
irb (~> 1.10) irb (~> 1.10)
reline (>= 0.3.8) reline (>= 0.3.8)
debug_inspector (1.2.0) debug_inspector (1.2.0)
devise (4.9.3) devise (4.9.4)
bcrypt (~> 3.0) bcrypt (~> 3.0)
orm_adapter (~> 0.1) orm_adapter (~> 0.1)
railties (>= 4.1.0) railties (>= 4.1.0)
@ -456,7 +456,7 @@ GEM
net-smtp (0.4.0.1) net-smtp (0.4.0.1)
net-protocol net-protocol
nio4r (2.7.1) nio4r (2.7.1)
nokogiri (1.16.3) nokogiri (1.16.4)
mini_portile2 (~> 2.8.2) mini_portile2 (~> 2.8.2)
racc (~> 1.4) racc (~> 1.4)
nsa (0.3.0) nsa (0.3.0)
@ -607,7 +607,7 @@ GEM
redlock (1.3.2) redlock (1.3.2)
redis (>= 3.0.0, < 6.0) redis (>= 3.0.0, < 6.0)
regexp_parser (2.9.0) regexp_parser (2.9.0)
reline (0.5.0) reline (0.5.1)
io-console (~> 0.5) io-console (~> 0.5)
request_store (1.5.1) request_store (1.5.1)
rack (>= 1.4) rack (>= 1.4)

View file

@ -57,13 +57,11 @@ module ContextHelper
end end
def serialized_context(named_contexts_map, context_extensions_map) def serialized_context(named_contexts_map, context_extensions_map)
context_array = []
named_contexts = named_contexts_map.keys named_contexts = named_contexts_map.keys
context_extensions = context_extensions_map.keys context_extensions = context_extensions_map.keys
named_contexts.each do |key| context_array = named_contexts.map do |key|
context_array << NAMED_CONTEXT_MAP[key] NAMED_CONTEXT_MAP[key]
end end
extensions = context_extensions.each_with_object({}) do |key, h| extensions = context_extensions.each_with_object({}) do |key, h|

View file

@ -705,7 +705,7 @@
"status.edited_x_times": "Editat {count, plural, one {{count} vegada} other {{count} vegades}}", "status.edited_x_times": "Editat {count, plural, one {{count} vegada} other {{count} vegades}}",
"status.embed": "Incrusta", "status.embed": "Incrusta",
"status.favourite": "Favorit", "status.favourite": "Favorit",
"status.favourites": "{count, plural, one {# favorit} other {# favorits}}", "status.favourites": "{count, plural, one {favorit} other {favorits}}",
"status.filter": "Filtra aquest tut", "status.filter": "Filtra aquest tut",
"status.filtered": "Filtrada", "status.filtered": "Filtrada",
"status.hide": "Amaga el tut", "status.hide": "Amaga el tut",
@ -726,7 +726,7 @@
"status.reblog": "Impulsa", "status.reblog": "Impulsa",
"status.reblog_private": "Impulsa amb la visibilitat original", "status.reblog_private": "Impulsa amb la visibilitat original",
"status.reblogged_by": "impulsat per {name}", "status.reblogged_by": "impulsat per {name}",
"status.reblogs": "{count, plural, one {# impuls} other {# impulsos}}", "status.reblogs": "{count, plural, one {impuls} other {impulsos}}",
"status.reblogs.empty": "Encara no ha impulsat ningú aquest tut. Quan algú ho faci, apareixerà aquí.", "status.reblogs.empty": "Encara no ha impulsat ningú aquest tut. Quan algú ho faci, apareixerà aquí.",
"status.redraft": "Esborra i reescriu", "status.redraft": "Esborra i reescriu",
"status.remove_bookmark": "Elimina el marcador", "status.remove_bookmark": "Elimina el marcador",

View file

@ -83,7 +83,7 @@
"admin.impact_report.instance_follows": "I seguaci che i loro utenti perderebbero", "admin.impact_report.instance_follows": "I seguaci che i loro utenti perderebbero",
"admin.impact_report.title": "Riepilogo dell'impatto", "admin.impact_report.title": "Riepilogo dell'impatto",
"alert.rate_limited.message": "Sei pregato di riprovare dopo le {retry_time, time, medium}.", "alert.rate_limited.message": "Sei pregato di riprovare dopo le {retry_time, time, medium}.",
"alert.rate_limited.title": "Tasso limitato", "alert.rate_limited.title": "Limitazione per eccesso di richieste",
"alert.unexpected.message": "Si è verificato un errore imprevisto.", "alert.unexpected.message": "Si è verificato un errore imprevisto.",
"alert.unexpected.title": "Oops!", "alert.unexpected.title": "Oops!",
"announcement.announcement": "Annuncio", "announcement.announcement": "Annuncio",

View file

@ -449,9 +449,9 @@
"time_remaining.seconds": "{number, plural, one {# секунд} other {# секунд}} калды", "time_remaining.seconds": "{number, plural, one {# секунд} other {# секунд}} калды",
"timeline_hint.resources.statuses": "Older toots", "timeline_hint.resources.statuses": "Older toots",
"trends.counter_by_accounts": "{count, plural, one {{counter} person} other {{counter} people}} in the past {days, plural, one {day} other {# days}}", "trends.counter_by_accounts": "{count, plural, one {{counter} person} other {{counter} people}} in the past {days, plural, one {day} other {# days}}",
"units.short.billion": "{count}Млрд", "units.short.billion": "{count} млрд",
"units.short.million": "{count}Млн", "units.short.million": "{count} млн",
"units.short.thousand": "{count}М", "units.short.thousand": "{count} мең",
"upload_form.audio_description": "Describe for people with hearing loss", "upload_form.audio_description": "Describe for people with hearing loss",
"upload_form.description": "Describe for the visually impaired", "upload_form.description": "Describe for the visually impaired",
"upload_form.edit": "Үзгәртү", "upload_form.edit": "Үзгәртү",

View file

@ -6,7 +6,7 @@ tt:
accounts: accounts:
follow: Языл follow: Языл
followers: followers:
other: Язылучы other: язылучы
following: Язылгансыз following: Язылгансыз
posts: posts:
other: Язма other: Язма
@ -137,14 +137,14 @@ tt:
new_users: яңа кулланучылар new_users: яңа кулланучылар
software: Программа тәэминаты software: Программа тәэминаты
title: Идарә аслыгы title: Идарә аслыгы
website: Вебсайт website: Веб-сайт
domain_allows: domain_allows:
export: Экспортлау export: Экспорт
import: Импортлау import: Импорт
domain_blocks: domain_blocks:
domain: Домен domain: Домен
export: Экспортлау export: Экспорт
import: Импортлау import: Импорт
new: new:
severity: severity:
noop: Бернинди дә noop: Бернинди дә
@ -438,8 +438,8 @@ tt:
decimal_units: decimal_units:
format: "%n %u" format: "%n %u"
units: units:
billion: Млрд billion: млрд
million: Млн million: млн
quadrillion: Квадрлн quadrillion: Квадрлн
thousand: Мең thousand: Мең
trillion: Трлн trillion: Трлн
@ -455,7 +455,7 @@ tt:
preferences: preferences:
other: Башка other: Башка
privacy_policy: privacy_policy:
title: Хосусыйлык Сәясәте title: Хосусыйлык сәясәте
relationships: relationships:
dormant: Актив түгел dormant: Актив түгел
followers: Язылучылар followers: Язылучылар

View file

@ -35,10 +35,8 @@ module Mastodon::CLI
aggregate = Concurrent::AtomicFixnum.new(0) aggregate = Concurrent::AtomicFixnum.new(0)
scope.reorder(nil).find_in_batches do |items| scope.reorder(nil).find_in_batches do |items|
futures = [] futures = items.map do |item|
Concurrent::Future.execute(executor: pool) do
items.each do |item|
futures << Concurrent::Future.execute(executor: pool) do
if !progress.total.nil? && progress.progress + 1 > progress.total if !progress.total.nil? && progress.progress + 1 > progress.total
# The number of items has changed between start and now, # The number of items has changed between start and now,
# since there is no good way to predict the final count from # since there is no good way to predict the final count from

View file

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
Fabricator(:preview_card_provider) do Fabricator(:preview_card_provider) do
domain { Faker::Internet.domain_name } domain { sequence(:domain) { |i| "#{i}#{Faker::Internet.domain_name}" } }
end end

View file

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
Fabricator(:unavailable_domain) do Fabricator(:unavailable_domain) do
domain { Faker::Internet.domain_name } domain { sequence(:domain) { |i| "#{i}#{Faker::Internet.domain_name}" } }
end end