Commit graph

207 commits

Author SHA1 Message Date
Adrian Perez de Castro
58fecc865d
Version 0.4.4 2020-02-19 12:56:12 +02:00
Anders Trier
21a084d61d Add CRLF after the 'Parent directory' line. This makes the output easier to parse. 2020-02-19 12:44:32 +02:00
kPherox
fa13aef31b Add test for fancyindex_hide_parent_dir on 2018-10-15 11:28:09 +02:00
kPherox
47ce20d993 refs aperezdc/ngx-fancyindex#57 Add fancyindex_hide_parent_dir directive 2018-10-15 11:28:09 +02:00
Nicolas CARPi
7abb6e3693 Fix some issues in the README file
* fix nginx URL (.org not .net and HTTPS)
* fix protocol for die.net URL
* fix underline too short for fancyindex_show_path
* fix "module module" sentence
2018-10-15 02:10:55 +02:00
Adrian Perez de Castro
473c1de024 Properly encode filenames as URI components
Fixes #95
2018-08-30 00:12:47 +03:00
Adrian Perez de Castro
a3929d7074 CI: Update Nginx mainline to version 1.15.2 2018-08-15 14:28:52 +02:00
David Beitey
e6ddb517ca Mention awk fails on macOS and provide a solution 2018-07-13 01:22:48 +03:00
David Beitey
aa0be2dcaa Fix encoding of & chars in table header 2018-07-13 01:11:20 +03:00
Adrian Perez de Castro
d1b2f36738
Version 0.4.3 2018-07-03 02:53:45 +03:00
Adrian Perez de Castro
a983c2c899
Add test case for sort order by file-size after
This tests the fix from PR #88 and by having it in the test suite
it will make sure that sorting by size dos not get broken again.
2018-07-03 02:41:13 +03:00
qjqqyy
2b2244551f Fix decreasing sort by file size
fixes #77
2018-07-03 02:39:57 +03:00
Adrian Perez de Castro
6f812eba8e Add a test case which uses pup to check a listing 2018-07-03 02:16:45 +03:00
Adrian Perez de Castro
604b43b336 Add pup() and use() function to allow skipping when pup is unavailable
The "use pup" construct will skip a test case that needs pup installed.
The pup() function ensures that the downloaded binary is used.
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro
60f09e450d Allow skipping test cases
This defines a skip() function in the tests preamble which can
be used to skip tests. Skipped tests are counted, and a reason
for them being skipped printed after running the tests.
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro
501f9bc63c CI: Add script to fetch and validate a binary build of pup
The script downloads and validates the download against a built-in
list of known checksums for the release ZIP files.

More on pup: https://github.com/ericchiang/pup/
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro
5f265ab6eb
Add themes by @fraoustin and @alehaa
Closes #87
2018-07-03 01:01:31 +03:00
Adrian Perez de Castro
df593a20f3 CI: Switch mainline Nginx to 0.15.0, update older versions
In particular, version 1.11.6 does not even appear in the main
download page. Of course the tarballs are still in the archives,
but not being listed seems like a good criteria to remove it from
the testing matrix. Also, change 1.10.2 to 1.10.3, which is the
latest minor release from the series.
2018-07-03 00:26:29 +03:00
Lilian Besson
5dd4ec3b3c Typo on code block formatting 2018-07-02 23:46:01 +03:00
Martchus
4ae6c87246 Test latest stable and mainline releases on Travis 2018-05-02 23:17:51 +03:00
Adrian Perez de Castro
c5bf62212e
CI: Update mainline/stable Nginx versions
Only the minor version number is changed, so there is no need to
keep the older versions being tested as well in the test matrix.
2018-03-21 17:19:44 +00:00
Adrian Perez de Castro
16e6feefa9
Update template.html to reflect recent changes in the code 2018-03-21 17:16:52 +00:00
gznyirfa
60c4338b96 add html class names to table cells for better css formatting options 2018-03-21 17:13:50 +00:00
Adrian Perez de Castro
9446fd7e4b
Release version 0.4.2 2017-08-19 00:31:37 +03:00
Adrian Perez de Castro
071697588c CI: Update mainline and stable Nginx versions
Previous mainline/stable versions are tested only as static builds.
2017-08-19 00:14:48 +03:00
Adrian Perez de Castro
c1b1be3615 Fix sorting by file size for sizes bigger than INT_MAX
Instead of directly return the difference of the sizes from the
comparison functions, use the relational operators, as suggested by
Chris Young (thanks!).

