From: Tom Hughes Date: Tue, 23 Jan 2024 18:39:54 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/4493' X-Git-Tag: live~355 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6163b01f146d97201e0c2d9efff83dd5dbadebf7?hp=ceb9206849dda86f07457d75f4394b154a17224a Merge remote-tracking branch 'upstream/pull/4493' --- diff --git a/.rubocop.yml b/.rubocop.yml index ddfb63cae..1e18afd83 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -68,9 +68,6 @@ Rails/SkipsModelValidations: - 'db/migrate/*.rb' - 'app/controllers/users_controller.rb' -Style/ArgumentsForwarding: - Enabled: false - Style/Documentation: Enabled: false diff --git a/Gemfile.lock b/Gemfile.lock index e0ffd49be..8949abcbf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,7 +3,6 @@ GEM specs: aasm (5.5.0) concurrent-ruby (~> 1.0) - abbrev (0.1.2) actioncable (7.1.3) actionpack (= 7.1.3) activesupport (= 7.1.3) @@ -96,8 +95,8 @@ GEM autoprefixer-rails (10.4.16.0) execjs (~> 2) aws-eventstream (1.3.0) - aws-partitions (1.880.0) - aws-sdk-core (3.190.2) + aws-partitions (1.883.0) + aws-sdk-core (3.190.3) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.8) @@ -123,7 +122,7 @@ GEM erubi (~> 1.4) parser (>= 2.4) smart_properties - bigdecimal (3.1.5) + bigdecimal (3.1.6) binding_of_caller (1.0.0) debug_inspector (>= 0.0.1) bootsnap (1.17.1) @@ -257,8 +256,7 @@ GEM google-protobuf (3.25.2) hashdiff (1.1.0) hashie (5.0.0) - highline (3.0.0) - abbrev + highline (3.0.1) htmlentities (4.3.4) http_accept_language (2.1.1) i18n (1.14.1) @@ -291,7 +289,7 @@ GEM ruby-vips (>= 2.0.17, < 3) image_size (3.4.0) in_threads (1.6.0) - io-console (0.7.1) + io-console (0.7.2) irb (1.11.1) rdoc reline (>= 0.4.2) @@ -333,7 +331,7 @@ GEM mini_portile2 (2.8.5) mini_racer (0.8.0) libv8-node (~> 18.16.0.0) - minitest (5.21.1) + minitest (5.21.2) msgpack (1.7.2) multi_json (1.15.0) multi_xml (0.6.0) @@ -401,7 +399,7 @@ GEM omniauth (~> 2.0) openstreetmap-deadlock_retry (1.3.1) parallel (1.24.0) - parser (3.3.0.4) + parser (3.3.0.5) ast (~> 2.4.1) racc pg (1.5.4) @@ -485,7 +483,7 @@ GEM rouge (4.2.0) rtlcss (0.2.1) mini_racer (>= 0.6.3) - rubocop (1.60.0) + rubocop (1.60.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -502,7 +500,7 @@ GEM rubocop (~> 1.41) rubocop-factory_bot (2.25.1) rubocop (~> 1.41) - rubocop-minitest (0.34.4) + rubocop-minitest (0.34.5) rubocop (>= 1.39, < 2.0) rubocop-ast (>= 1.30.0, < 2.0) rubocop-performance (1.20.2) @@ -528,7 +526,8 @@ GEM google-protobuf (~> 3.23) rake (>= 13.0.0) secure_headers (6.5.0) - selenium-webdriver (4.16.0) + selenium-webdriver (4.17.0) + base64 (~> 0.2) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) @@ -558,7 +557,7 @@ GEM activerecord (>= 5.2) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) - terser (1.1.20) + terser (1.2.0) execjs (>= 0.3.0, < 3) thor (1.3.0) tilt (2.3.0) diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 3bf4cde5f..f15430efa 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -40,7 +40,7 @@
<%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %> - <%= text_field_tag("openid_url", "", :tabindex => 3, :autocomplete => "on", :class => "openid_url form-control") %> + <%= text_field_tag("openid_url", "", :tabindex => 5, :autocomplete => "on", :class => "openid_url form-control") %> (" target="_new"><%= t "accounts.edit.openid.link text" %>)
diff --git a/test/helpers/asset_helper_test.rb b/test/helpers/asset_helper_test.rb index 8a4653b25..c255cc766 100644 --- a/test/helpers/asset_helper_test.rb +++ b/test/helpers/asset_helper_test.rb @@ -2,6 +2,6 @@ require "test_helper" class AssetHelperTest < ActionView::TestCase def test_assets - assert assets("iD").is_a?(Hash) + assert_kind_of Hash, assets("iD") end end diff --git a/test/lib/i18n_test.rb b/test/lib/i18n_test.rb index ea6e4ae27..fe94cbdd3 100644 --- a/test/lib/i18n_test.rb +++ b/test/lib/i18n_test.rb @@ -42,7 +42,7 @@ class I18nTest < ActiveSupport::TestCase assert_includes value, :other, "#{key}.other plural key missing" else - assert value.is_a?(String), "#{key} is not a string" + assert_kind_of String, value, "#{key} is not a string" value.scan(/%\{(\w+)\}/) do assert_includes variables, Regexp.last_match(1), "#{key} uses unknown interpolation variable #{Regexp.last_match(1)}"