From fcee61a1649537ca9840a868a7cb04fcdbb2faf4 Mon Sep 17 00:00:00 2001 From: coderSquirrel Date: Mon, 5 Jan 2026 11:17:55 -0700 Subject: [PATCH 1/4] remove code climate --- .github/workflows/tests.yml | 9 --------- README.md | 2 -- 2 files changed, 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f4c280c..313701c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,12 +22,6 @@ jobs: ruby-version: ${{ matrix.ruby }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - name: Install Code Climate - run: | - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build - - name: Appraisal Install run: bundle exec appraisal install @@ -36,6 +30,3 @@ jobs: - name: Rspec run: bundle exec appraisal rspec - - - name: Code Climate - run: ./cc-test-reporter after-build --exit-code $? --id ${{ secrets.CC_TEST_REPORTER_ID }} diff --git a/README.md b/README.md index d0837d8..3835915 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # Puma Pool Usage ![Tests](https://github.com/simplymadeapps/puma-pool-usage/actions/workflows/tests.yml/badge.svg) -[![Code Climate](https://codeclimate.com/github/simplymadeapps/puma-pool-usage/badges/gpa.svg)](https://codeclimate.com/github/simplymadeapps/puma-pool-usage) -[![Test Coverage](https://codeclimate.com/github/simplymadeapps/puma-pool-usage/badges/coverage.svg)](https://codeclimate.com/github/simplymadeapps/puma-pool-usage/coverage) A Puma plugin that interprets usage statistics for the percentage of your resources under load. Uses Rails to log this statistic. Inspired by [Tomas Ruzicka](https://github.com/LeZuse) and Heroku's pool usage statistics. From 15e278f772d199876e47c5b86eb272065e3a2029 Mon Sep 17 00:00:00 2001 From: coderSquirrel Date: Mon, 5 Jan 2026 11:24:38 -0700 Subject: [PATCH 2/4] appease rubocop --- puma-pool-usage.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puma-pool-usage.gemspec b/puma-pool-usage.gemspec index 070092b..61d331f 100644 --- a/puma-pool-usage.gemspec +++ b/puma-pool-usage.gemspec @@ -25,8 +25,8 @@ Gem::Specification.new do |spec| end spec.require_paths = ["lib"] - spec.add_runtime_dependency "puma", ">= 3.12", "< 7.0" - spec.add_runtime_dependency "rails", ">= 5.0" + spec.add_dependency "puma", ">= 3.12", "< 7.0" + spec.add_dependency "rails", ">= 5.0" spec.add_development_dependency "appraisal" spec.add_development_dependency "bundler", "~> 2.0" From 781efa03b15cd07f1dee4109b2855ee946d58a18 Mon Sep 17 00:00:00 2001 From: coderSquirrel Date: Mon, 5 Jan 2026 11:32:32 -0700 Subject: [PATCH 3/4] adding logger to be accessible for rails --- lib/puma/plugin/pool_usage.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/puma/plugin/pool_usage.rb b/lib/puma/plugin/pool_usage.rb index b903652..5d8d02f 100644 --- a/lib/puma/plugin/pool_usage.rb +++ b/lib/puma/plugin/pool_usage.rb @@ -2,6 +2,7 @@ require "json" require "puma/plugin" +require "logger" require "rails" # Plugin that outputs pool usage into Rails logs. From e52c6f2c358b1af140fb976b60e22d9d4b2a6408 Mon Sep 17 00:00:00 2001 From: coderSquirrel Date: Mon, 5 Jan 2026 11:57:44 -0700 Subject: [PATCH 4/4] remove cc from test workflow --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 313701c..1b51c22 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,6 @@ jobs: matrix: ruby: [2.7.6, 3.0.4, 3.1.2] env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} RAILS_ENV: test steps: - uses: actions/checkout@v2