Fixes #74
2017-08-19 00:09:41 +03:00
Nick Geoghegan
b21ec45790 Fixes #72 2017-06-17 00:43:52 +03:00
Lilian Besson
eb2fd247ea Update link for the 2nd theme example
The linked project (and example) was dead. Mine is not. (https://github.com/Naereen/Nginx-Fancyindex-Theme)
2017-04-26 01:38:19 +03:00
Danila Vershinin
a97cc6639d Update README.rst 2017-04-22 17:49:57 +03:00
Danila Vershinin
6ffd207a56 Update requirements for CentOS 7
Adds reference to GetPageSpeed extras RPM repository and availability of fancy index dynamic module
2017-04-22 17:49:57 +03:00
Iulian Onofrei
6e2f3fbe1c Update README.rst
Add missing module loading command to the documentation
2017-01-17 12:31:35 +02:00
Adrian Perez de Castro
04936f197b
CI: Update mainline Nginx to 1.11.6 2016-12-08 15:33:17 +02:00
Adrian Perez de Castro
b1182f7758
Add test case 2016-12-08 15:33:13 +02:00
Adrian Perez
57ff1a2a89 Merge pull request #62 from 0xb8/fix-61
Fix segfaults when opening directories with empty files
2016-12-08 15:12:51 +02:00
cat
a551b5e3ea Fix segfaults when opening directories with empty files
Apparently ngx_sprintf does not tolerate format specifiers
not matching their corresponding argument types.
2016-12-08 15:15:59 +05:00
Adrian Perez de Castro
ee17ca1a65
Use in tests the generic method to pass config options
Instead of having variables being flipped around, just specify which Nginx
directives are needed in the configuration file.
2016-12-07 20:20:34 +02:00
Adrian Perez de Castro
5b53c2b0b2
Use ↓ entity references instead of character references
Entity references are encoding-independent, and will work despite of the
encoding of the rest of the served document. Note that in general it may be
a bad idea to use "fancyindex_header" to change the encoding of the served
documents because file names will still be treated as UTF-8, which is the
only sane default in Unix.

Fixes #50.
2016-12-07 19:18:11 +02:00
Adrian Perez de Castro
77d2c60c8e
CI: Update to Nginx stable 1.10.2 and mainline 1.11.5 2016-11-06 20:57:49 +02:00
Anders Trier Olesen
6442f26527 Add test for fancyindex_exact_size off 2016-11-04 01:31:05 +02:00
Anders Trier
1e438a694d Add decimal to file sizes 2016-11-04 01:31:05 +02:00
Fernando Costa
f2f0cdc9de Randomize test execution. 2016-10-18 23:51:08 +03:00
Adrian Perez de Castro
c5deb79e8f
Remove usage of cellpadding/cellspacing in default template
This closes issue #52
2016-08-31 02:26:58 +03:00
Adrian Perez de Castro
bdaceb6583
Do not use col/colgroup tags in default template
Avoid using <colgroup> and <col> tags, which are deprecated in favour
of using CSS for styling.

See issue #52 for more information.
2016-08-31 02:23:54 +03:00
Adrian Perez de Castro
a3a7626de9
Use the HTML5 document type declaration
The XHTML document makes the document not to validate because of the undefined
entity references, and it seems better to use the HTML5 document type instead
of the HTML 4.01 one because the template uses already some modern constructs
like defining the device viewport options.

Fixes issue #52.
2016-08-31 02:07:10 +03:00
Adrian Perez de Castro
71b7146577
Release version 0.4.1 2016-08-18 20:49:47 +03:00
Adrian Perez de Castro
0a8450c812
Travis-CI: Use the t/build-and-run script
This ensures that Travis-CI uses the same commands for building and testing as
developers are encouraged to.
2016-08-18 20:42:13 +03:00
Adrian Perez de Castro
5e621202bd
Use only the new-style module configuration for dynamic builds
For static builds we still need to manually reorder $HTTP_MODULES, and we
cannot source "auto/module" like the new-style configuration mode needs,
because the "auto/module" snippet modifies $HTTP_MODULES itself, but ignores
the new $ngx_module_order variable when doing a static build.

Fortunately, the old-style way of configuring the module is still working in
all Nginx versions for statically built modules, so we can keep using that
for static builds.

This fixes issue #46.
2016-08-18 20:30:43 +03:00
Adrian Perez de Castro
3ec11d5d87
config: Depend also on template.h
This makes the Nginx configure script add a rule to the generated Makefile which
makes the module depend on template.h
2016-08-18 19:22:03 +03:00
Adrian Perez de Castro
07fb4ab214
t/run: Add some spacing and formatting to failed test outputs
This makes it easier to identify the outputs for each one of the failed
tests.
2016-08-18 19:19:11 +03:00
Adrian Perez de Castro
a1bb63c93b
Script which replicates the build-and-test done by Travis-CI
This allows developers to build nginx and run the test suite locally by
running just one single command.
2016-08-18 18:16:30 +03:00