-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Gemspec versions There's no reason to block pessimistically (`~>`) to any of these versions. Also add dependencies (bigdecimal) which is warned about in a deprecation warning: ``` /Users/rschneeman/.gem/ruby/3.3.1/gems/get_process_mem-0.2.7/lib/get_process_mem.rb:2: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile or gemspec. Also contact author of get_process_mem-0.2.7 to add bigdecimal into its gemspec. ``` * Switch to testing on modern Ruby versions This doesn't directly mean that these versions won't work, but we no longer make claims about their support. * Changelog * Switch to standardrb for linting * Apply standard linting styles ``` $ be standardrb --fix standard: Use Ruby Standard Style (https://github.com/standardrb/standard) lib/puma_worker_killer/puma_memory.rb:78:20: Style/HashConversion: Prefer ary.to_h to Hash[ary]. standard: Run `standardrb --fix-unsafely` to DANGEROUSLY fix one problem. ``` * Fix uninitialized warning ``` /Users/rschneeman/Documents/projects/puma_worker_killer/puma_worker_killer.gemspec:17: warning: global variable `$INPUT_RECORD_SEPARATOR' not initialized ```
- Loading branch information
Showing
20 changed files
with
116 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruby_version: 3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
# This is the last version which supports Ruby 2.3 | ||
gem 'rubocop', '~> 0.81.0', require: false | ||
gem "standard" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require "bundler/gem_tasks" | ||
|
||
require 'rake' | ||
require 'rake/testtask' | ||
require "rake" | ||
require "rake/testtask" | ||
|
||
task :default => [:test] | ||
task default: [:test] | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << 'lib' | ||
t.libs << 'test' | ||
t.pattern = 'test/**/*_test.rb' | ||
t.libs << "lib" | ||
t.libs << "test" | ||
t.pattern = "test/**/*_test.rb" | ||
t.verbose = false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module PumaWorkerKiller | ||
VERSION = '0.3.1' | ||
VERSION = "0.3.1" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'puma_worker_killer/version' | ||
require "puma_worker_killer/version" | ||
|
||
Gem::Specification.new do |gem| | ||
gem.name = 'puma_worker_killer' | ||
gem.version = PumaWorkerKiller::VERSION | ||
gem.authors = ['Richard Schneeman'] | ||
gem.email = ['[email protected]'] | ||
gem.description = ' Kills pumas, the code kind ' | ||
gem.summary = ' If you have a memory leak in your web code puma_worker_killer can keep it in check. ' | ||
gem.homepage = 'https://github.com/schneems/puma_worker_killer' | ||
gem.license = 'MIT' | ||
gem.name = "puma_worker_killer" | ||
gem.version = PumaWorkerKiller::VERSION | ||
gem.authors = ["Richard Schneeman"] | ||
gem.email = ["[email protected]"] | ||
gem.description = " Kills pumas, the code kind " | ||
gem.summary = " If you have a memory leak in your web code puma_worker_killer can keep it in check. " | ||
gem.homepage = "https://github.com/schneems/puma_worker_killer" | ||
gem.license = "MIT" | ||
|
||
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) | ||
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) } | ||
gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) | ||
gem.require_paths = ['lib'] | ||
gem.files = `git ls-files`.split($/) | ||
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) } | ||
gem.require_paths = ["lib"] | ||
|
||
gem.add_dependency 'get_process_mem', '~> 0.2' | ||
gem.add_dependency 'puma', '>= 2.7' | ||
gem.add_development_dependency 'rack', '~> 2.0' | ||
gem.add_development_dependency 'rake', '~> 13.0' | ||
gem.add_development_dependency 'test-unit', '>= 0' | ||
gem.add_development_dependency 'wait_for_it', '~> 0.1' | ||
gem.add_dependency "puma", ">= 2.7" | ||
gem.add_dependency "bigdecimal", ">= 2.0" | ||
gem.add_dependency "get_process_mem", ">= 0.2" | ||
|
||
gem.add_development_dependency "rack", ">= 3.0" | ||
gem.add_development_dependency "rake", ">= 13.0" | ||
gem.add_development_dependency "rackup", ">= 2.1" | ||
gem.add_development_dependency "test-unit", ">= 0" | ||
gem.add_development_dependency "wait_for_it", ">= 0.1" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
load File.expand_path('../fixture_helper.rb', __dir__) | ||
load File.expand_path("../fixture_helper.rb", __dir__) | ||
|
||
before_fork do | ||
require 'puma_worker_killer' | ||
require "puma_worker_killer" | ||
PumaWorkerKiller.start | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.