From: Tom Hughes Date: Wed, 14 Aug 2024 18:02:07 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/5078' X-Git-Tag: live~414 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d010e280af51bb98513615e3f394019490684880?hp=09721c6feeb2e6f26fae5c220e4f4b9e83cbaebc Merge remote-tracking branch 'upstream/pull/5078' --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 34405f778..46ab75482 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: ubuntu: [20.04, 22.04] - ruby: ['3.0', '3.1', '3.2'] + ruby: ['3.0', '3.1', '3.2', '3.3'] runs-on: ubuntu-${{ matrix.ubuntu }} env: RAILS_ENV: test diff --git a/Gemfile b/Gemfile index fcf2ceb4d..dcdfbe27e 100644 --- a/Gemfile +++ b/Gemfile @@ -180,4 +180,7 @@ end group :development, :test do gem "annotate" + + # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem + gem "debug", :require => "debug/prelude" end diff --git a/Gemfile.lock b/Gemfile.lock index 4cb7d0729..e7ec71569 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -170,6 +170,9 @@ GEM sprockets-rails tilt date (3.3.4) + debug (1.9.2) + irb (~> 1.10) + reline (>= 0.3.8) debug_inspector (1.2.0) deep_merge (1.2.2) delayed_job (4.1.11) @@ -627,6 +630,7 @@ DEPENDENCIES connection_pool dalli dartsass-sprockets + debug debug_inspector delayed_job_active_record doorkeeper diff --git a/config/initializers/gd2.rb b/config/initializers/gd2.rb new file mode 100644 index 000000000..0005bd8be --- /dev/null +++ b/config/initializers/gd2.rb @@ -0,0 +1,15 @@ +module OpenStreetMap + module GD2 + module AnimatedGif + def frames_finalizer + proc do + @frames.each do |frame| + ::GD2::GD2FFI.send(:gdFree, frame.ptr) + end + end + end + end + end +end + +GD2::AnimatedGif.prepend(OpenStreetMap::GD2::AnimatedGif) diff --git a/test/controllers/api/nodes_controller_test.rb b/test/controllers/api/nodes_controller_test.rb index d70c92861..d9fabb012 100644 --- a/test/controllers/api/nodes_controller_test.rb +++ b/test/controllers/api/nodes_controller_test.rb @@ -639,12 +639,5 @@ module Api xml.find("//osm/node").first[name] = value.to_s xml end - - ## - # parse some xml - def xml_parse(xml) - parser = XML::Parser.string(xml) - parser.parse - end end end diff --git a/test/system/user_blocks_test.rb b/test/system/user_blocks_test.rb index f710f74aa..6e4f5b471 100644 --- a/test/system/user_blocks_test.rb +++ b/test/system/user_blocks_test.rb @@ -1,6 +1,6 @@ require "application_system_test_case" -class ReportNoteTest < ApplicationSystemTestCase +class UserBlocksSystemTest < ApplicationSystemTestCase test "revoke all link is absent for anonymous users when viewed user has active blocks" do blocked_user = create(:user) create(:user_block, :user => blocked_user)