Jacques Distler
4dae13c567
Fix Migration to work under PostgreSQL
...
From J. Zellman
Postgres text type does not support an upper limit.
2010-01-21 15:54:52 -06:00
Jacques Distler
d67ce28855
Prevent Renaming to a Null Page Name
...
Fix http://rubyforge.org/tracker/index.php?func=detail&aid=27649&group_id=186&atid=783
2010-01-07 08:12:22 -06:00
Jacques Distler
c8ef0a3dd4
Release Instki 0.18.1
...
Seems warranted, in light of the
Ruby 1.9 encoding issues.
2010-01-07 00:07:10 -06:00
Jacques Distler
0c2bc65e7a
All I want for Christmas ...
...
... is to settle these encoding issues
once and for all.
Let's override the accessor methods, which
seems to offer a simpler solution.
Now with tests (for whatever that helps)...
2010-01-06 08:15:34 -06:00
Jacques Distler
6e6bf1a446
Yikes! Yet more Ruby 1.9 Encoding Issues
...
We're getting there. Thanks to Andrew Stacey.
2010-01-05 09:35:14 -06:00
Jacques Distler
ea431ad373
Stylesheet tweak
...
Don't put boxes around links on the web_list page.
2010-01-04 23:00:36 -06:00
Jacques Distler
6cf1463525
Revert Revision 520; This is more thorough
...
This ensures that @page.name has the right (utf8)
encoding.
2010-01-04 18:43:27 -06:00
Jacques Distler
d786e95a77
Ruby 1.9 + MySQL Hack
...
The default encoding in MySQL is latin1. Ruby 1.9
is a stickler about the encoding of a sequence of bytes.
In this case, a utf8 page name stored in the database comes
back as "ASCII-8BIT" (ie, binary). Coerce that back to utf8.
This doesn't affect SQLite3, and it doesn't affect Ruby 1.8.
It doesn't even affect MySQL databases with "utf8" encoding
(though that has other issues, since MySQL's utf8 support is
broken).
There are probably other, similar problems lurking.
2010-01-04 06:41:04 -06:00
Jacques Distler
e3aa626489
Better Display of Interweb Wikilinks
...
Perhaps not the most creative use of CSS. But,
at least, this will read better.
2010-01-03 13:19:47 -06:00
Jacques Distler
7b7d2e80dc
More Array -> Set
...
Make the syntax colouring run faster.
2010-01-02 11:22:12 -06:00
Jacques Distler
c212a53ad8
Updated License from Jason
...
Jason's fenced codeblock code is now
BSD Licensed.
2010-01-01 21:51:01 -06:00
Jacques Distler
9fe467ee36
Tweak SQLite Syntax Colouring
2010-01-01 20:18:10 -06:00
Jacques Distler
4bb22e0fa8
Length of wiki_references referenced_name
...
Another minor database migration. The length of the
'referenced_name' field in the previous schema was
limited to 60 characters. Increase that to 255
characters (matching the length of then 'name' field
in 'pages', etc).
This has no effect in SQLite3 users (the default), since
SQLite3 does not enforce these length restrictions. But
MySQL users need this.
As always, run
rake upgrade_instiki
to seamlessly upgrade your database to the latest schema.
2010-01-01 16:57:21 -06:00
Jacques Distler
753520eb70
Current Database Schema
...
Should have regenerated this file back at Revision 458.
2010-01-01 13:02:16 -06:00
Jacques Distler
f66fc4de4d
Fenced Code Blocks, Fortran Syntax Colouring
...
Support Marhdown Extra's fenced code blocks. [From Jason Blevins]
Fortran syntax colouring. [From Jason Blevins]
Turn on Syntax colouring, by default.
Point to Michel Fortin's Markdown Extra page.
2009-12-31 15:54:01 -06:00
Jacques Distler
b72ca42199
Better handling of pathnames with spaces
...
This seems to be a problem, particularly on Windows.
See if we can work around it, by updating script/server
2009-12-28 15:00:38 -06:00
Jacques Distler
2780344a1b
Version 0.18
2009-12-27 00:55:48 -06:00
Jacques Distler
b75aa4b8d6
Fix a broken test
2009-12-27 00:41:04 -06:00
Jacques Distler
601331b508
Move Files When Renaming Web
...
Renaming a web should move the
corresponding subdirectory of webs/ .
Otherwise, links to uploaded files break.
2009-12-26 23:43:18 -06:00
Jacques Distler
a705709f9a
Vendor Rack 1.1
...
Also clean up some View stuff.
2009-12-26 14:00:18 -06:00
Jacques Distler
77014652a3
Add Some Obsolete HTML Elements
...
Recognize some obsolete, but commonly-used,
HTML elements in the CSS syntax colourer.
2009-12-25 12:00:48 -06:00
Jacques Distler
fcef0fd031
Stylesheet tweak
2009-12-25 04:26:07 -06:00
Jacques Distler
c1420153d8
Update CSS Syntax Colouring for HTML5
...
Update the list of elements to what you
would encounter in an HTML5 document.
2009-12-25 04:16:03 -06:00
Jacques Distler
f06e6c004b
Ruby 1.9 Compatibility of Vendored Syntax Library
...
The CSS language support of the syntax
colourer was broken under Ruby 1.9
2009-12-25 03:17:06 -06:00
Jacques Distler
3ab7327cea
Whoops! Also Update Maruku
...
Support syntax-colouring for
lang=css
2009-12-24 12:25:44 -06:00
Jacques Distler
af0f607e75
Syntax Colouring
...
New syntax colouring modes.
In addition to the existing
html, xml, ruby
we now support
yaml, ansic, javascript, sqlite, css
2009-12-24 00:45:45 -06:00
Jacques Distler
1d32d45944
Upgrade Vendored rubyzip to Version 0.9.3
2009-12-23 02:19:16 -06:00
Jacques Distler
7c51accaab
Update Windows sqlite3.dll
...
For whatever the heck it's worth...
2009-12-22 21:00:23 -06:00
Jacques Distler
a71e64a172
Update Vendored sqlite3-ruby
2009-12-22 20:48:32 -06:00
Jacques Distler
9874650e4b
Silence Some Stupid Warnings in Ruby 1.9
2009-12-18 23:53:43 -06:00
Jacques Distler
76f388f3e2
Vendor Rack 1.0.1
...
Incorporate patch from Revision 496.
2009-12-18 20:16:58 -06:00
Jacques Distler
a7202d54cd
Workaround Ruby 1.9.1 tempfile Bug
...
Add a patch (from Passenger 2.2.8) to
vendored Rack, which works around a bug
in Ruby 1.9.1. This patch to Rack has been
floating around the intertubes for a while.
2009-12-18 11:45:26 -06:00
Jacques Distler
a166fb9608
Add Link to BlahTeX Manual
2009-12-17 22:50:10 -06:00
Jacques Distler
a1420aa5c7
Revamp Markup Cheat Sheets
...
They still suck, but less-so.
2009-12-17 10:29:51 -06:00
Jacques Distler
fe877a10b4
Make html_ext Available as a Helper
...
... and protected.
2009-12-16 00:59:33 -06:00
Jacques Distler
f3b69bc57b
Make xhtml_enabled? a Protected Method
...
... as it should be. Remarkably, it's
still possible to use it in views, if
you declare it a helper method.
2009-12-14 22:34:31 -06:00
Jacques Distler
d3e79ea84a
Make truncate() Unicode-aware
2009-12-14 17:41:28 -06:00
Jacques Distler
2c5e5a0015
Refactoring
...
Move the truncate() method into ApplicationHelper.
Move another method around, for no particularly
good reason. Controllers really shouldn't have
public methods that don't correspond to actions.
2009-12-14 02:01:50 -06:00
Jacques Distler
dc3d202665
Cache Source View
...
Also, fix a cache-sweeping bug reported,
long ago, by Toby Bartels.
2009-12-13 21:09:12 -06:00
Jacques Distler
1613973929
Array#collect is faster than Array#inject
...
Also add some more tests.
2009-12-13 20:00:18 -06:00
Jacques Distler
282515d907
Source View
...
Add a Source view. [Based on a suggestion by Andrew Stacey]
Fix a well-formedness bug in the list action, due to
boneheaded truncation algorithm. [Reported by Roby Bartels]
2009-12-13 19:25:14 -06:00
Jacques Distler
c88a1d43dc
Another Textarea Resizing Tweak
...
Handle the 'Change page name'
part of the form more intelligently.
2009-12-12 22:37:38 -06:00
Jacques Distler
a58bee7437
Another Textarea Tweak and a Ruby 1.9 Fix
2009-12-12 15:28:05 -06:00
Jacques Distler
60a233a917
More Robust
...
Browsers have a bewildering array of
default behaviours for <textarea>s.
This will work a little more uniformly
across brosswers.
2009-12-12 01:12:52 -06:00
Jacques Distler
561a007682
Auto-resizing Textarea
...
Resize textarea to fit viewing area.
Also update Prototype to 1.6.1.
2009-12-10 16:57:05 -06:00
Jacques Distler
023d84c4a4
Ack! This is better
2009-12-08 09:08:25 -06:00
Jacques Distler
faac8951a3
More Ruby 1.9 String Encoding Fun
2009-12-08 08:50:01 -06:00
Jacques Distler
2c5c6dc78a
S5 Fix
...
Omit a (seemingly superfluous)
javascript hack which causes
Gecko-based browsers to request
/my_wiki/s5/null
when they load an s5 slideshow.
Also a stylistic cleanup in
the wiki_controller.
2009-12-07 15:27:40 -06:00
Jacques Distler
171c12d2c1
Efficiency
...
This version of String#purify
is 12% faster, under Ruby 1.9,
than before.
2009-12-05 10:50:58 -06:00
Jacques Distler
f7044ecbb4
Ruby 1.9.1 Fixes
...
Some more fixes to deal with Ruby 1.9.1.
2009-12-02 12:46:15 -06:00