diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b449fc..c8babf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ permissions: packages: write env: - DOCKER_REPO: ghcr.io/discourse/prometheus_exporter + DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/prometheus_exporter jobs: build: @@ -58,7 +58,7 @@ jobs: - name: Release gem id: release - uses: discourse/publish-rubygems-action@v2 + uses: discourse/publish-rubygems-action@v3 env: RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} GIT_EMAIL: team@discourse.org diff --git a/test/middleware_test.rb b/test/middleware_test.rb index 69826cc..734a608 100644 --- a/test/middleware_test.rb +++ b/test/middleware_test.rb @@ -168,7 +168,7 @@ def test_patch_called_with_prepend_instrument Object.stub_const(:Dalli, Module) do ::Dalli.stub_const(:Client) do mock = Minitest::Mock.new - mock.expect :call, nil, [Dalli::Client, Array, :memcache, { instrument: :prepend }] + mock.expect :call, nil, [Dalli::Client, Array, :memcache], instrument: :prepend ::PrometheusExporter::Instrumentation::MethodProfiler.stub(:patch, mock) do configure_middleware(instrument: :prepend) end @@ -219,7 +219,7 @@ def test_patch_called_with_alias_method_instrument Object.stub_const(:Dalli, Module) do ::Dalli.stub_const(:Client) do mock = Minitest::Mock.new - mock.expect :call, nil, [Dalli::Client, Array, :memcache, { instrument: :alias_method }] + mock.expect :call, nil, [Dalli::Client, Array, :memcache], instrument: :alias_method ::PrometheusExporter::Instrumentation::MethodProfiler.stub(:patch, mock) do configure_middleware(instrument: :alias_method) end