puma-daemon 0.2.3 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7b8150de79698d1088f01144bb81576619499a8fe9aef1100ff1af34ba494e6
4
- data.tar.gz: d5d18c2979ed94fffb92a54dcd84c4376bd4fb38496fb0355a4777f7735fc820
3
+ metadata.gz: 6965f4d287468b5f0f78ed99f20843af27eb37e57d326a17ca1df75ec1e3b71f
4
+ data.tar.gz: 12124be03fd4ac5744fe56e343faa4ea9a702ac2be5b79e158a20df5f775416e
5
5
  SHA512:
6
- metadata.gz: a4795d230cc70bfe87b7477f0fbbf07e323daf828d0e592bfe7c39f163920102e9fd058e9033aef7861d04b756541816b632f467dcff52e68c847e639f4e2f52
7
- data.tar.gz: 60ff6ab16ece8f09c415e5be2a967df283159d6415d36ab5047c537b23f402fd3c55066e12c488e1f5f812c92dc478f15a305f8081ceb815e655113bfd84242f
6
+ metadata.gz: be859c00c7aae094ab6157ebf9dd0aa7a03af62e897bbddd1c536674c986ba5db7283b3ffef9c265ab8a7663e88d7fb85e64af79e11453162d29f6ecafa4b156
7
+ data.tar.gz: e49167201cc976e7421c846e5aa4c203315704403fe7af362b509f8a9976d3de9a36dd88ce93994a5432decb242fb38a634c84712af51d35d3df944af4087b21
@@ -35,6 +35,6 @@ jobs:
35
35
  files: codecov-result.json
36
36
  flags: unittests # optional
37
37
  name: codecov-umbrella # optional
38
- fail_ci_if_error: true # optional (default = false)
38
+ fail_ci_if_error: false # optional (default = false)
39
39
  verbose: true # optional (default = false)
40
40
 
data/.rubocop.yml CHANGED
@@ -23,3 +23,6 @@ Layout/LineLength:
23
23
  Naming/FileName:
24
24
  Exclude:
25
25
  - 'lib/puma-daemon.rb'
