Alexey Verkhovsky
87ab5d00ae
A bit of golf
2005-01-21 23:00:29 +00:00
Alexey Verkhovsky
578becb609
uncommented a test that actually passes (WikiWord within Textile URL)
2005-01-21 22:43:13 +00:00
Alexey Verkhovsky
661fb64561
more regexp caching
2005-01-21 22:40:16 +00:00
Alexey Verkhovsky
780bf4fe91
a little golf
2005-01-21 22:28:37 +00:00
Alexey Verkhovsky
75b6d30d80
simplified WikiWords.separate
2005-01-21 22:15:29 +00:00
Alexey Verkhovsky
befa8c91b2
reduced the number of warnings in unit tests (still very high though)
2005-01-21 22:08:47 +00:00
Alexey Verkhovsky
259a7028e3
cache compiled regexps in constants
2005-01-21 21:58:48 +00:00
Alexey Verkhovsky
9242ad045d
fixed the render_to_string hack to live peasefully with the new ActionPack rule that "the first render wins"
2005-01-21 21:06:46 +00:00
Alexey Verkhovsky
26974db864
Documented ability to server static content in the CHANGELOG (it's a side-effect of porting to Rails)
2005-01-21 19:51:46 +00:00
Alexey Verkhovsky
f84727c03e
explicitly tell to Rails not to render a layout for file download actions (it shouldn't matter, but...)
2005-01-21 19:44:34 +00:00
Alexey Verkhovsky
88d7dc832d
Setting Content-Type to UTF-8, to be consistent with meta-data in the HTML itself
2005-01-21 19:41:46 +00:00
Alexey Verkhovsky
e619e575ce
extracted wiki fixture to test_helper (it still doesn't deserge a class of its own, but one day it might)
2005-01-21 19:40:04 +00:00
Alexey Verkhovsky
a9cf729f25
Enable UTF-8 support in certain methods of String class
2005-01-21 19:17:25 +00:00
Alexey Verkhovsky
f75f5223c3
Enabled UTF-8 support in string functions
2005-01-21 19:00:45 +00:00
Alexey Verkhovsky
dce2af06aa
Autolink URLs like http://localhost:8000 (anything that has a schema like http:// and looks like a URL), in addition to internet URLs.
2005-01-20 21:34:27 +00:00
Alexey Verkhovsky
b74244ee3f
documented the change in categories behavior in CHANGELOG
2005-01-20 13:39:12 +00:00
Alexey Verkhovsky
7a5aa277bb
Corrected a reference to non-existent web method in list.rhtml
2005-01-20 13:35:46 +00:00
Alexey Verkhovsky
dc6c455426
instead of parsing category line by markup engine etc, convert it to /list/?category=XYZ hyperlinks
2005-01-20 13:34:15 +00:00
Alexey Verkhovsky
dfde41e63e
tweaked unmasking (no need to create and compile regexps all the time when sub(string, string) is enough
2005-01-20 13:32:37 +00:00
Alexey Verkhovsky
0d9d89ad3c
URI rewriting should be very liberal towards page names
2005-01-20 01:00:47 +00:00
Alexey Verkhovsky
12aa4365ad
Disabled a test that fails on RedCloth 2
2005-01-20 00:21:29 +00:00
Alexey Verkhovsky
97857409a9
Added -w to all shebangs [Florian Gross]
2005-01-20 00:05:23 +00:00
Alexey Verkhovsky
8eb35d4021
[RESTORES BUILD] URI parsing is smart about Instiki images again
2005-01-19 21:09:08 +00:00
Alexey Verkhovsky
e8b2a3c30a
moved apply_to from WikiContent to Chunk, so tha UriChunk can override it and decide when it
...
wants to match a URL and when it doesn't want to the in the way of Textile syntax
2005-01-19 20:29:43 +00:00
Alexey Verkhovsky
02930e20fe
preparing UriChunk to a refactoring that will let chunks decide whether they want to match or not
...
(not merely by specifying a regexp pattern)
2005-01-19 20:17:26 +00:00
Alexey Verkhovsky
dbfe531abb
Extracted various computations in the constructor of UriChunk to local methods.
2005-01-19 10:59:52 +00:00
Alexey Verkhovsky
d3b12631dd
pre-compile and cache URI regexp
2005-01-19 10:56:46 +00:00
Alexey Verkhovsky
11794e6f4f
Fixed a test broken by lasy commit
2005-01-19 00:54:18 +00:00
Alexey Verkhovsky
2c637539be
paths in Instiki errors will look a bit less funny
2005-01-18 23:38:36 +00:00
Alexey Verkhovsky
ca22e59c38
[BREAKS BUILD] Corrected and refactored revision_test.rb
...
Same story as with uri_test.rb; this test was skipped by Rake, because there was a syntax error in it.
Now there is no syntax error, but there is a failing test instead (introduced by changeset:48)
2005-01-18 22:32:50 +00:00
Alexey Verkhovsky
07e43d2dae
Streamlined URI parsing [dm1]
2005-01-18 20:31:42 +00:00
Alexey Verkhovsky
60c16e0be7
Corrected failing test
2005-01-18 20:29:10 +00:00
Alexey Verkhovsky
fb2e77a2ce
More tests in uri_test.rb
2005-01-18 19:15:48 +00:00
Alexey Verkhovsky
8bf050292a
[BREAKS BUILD] Deleted a wrong require that was causing Rake to skip uri_test.rb (bug in Rake?). There was, as it turned out, a failing test there.
2005-01-18 18:55:40 +00:00
Alexey Verkhovsky
7748ea4ecd
End-of-line style for "executables" is LF (Unix) so that shebangs always work.
2005-01-18 17:50:16 +00:00
Alexey Verkhovsky
b195cd8b74
Footer with links to instiki.org and rubyonrails.org
2005-01-18 01:19:58 +00:00
Alexey Verkhovsky
5db16d8850
Documented the last changes
2005-01-18 00:44:39 +00:00
Alexey Verkhovsky
7c02805102
Unsuccessful save unlocks the page; some tweaks and debug-level logging in in return_to_last_remembered
2005-01-18 00:36:43 +00:00
Alexey Verkhovsky
94292199b2
Corrected a link, and changed it to a link_to method
2005-01-18 00:33:10 +00:00
Alexey Verkhovsky
b9737747f2
Display error message from a flash at the top of the page
2005-01-18 00:27:28 +00:00
Alexey Verkhovsky
73552b36a0
If there is a validation error, save action will redirect to the last known good location and set error message in a flash
2005-01-17 23:17:28 +00:00
Alexey Verkhovsky
5c8b738238
Added test at the service level, to see how well madeleine copes with errors. Looks like it does cope with them.
2005-01-17 22:42:45 +00:00
Alexey Verkhovsky
cb1d8ed54f
Controller-level test for the last revision (submit of an identical revision)
2005-01-17 21:31:26 +00:00
Alexey Verkhovsky
878a6336fb
Page#revise raises ValidationError if a revision is exactly same as the page before
2005-01-17 21:27:38 +00:00
Alexey Verkhovsky
7780a13fe8
Created a special error class for handling graecful rollbacks (not sure if Madeleine can take it yet)
2005-01-17 21:22:41 +00:00
Alexey Verkhovsky
8f5ac3440a
All controller actions are covered by tests [main success scenarios only - not really trying to break it yet]
2005-01-17 20:37:06 +00:00
Alexey Verkhovsky
c50dd048e3
Corrected the binary_content method
2005-01-17 20:11:49 +00:00
Alexey Verkhovsky
f28e572c65
Added a test for tex action
2005-01-17 20:03:49 +00:00
Alexey Verkhovsky
58f92caa19
Removed code that made it into Rails SVN
2005-01-17 18:28:01 +00:00
Alexey Verkhovsky
57df455d1d
Removed accidentally duplicated code
2005-01-17 18:25:13 +00:00