Date | Commit message (Collapse) |
|
Once again Ruby seems ready to introduce more incompatibilities
and force busywork upon maintainers[1]. In order to avoid
incompatibilities in the future, I used the following Perl
script to prepend `frozen_string_literal: false' to every
Ruby file:
use v5.12;
use autodie;
my $usage = 'perl /path/to/script <LIST_OF_RB_FILES>';
my $fsl = "# frozen_string_literal: false\n";
for my $f (@ARGV) {
open my $fh, '<', $f;
my $s = do { local $/; <$fh> } // die "read($f): $!";
next if $s =~ /^#\s*frozen_string_literal:/sm;
# fsl must be after encoding: line if it exists:
if ($s =~ s/^([ \t]*\#[ \t\-\*\#]+encoding:[^\n]+\n)/$1$fsl/sm
# or after the shebang
|| $s =~ s/^(#![^\n]+\n)/$1$fsl/
# or after embedded switches in rackup files:
|| ($f =~ /\.ru$/ &&
$s =~ s/^(#\\[^\n]+\n)/$1$fsl/)
# or prepend as a last resort:
|| (substr($s, 0, 0) = $fsl)) {
open $fh, '>', $f;
print $fh $s;
close $fh;
}
}
Somebody interested will have to go through every Ruby source
file and enable frozen_string_literal once they've thoroughly
verified it's safe to do so.
[1] https://bugs.ruby-lang.org/issues/20205
|
|
The expiration for bogomips.org is coming up and I'm not
keen on paying or supporting extortionists.
Not wanting to be beholden to ICANN or any powerful
organizations, .onion sites are available to Tor users:
http://raindrops.ou63pmih66umazou.onion/
http://ou63pmih66umazou.onion/raindrops.git/
http://ou63pmih66umazou.onion/raindrops-public/
(the demo is not yet available via .onion, yet, could be a bit)
|
|
Newer rubies have more warnings
|
|
Since zbatery is abandoned, point users towards yahns
instead since that is what I currently use.
|
|
While raindrops.bogomips.org exists, having extra subjectAltName
entries is bloating the certificate. This will make it easier
to mirror the homepage on Tor hidden services.
|
|
Consolidating multiple Rack apps into fewer Rack apps on
bogomips.org, might as well be transparent about it.
|
|
Found in the check-warnings target in pkg.mk
|
|
Zbatery sucks at user switching + USR2+QUIT reloads
|
|
git is on 9418 and my cgit UNIX domain socket
|
|
No more splitting all TCP or all UNIX listeners
|
|
Whee!
|
|
|
|
It does streaming!
|
|
It is more accurate than sleep and doesn't require calculating
times
|
|
Sometimes we want more of them
|
|
No need to waste resources on creating/destroying
a socket.
|
|
This is only useful when looped inside screen or something
similar...
|
|
USR1 dumps histograms, and USR2 resets the counters
|
|
No need to make eyes drift :)
|
|
Matches my common usage patterns
|
|
Sometimes sleeping for one second between reads is too much...
|
|
This can now be used to monitor UNIX domain socket queues, too.
|
|
We want any pipe readers to see this immediately
|
|
It is a likely mistake to specify a local address such as
"127.0.0.1:#{port}" as an argument to linux-tcp-listener-stats
when our listener is listening on all addresses
("0.0.0.0:#{port}").
So make an effort to detect this mistake as all of our known
users on our mailing list seem to make it:
http://mid.gmane.org/AANLkTinP5fBfcRa6Y3-MrMzDqjRRrgEOIunvn_h7q2WS@mail.gmail.com
|
|
|
|
|
|
|