From: Tom Hughes Date: Wed, 14 Aug 2024 17:57:05 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/5076' X-Git-Tag: live~786 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1f776bdcd85029a61cab2edf6daed740500f7f9d?hp=2a2d1d50d3ebe1b2b2435317d9ee63e7c0c94b5e Merge remote-tracking branch 'upstream/pull/5076' --- 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/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)