puma 6.1.0 → 6.1.1

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: 1df130ccb43143b23de48c5dc2f0890165e078eba4f09432b0a73411b5b54a94
4
- data.tar.gz: e562fc40625877488fd13719e9620f2401394a33a74bee46e5a4731becfab6ae
3
+ metadata.gz: 6a987a441328b2f8be7f7a147af233c0c41b393b98714ed621e2508dc28819d8
4
+ data.tar.gz: bc30afa48b1647abf34f6cf362e3374b76a7e25c605f3ed7e5fd1e7c96dad8fb
5
5
  SHA512:
6
- metadata.gz: e436db46a9761b73dc370a38e1e59a0e2ac1e385ecf578fc631fc4671329b9cbcfd634e9bed73e17657c13eaf53387a55726d9c986739f6f9ccdb4223fea026e
7
- data.tar.gz: db4526766e567440a95129831ef30cea038a98e9d613dc76308c96d0d81913d4e15fbb9c1c8d111ce395af0d908268316cb65c04511dbfbd8361fab31a62634a
6
+ metadata.gz: 4a1a05276e82ffd6d012bc75e6f38c2bf30932cb9cd9a6b73a14d783e012f4b942128a72bf0bb8f9bbf8a0062c03d5df234a6baccbc490a2bb64150f480b531f
7
+ data.tar.gz: 6127f2e9b3fd82795696ecd8e0f2016b7252f71d86433087c42c826c7d0d1cc8d2ceda8e4243bf99969d96ba261172e39d59e977ba24d5d75225d7707c64f2a9
data/History.md CHANGED
@@ -1,4 +1,10 @@
1
- ## 6.1.0 / 2022-02-12
1
+ ## 6.1.1 / 2023-02-28
2
+
3
+ * Bugfixes
4
+ * We no longer try to use the systemd plugin for JRuby ([#3079])
5
+ * Allow ::Rack::Handler::Puma.run to work regardless of whether Rack/Rackup are loaded ([#3080])
6
+
7
+ ## 6.1.0 / 2023-02-12
2
8
 
3
9
  * Features
4
10
  * WebSocket support via partial hijack ([#3058], [#3007])
@@ -1948,6 +1954,8 @@ be added back in a future date when a java Puma::MiniSSL is added.
1948
1954
  * Bugfixes
1949
1955
  * Your bugfix goes here <Most recent on the top, like GitHub> (#Github Number)
1950
1956
 
1957
+ [#3079]:https://github.com/puma/puma/pull/3079 "PR by @mohamedhafez, merged 2023-02-24"
1958
+ [#3080]:https://github.com/puma/puma/pull/3080 "PR by @MSP-Greg, merged 2023-02-16"
1951
1959
  [#3058]:https://github.com/puma/puma/pull/3058 "PR by @dentarg, merged 2023-01-29"
1952
1960
  [#3007]:https://github.com/puma/puma/issues/3007 "Issue by @MSP-Greg, closed 2023-01-29"
1953
1961
  [#3011]:https://github.com/puma/puma/pull/3011 "PR by @joaomarcos96, merged 2023-01-03"
data/lib/puma/const.rb CHANGED
@@ -99,7 +99,7 @@ module Puma
99
99
  # too taxing on performance.
100
100
  module Const
101
101
 
102
- PUMA_VERSION = VERSION = "6.1.0"
102
+ PUMA_VERSION = VERSION = "6.1.1"
103
103
  CODE_NAME = "The Way Up"
104
104
 
105
105
  PUMA_SERVER_STRING = ["puma", PUMA_VERSION, CODE_NAME].join(" ").freeze
data/lib/puma/detect.rb CHANGED
@@ -17,6 +17,8 @@ module Puma
17
17
  IS_WINDOWS = !!(RUBY_PLATFORM =~ /mswin|ming|cygwin/) ||
18
18
  IS_JRUBY && RUBY_DESCRIPTION.include?('mswin')
19
19
 
20
+ IS_LINUX = !(IS_OSX || IS_WINDOWS)
21
+
20
22
  # @version 5.2.0
21
23
  IS_MRI = (RUBY_ENGINE == 'ruby' || RUBY_ENGINE.nil?)
22
24
 
data/lib/puma/launcher.rb CHANGED
@@ -59,7 +59,10 @@ module Puma
59
59
 
60
60
  @environment = conf.environment
61
61
 
62
- if ENV["NOTIFY_SOCKET"]
62
+ # Load the systemd integration if we detect systemd's NOTIFY_SOCKET.
63
+ # Skip this on JRuby though, because it is incompatible with the systemd
64
+ # integration due to https://github.com/jruby/jruby/issues/6504
65
+ if ENV["NOTIFY_SOCKET"] && !Puma.jruby?
63
66
  @config.plugins.create('systemd')
64
67
  end
65
68
 
@@ -120,7 +120,8 @@ if Object.const_defined? :Rackup
120
120
  register :puma, Puma
121
121
  end
122
122
  end
123
- elsif Object.const_defined?(:Rack) && Rack::RELEASE < '3'
123
+ else
124
+ do_register = Object.const_defined?(:Rack) && Rack::RELEASE < '3'
124
125
  module Rack
125
126
  module Handler
126
127
  module Puma
@@ -128,9 +129,7 @@ elsif Object.const_defined?(:Rack) && Rack::RELEASE < '3'
128
129
  include ::Puma::RackHandler
129
130
  end
130
131
  end
131
- register :puma, Puma
132
132
  end
133
133
  end
134
- else
135
- raise "You must install the rackup gem when using Rack 3"
134
+ ::Rack::Handler.register(:puma, ::Rack::Handler::Puma) if do_register
136
135
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Phoenix