26
+
27
+ # Gemspec/DevelopmentDependencies:
28
+ # Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.3.0](https://github.com/kigster/puma-daemon/tree/v0.3.0) (2023-03-14)
4
+
5
+ [Full Changelog](https://github.com/kigster/puma-daemon/compare/v0.2.3...v0.3.0)
6
+
7
+ ## [v0.2.3](https://github.com/kigster/puma-daemon/tree/v0.2.3) (2023-03-14)
8
+
9
+ [Full Changelog](https://github.com/kigster/puma-daemon/compare/v0.2.2...v0.2.3)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Attempting to properly track code coverage after fork\(\) [\#15](https://github.com/kigster/puma-daemon/pull/15) ([kigster](https://github.com/kigster))
14
+ - Adding a proper codecov and updating READFME [\#14](https://github.com/kigster/puma-daemon/pull/14) ([kigster](https://github.com/kigster))
15
+ - \[Snyk\] Security upgrade ruby from 3.0.0 to 3.1 [\#12](https://github.com/kigster/puma-daemon/pull/12) ([snyk-bot](https://github.com/snyk-bot))
16
+
17
+ ## [v0.2.2](https://github.com/kigster/puma-daemon/tree/v0.2.2) (2023-03-07)
18
+
19
+ [Full Changelog](https://github.com/kigster/puma-daemon/compare/v0.2.1...v0.2.2)
20
+
3
21
  ## [v0.2.1](https://github.com/kigster/puma-daemon/tree/v0.2.1) (2023-03-07)
4
22
 
5
23
  [Full Changelog](https://github.com/kigster/puma-daemon/compare/v0.2.0...v0.2.1)
data/Gemfile.puma-v5 CHANGED
@@ -6,6 +6,7 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'puma', '~> 5.0'
9
+ gem 'rack', '~> 2'
9
10
  gem 'rake', '~> 13.0'
10
11
 
11
12
  group :test do
data/Gemfile.puma-v6 CHANGED
@@ -6,6 +6,7 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'puma', '~> 6.0'
9
+ gem 'rack', '~> 2'
9
10
  gem 'rake', '~> 13.0'
10
11
 
11
12
  group :test do
data/Makefile CHANGED
@@ -32,6 +32,11 @@ test-all: ## Test all supported Puma Versions
32
32
  make test
33
33
  make puma-v6
34
34
  make test
35
+
36
+ rubocop: ## Run rubocop
37
+ @bundle check || bundle install
38
+ @bundle exec rubocop --format=progress
39
+
35
40
 
36
41
  docker-build-ruby: ## Builds the Docker image by compiling ruby 3.0.0
37
42
  @docker build -f Dockerfile.build -t puma-daemon:latest .
@@ -35,9 +35,11 @@ module Puma
35
35
  end
36
36
 
37
37
  def log(str)
38
- if super.respond_to?(:log)
39
- super(str) unless str == 'Use Ctrl-C to stop'
40
- else
38
+ return if str =~ /Ctrl-C/
39
+
40
+ begin
41
+ super(str)
42
+ rescue StandardError
41
43
  puts(str)
42
44
  end
43
45
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Puma
4
4
  module Daemon
5
- VERSION = '0.2.3'
5
+ VERSION = '0.3.2'
6
6
  end
7
7
  end
data/puma-daemon.gemspec CHANGED
@@ -11,19 +11,17 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Restore somewhat Puma's ability to self-daemonize, since Puma 5.0 dropped it"
12
12
  spec.description = <<~DESCRIPTION
13
13
 
14
- In version 5.0 the authors of the popular Ruby web server Puma chose
15
- to remove the daemonization support from Puma, because the code wasn't wall maintained,
16
- and because other and perhaps better options exist (such as systemd, etc), not to
17
- mention many people have switched to Kubernetes and Docker, where you want to start
18
- all servers on the foreground.
14
+ In version 5.0 the authors of the popular Ruby web server Puma chose to remove the
15
+ daemonization support from Puma, because the code wasn't wall maintained,
16
+ and because other and better options exist for production deployments. For example
17
+ systemd, Docker/Kubernetes, Heroku, etc.
19
18
 
20
- And yet, something useful and simple got lost in our humble opinion. Some folks were
21
- indeed happily using the `--daemonize` feature until in 5.0 they got an error that this flag is
22
- not supported.
19
+ Having said that, it was neat and often useful to daemonize Puma in development.
20
+ This gem adds this support to Puma 5 & 6 (hopefully) without breaking anything in Puma
21
+ itself.
23
22
 
24
- So, if you want to use the latest and greatest Puma 5+, but have it self-daemonize,
25
- this gem is for you. Just use *pumad* binary instead of *puma*, or require 'puma/daemon' inside
26
- your config file.
23
+ So, if you want to use the latest and greatest Puma 5+, but prefer to keep using built-in
24
+ daemonization, this gem if for you.
27
25
  DESCRIPTION
28
26
 
29
27
  spec.homepage = 'https://github.com/kigster/puma-daemon'
@@ -57,9 +55,7 @@ Gem::Specification.new do |spec|
57
55
  spec.add_development_dependency 'simplecov'
58
56
  spec.add_development_dependency 'yard'
59
57
 
60
- # Uncomment to register a new dependency of your gem
61
- # spec.add_dependency "example-gem", "~> 1.0"
62
-
63
58
  # For more information and examples about making a new gem, checkout our
64
59
  # guide at: https://bundler.io/guides/creating_gem.html
60
+ spec.metadata['rubygems_mfa_required'] = 'true'
65
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma-daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Gredeskoul
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2023-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -150,16 +150,14 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- description: "\nIn version 5.0 the authors of the popular Ruby web server Puma chose\nto
154
- remove the daemonization support from Puma, because the code wasn't wall maintained,
155
- \nand because other and perhaps better options exist (such as systemd, etc), not
156
- to \nmention many people have switched to Kubernetes and Docker, where you want
157
- to start \nall servers on the foreground.\n\nAnd yet, something useful and simple
158
- got lost in our humble opinion. Some folks were \nindeed happily using the `--daemonize`
159
- feature until in 5.0 they got an error that this flag is \nnot supported.\n\nSo,
160
- if you want to use the latest and greatest Puma 5+, but have it self-daemonize,
161
- \nthis gem is for you. Just use *pumad* binary instead of *puma*, or require 'puma/daemon'
162
- inside\nyour config file.\n"
153
+ description: "\nIn version 5.0 the authors of the popular Ruby web server Puma chose
154
+ to remove the \ndaemonization support from Puma, because the code wasn't wall maintained,\nand
155
+ because other and better options exist for production deployments. For example\nsystemd,
156
+ Docker/Kubernetes, Heroku, etc. \n\nHaving said that, it was neat and often useful
157
+ to daemonize Puma in development.\nThis gem adds this support to Puma 5 & 6 (hopefully)
158
+ without breaking anything in Puma\nitself.\n\nSo, if you want to use the latest
159
+ and greatest Puma 5+, but prefer to keep using built-in\ndaemonization, this gem
160
+ if for you.\n"
163
161
  email:
164
162
  - kigster@gmail.com
165
163
  executables:
@@ -208,6 +206,7 @@ metadata:
208
206
  homepage_uri: https://github.com/kigster/puma-daemon
209
207
  source_code_uri: https://github.com/kigster/puma-daemon
210
208
  changelog_uri: https://github.com/kigster/puma-daemon/blob/master/CHANGELOG.md
209
+ rubygems_mfa_required: 'true'
211
210
  post_install_message:
212
211
  rdoc_options: []
213
212
  require_paths:
@@ -223,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
222
  - !ruby/object:Gem::Version
224
223
  version: '0'
225
224
  requirements: []
226
- rubygems_version: 3.3.22
225
+ rubygems_version: 3.4.13
227
226
  signing_key:
228
227
  specification_version: 4
229
228
  summary: Restore somewhat Puma's ability to self-daemonize, since Puma 5.0 dropped