Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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 }}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
1 change: 1 addition & 0 deletions lib/puma/plugin/pool_usage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require "json"
require "puma/plugin"
require "logger"
require "rails"

# Plugin that outputs pool usage into Rails logs.
Expand Down
4 changes: 2 additions & 2 deletions puma-pool-usage.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down