diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f4c280c..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 @@ -22,12 +21,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 +29,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. 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. 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"