diff --git a/.haml-lint.yml b/.haml-lint.yml index 9df440dc95..7dbc88e9db 100644 --- a/.haml-lint.yml +++ b/.haml-lint.yml @@ -2,7 +2,6 @@ inherits_from: .haml-lint_todo.yml exclude: - 'vendor/**/*' - - lib/templates/haml/scaffold/_form.html.haml require: - ./lib/linter/haml_middle_dot.rb diff --git a/Gemfile.lock b/Gemfile.lock index 300b8073b5..11baf28f8f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -198,7 +198,7 @@ GEM irb (~> 1.10) reline (>= 0.3.8) debug_inspector (1.2.0) - devise (4.9.3) + devise (4.9.4) bcrypt (~> 3.0) orm_adapter (~> 0.1) railties (>= 4.1.0) @@ -456,7 +456,7 @@ GEM net-smtp (0.4.0.1) net-protocol nio4r (2.7.1) - nokogiri (1.16.3) + nokogiri (1.16.4) mini_portile2 (~> 2.8.2) racc (~> 1.4) nsa (0.3.0) @@ -607,7 +607,7 @@ GEM redlock (1.3.2) redis (>= 3.0.0, < 6.0) regexp_parser (2.9.0) - reline (0.5.0) + reline (0.5.1) io-console (~> 0.5) request_store (1.5.1) rack (>= 1.4) diff --git a/app/helpers/context_helper.rb b/app/helpers/context_helper.rb index 6ab4ec1425..804c48c7b0 100644 --- a/app/helpers/context_helper.rb +++ b/app/helpers/context_helper.rb @@ -57,13 +57,11 @@ module ContextHelper end def serialized_context(named_contexts_map, context_extensions_map) - context_array = [] - named_contexts = named_contexts_map.keys context_extensions = context_extensions_map.keys - named_contexts.each do |key| - context_array << NAMED_CONTEXT_MAP[key] + context_array = named_contexts.map do |key| + NAMED_CONTEXT_MAP[key] end extensions = context_extensions.each_with_object({}) do |key, h| diff --git a/app/javascript/mastodon/locales/ca.json b/app/javascript/mastodon/locales/ca.json index 37990cdb2e..6f0dd93760 100644 --- a/app/javascript/mastodon/locales/ca.json +++ b/app/javascript/mastodon/locales/ca.json @@ -705,7 +705,7 @@ "status.edited_x_times": "Editat {count, plural, one {{count} vegada} other {{count} vegades}}", "status.embed": "Incrusta", "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.filtered": "Filtrada", "status.hide": "Amaga el tut", @@ -726,7 +726,7 @@ "status.reblog": "Impulsa", "status.reblog_private": "Impulsa amb la visibilitat original", "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.redraft": "Esborra i reescriu", "status.remove_bookmark": "Elimina el marcador", diff --git a/app/javascript/mastodon/locales/it.json b/app/javascript/mastodon/locales/it.json index fd12ee298b..4679d83410 100644 --- a/app/javascript/mastodon/locales/it.json +++ b/app/javascript/mastodon/locales/it.json @@ -83,7 +83,7 @@ "admin.impact_report.instance_follows": "I seguaci che i loro utenti perderebbero", "admin.impact_report.title": "Riepilogo dell'impatto", "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.title": "Oops!", "announcement.announcement": "Annuncio", diff --git a/app/javascript/mastodon/locales/tt.json b/app/javascript/mastodon/locales/tt.json index 82d45205c2..9a402472d9 100644 --- a/app/javascript/mastodon/locales/tt.json +++ b/app/javascript/mastodon/locales/tt.json @@ -449,9 +449,9 @@ "time_remaining.seconds": "{number, plural, one {# секунд} other {# секунд}} калды", "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}}", - "units.short.billion": "{count}Млрд", - "units.short.million": "{count}Млн", - "units.short.thousand": "{count}М", + "units.short.billion": "{count} млрд", + "units.short.million": "{count} млн", + "units.short.thousand": "{count} мең", "upload_form.audio_description": "Describe for people with hearing loss", "upload_form.description": "Describe for the visually impaired", "upload_form.edit": "Үзгәртү", diff --git a/config/locales/tt.yml b/config/locales/tt.yml index c1a22a4ca8..82bb18c9ae 100644 --- a/config/locales/tt.yml +++ b/config/locales/tt.yml @@ -6,7 +6,7 @@ tt: accounts: follow: Языл followers: - other: Язылучы + other: язылучы following: Язылгансыз posts: other: Язма @@ -137,14 +137,14 @@ tt: new_users: яңа кулланучылар software: Программа тәэминаты title: Идарә аслыгы - website: Вебсайт + website: Веб-сайт domain_allows: - export: Экспортлау - import: Импортлау + export: Экспорт + import: Импорт domain_blocks: domain: Домен - export: Экспортлау - import: Импортлау + export: Экспорт + import: Импорт new: severity: noop: Бернинди дә @@ -438,8 +438,8 @@ tt: decimal_units: format: "%n %u" units: - billion: Млрд - million: Млн + billion: млрд + million: млн quadrillion: Квадрлн thousand: Мең trillion: Трлн @@ -455,7 +455,7 @@ tt: preferences: other: Башка privacy_policy: - title: Хосусыйлык Сәясәте + title: Хосусыйлык сәясәте relationships: dormant: Актив түгел followers: Язылучылар diff --git a/lib/mastodon/cli/progress_helper.rb b/lib/mastodon/cli/progress_helper.rb index 4fcc47a7f7..f22492afcf 100644 --- a/lib/mastodon/cli/progress_helper.rb +++ b/lib/mastodon/cli/progress_helper.rb @@ -35,10 +35,8 @@ module Mastodon::CLI aggregate = Concurrent::AtomicFixnum.new(0) scope.reorder(nil).find_in_batches do |items| - futures = [] - - items.each do |item| - futures << Concurrent::Future.execute(executor: pool) do + futures = items.map do |item| + Concurrent::Future.execute(executor: pool) do if !progress.total.nil? && progress.progress + 1 > progress.total # The number of items has changed between start and now, # since there is no good way to predict the final count from diff --git a/lib/templates/haml/scaffold/_form.html.haml b/lib/templates/haml/scaffold/_form.html.haml.tt similarity index 100% rename from lib/templates/haml/scaffold/_form.html.haml rename to lib/templates/haml/scaffold/_form.html.haml.tt diff --git a/spec/fabricators/preview_card_provider_fabricator.rb b/spec/fabricators/preview_card_provider_fabricator.rb index 78db710003..3a027623f7 100644 --- a/spec/fabricators/preview_card_provider_fabricator.rb +++ b/spec/fabricators/preview_card_provider_fabricator.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true Fabricator(:preview_card_provider) do - domain { Faker::Internet.domain_name } + domain { sequence(:domain) { |i| "#{i}#{Faker::Internet.domain_name}" } } end diff --git a/spec/fabricators/unavailable_domain_fabricator.rb b/spec/fabricators/unavailable_domain_fabricator.rb index cb9707020a..88e605c36e 100644 --- a/spec/fabricators/unavailable_domain_fabricator.rb +++ b/spec/fabricators/unavailable_domain_fabricator.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true Fabricator(:unavailable_domain) do - domain { Faker::Internet.domain_name } + domain { sequence(:domain) { |i| "#{i}#{Faker::Internet.domain_name}" } } end