about summary refs log tree commit homepage
path: root/extras/autoindex.rb
DateCommit message (Collapse)
2016-02-14extras/autoindex: support hiding dotfiles
Switch option initialization to using a keyword hash since yet-another boolean is too much. Using kwargs won't work under Ruby 1.9.3 which we still support (for now). Note: being a part of extras/, there's no API stability guarantees but this should've maintained it.
2016-01-02copyright updates for 2016
Using the 'update-copyright' script from gnulib[1]: git ls-files | UPDATE_COPYRIGHT_HOLDER='all contributors' \ UPDATE_COPYRIGHT_USE_INTERVALS=2 \ xargs /path/to/gnulib/build-aux/update-copyright We're also switching to 'GPL-3.0+' as recommended by SPDX to be consistent with our gemspec and other metadata (as opposed to the longer but equivalent "GPLv3 or later"). [1] git://git.savannah.gnu.org/gnulib.git
2016-01-02enable frozen_string_literal for Ruby 2.3+
There are likely yet-to-be-discovered bugs in here. Also, keeping explicit #freeze calls for 2.2 users, since most users have not migrated to 2.3, yet.
2015-10-13copyright updates
Future updates may use the update-copyright script in gnulib: git ls-files | UPDATE_COPYRIGHT_HOLDER='all contributors' \ UPDATE_COPYRIGHT_USE_INTERVALS=2 \ xargs /path/to/gnulib/build-aux/update-copyright
2014-12-02extras/autoindex: simplify checking non-.gz
We only want to strip one ".gz" suffix to check for the original, so avoid a needless use of gsub! and use sub! instead. While we're at it, note the use of "dup.sub!" (vs plain "sub") to ensure we only handle files with a .gz suffix.
2014-09-20extras/autoindex: integrate with TryGzipStatic
This keeps autoindex-generated indices from being cluttered with redundant .gz files while still showing stuff like tar.gz files without a plain .tar companion.
2014-09-20extras/autoindex: fix misnamed variable
Oops.
2014-09-01extras/autoindex: do not link beyond top-level
No need to waste space on this (and trigger "Bad partial reference!" warnings on lynx)
2013-12-30extras/*: use binary path names
Proper POSIX filesystems are encoding-agnostic.
2013-11-12extras/*: log full backtraces for errors
In case we have bugs, this can help us find bugs in our code.
2013-11-05extras: add autoindex module
Unlike Rack::Directory, this this also avoids tables and CSS for preformatted HTML. This is meant to resemble nginx autoindex and index functionality (combined).