aboutsummaryrefslogtreecommitdiff
path: root/t/pagespec_match.t
Commit message (Collapse)AuthorAge
* fix regression testJoey Hess2008-05-25
|
* Correct a bug in pagespec matching, where a empty pagespec matched all pages.Joey Hess2008-04-24
| | | | | | | This manifested as wikis with no locked pages treating them all as locked. The bug was introduced in version 2.41. Medium urgency upload due to above fix.
* merged the recentchanges branchJoey Hess2008-01-29
| | | | misc fixes
* added configuration for recentchangesJoey Hess2008-01-29
| | | | | | | | I kept it to a simple global configuration, rather than using the preprocessor directive for recentchanges, because that had chicken and egg problems and seemed overcomplicated. This should work reasonably well, though it would be good to add some more metadata so that more customised recentchanges pages can be made.
* * Apply a patch from Carl Worth adding support for using globs in link()joey2007-05-30
| | | | in a PageSpec.
* the kind of perl code that can only be written at 4:30 amjoey2007-04-27
| | | | | | | (Get a good message when a PageSpec fails due to a negated success by creating success objects with a reason string, which morph into failure objects when negated.)
* * Make pagespec_match on failure return a value that is false, but in ajoey2007-04-27
| | | | | | scalar context, evaluates to a reason why the match failed. * Add testpagespec plugin, which might be useful to see why a pagespec isn't matching something.
* * pagespec_match() has changed to take named parameters, to better allowjoey2007-04-27
| | | | | | | | | for extended pagespecs. The old calling convention will still work for back-compat for now. * The calling convention for functions in the IkiWiki::PageSpec namespace has changed so they are passed named parameters. * Plugin interface version increased to 2.00 since I don't anticipate any more interface changes before 2.0.
* * Fix link() PageSpecs to not just look at the raw link text, but at wherejoey2007-03-21
| | | | | | | | | | that given link points based on the page doing the linking. Note that this could make such PageSpecs match different things than before, if you relied on the old behavior of them only matching the raw link text. * This required changing the match_* interface, adding a third parameter. * Allow link() PageSpecs to match relative, as is allowed with globs.a * Add postform option to inline plugin. * Add an bug tracker to the softwaresite example.
* * Allow plugins to add new types of tests that can be used in PageSpecs.joey2007-02-12
| | | | | | | | | * Add a "conditional" plugin, which allows displaying text if a condition is true. It is enabled by default so conditional can be used in the basewiki. * Use conditionals in the template for plugins, so that plugin pages say if they're currently enabled or not, and in various other places in the wiki.
* fixes and more testsjoey2007-02-07
|
* * Patch based on a patch from Ethan to support relative matching injoey2007-02-06
| | | | | PageSpecs, by using "./". pagespec_match() has grown a new third parameter to support this.
* * Work on firming up the plugin interface:joey2006-09-09
| | | | | | | | | | | | | | | | | | | - Plugins should not need to load IkiWiki::Render to get commonly used functions, so moved some functions from there to IkiWiki. - Picked out the set of functions and variables that most plugins use, documented them, and made IkiWiki export them by default, like a proper perl module should. - Use the other functions at your own risk. - This is not quite complete, I still have to decide whether to export some other things. * Changed all plugins included in ikiwiki to not use "IkiWiki::" when referring to stuff now exported by the IkiWiki module. * Anyone with a third-party ikiwiki plugin is strongly enrouraged to make like changes to it and avoid use of non-exported symboles from "IkiWiki::". * Link debian/changelog and debian/news to NEWS and CHANGELOG. * Support hyperestradier version 1.4.2, which adds a new required phraseform setting.
* * Added created_before and created_after PageSpec limits.joey2006-08-03
|
* * Fix stupid bug in date matching, patch from Roland Mas. Closes: #381132joey2006-08-02
| | | | * Added many unit tests for pagespec_match.
* link and backlink pagespec testsjoey2006-08-02
|
* complex testjoey2006-08-02
|
* * Renamed GlobLists to PageSpecs.joey2006-08-02
* PageSpecs can now include nested parens, "and", and "or". This remains backwards compatible to the old GlobList format. It's implemented by treating the GlobList as a very limited microlanguage that is transformed to perl code that does the matching. * The old GlobList format is deprecated, and I encourage users to switch to using the new PageSpec format. Compatability with the old format will be removed at some point, possibly by 2.0. * Wiki rebuild needed on upgrade to this version due to PageSpec change. * Add support for creation_month and creation_year to PageSpec. Closes: #380680 * Changes to index file encoding.