1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
Commit graph

8 commits

Author SHA1 Message Date
Kazuki Nishikawa
93815b234b
Fix Puma::StateFile#load returns empty string instead of nil (#2810)
Bug introduced in 2b6968f9d4 #2784

Until 5.5.2, empty values were read as `nil`.
Since 5.6.0, empty values are read as `""`.
2022-01-27 08:16:01 -06:00
MSP-Greg
2b6968f9d4
Remove yaml (psych) requirement in StateFile (#2784)
Don't require yaml in state_file.rb
cli.rb & launcher.rb - deprecate state file constants
2022-01-01 15:52:48 -06:00
MSP-Greg
f1c7fcde9a
File.open -> File.read, File.write (#2493)
File.open creates an IO object, which may appear when looking at 'leftover' IO objects.
2020-11-27 08:47:33 -07:00
Yoann Lecuyer
f71018f665 Minor: Add running_from to state_file 2020-05-23 19:27:51 +02:00
sthirugn
3060a75fcc
Add optional state file permissions (#2238)
Before this commit, it was possible that the puma.state file would be world readable which may not be desirable in production environments. This introduces a new optional configuration option to set desired state file permissions.
2020-05-07 12:13:35 +09:00
schneems
88e51fb08e Freeze all the strings!
Reduces runtime allocation by freezing string literals by default.

We could also remove a ton of manual `.freeze` calls, however the ruby supported version is 2.2 and the magic comment only targets 2.3+.
2018-09-17 11:41:14 -05:00
Santiago Pastorino
3d19c2373d Move require 'yaml' to state_file.rb
f788af0c8f moved YAML related code to
state_file.rb but didn't move the require from control_cli.rb to
state_file.rb
2016-02-21 02:01:37 -03:00
Evan Phoenix
f788af0c8f Continue API cleanup, preparing for 3.0 2016-02-06 19:00:29 -08:00