Commit graph

7 commits

Author SHA1 Message Date
lukemelia
fed0daa96d Complete the transition of acts_as_todo_container to todo_list, a simple module.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@350 a4c988fc-2ded-0310-b66e-134b36920a42
2006-11-18 06:18:17 +00:00
lukemelia
78a89ccf3b Refactor acts_as_namepart_finder to a module, as suggested in the review of Tracks on The Rails Way.
http://www.therailsway.com/2006/11/15/tracks-part-1/



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@346 a4c988fc-2ded-0310-b66e-134b36920a42
2006-11-16 05:33:25 +00:00
lukemelia
4caca8db70 Improved reliability of ldap test (somewhat... it's still very environment specific).
Fixed validations in User model.
Updated environment.rb.tmpl to be a little easier to follow.

A note for upgraders. Be sure to include the following line in your environment.rb:

 AUTHENTICATION_SCHEMES = ['database']

See environment.rb.tmpl for details



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@337 a4c988fc-2ded-0310-b66e-134b36920a42
2006-11-06 07:32:48 +00:00
lukemelia
99b734a52c My apologies for this large, multi-pronged commit. What's here:
* Introduce Tracks::Config class to wrap environment.rb config settings
* Remove unused admin and index actions from user_controller
* Introduce flash partial and standardize on symbol keys for the flash hash
* Replace usages of render_partial with render :partial

Two new authentication options! These probably need documentation...

* Introduce LDAP authentication option (see configuration in environment.rb.tmpl). Thanks to Jeremy Evans for creating the SimpleLdapAuthenticator plugin. Note: the ldap auth integration test is likely to be fragile. Works for me on OS X with openldap, but your mileage may vary.
* Introduce Open ID authentication option (see configuration in environment.rb.tmpl and http://openid.net for more info). Thanks to East Media for the Open ID Consumer Plugin.
 
In environment.rb, you can enable any combination of the three auth options. If you have more than one selected, users can opt between them via their preferences pages. To play with the Open ID auth, you can get an identity at pip.verisignlabs.com.

Note that there are some new migrations to support the new authentication options, so don't forget to rake migrate!


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@334 a4c988fc-2ded-0310-b66e-134b36920a42
2006-11-05 10:41:59 +00:00
lukemelia
4e0b459524 Applied Tomas Rich's patch (with some refactoring) to introduce a new api method
that allows task creation using the same syntax as the "Send to kGTD" quicksilver plugin:

Put an @ in front of context name and > in front of project name so "Call jim @calls > Fix house"
would create the "Call jim" todo in the calls context and the Fix house project.

If there aren't any exact matches, it selects the first context and project that starts with the given strings,
so "Call jim @cal >Fix h" would also work.

If no project and no context are give,
it works exactly like the NewTodo.

It also supports the ability to create a new project on the fly by prefacing
the project with "new:", for example "Call jim @calls > new:Clean the porch"

The new api method the new api method has the name NewRichTodo, which neither Tomas nor I like very much.
Perhaps you have an idea for a better name?

Closes #384.

Also, I removed duplication between context and project models by
introducing acts_as_namepart_finder and acts_as_todo_container.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@333 a4c988fc-2ded-0310-b66e-134b36920a42
2006-10-27 07:19:24 +00:00
bsag
5cd580db6f Changed the Timzone setting in the iCal file from a hardcoded value to the value of ENV['TZ'] which is set in config/environment.rb. If no timezone is set, and default of GMT is used. Updated the comment in the file to make this clear.
Fixes #275



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@243 a4c988fc-2ded-0310-b66e-134b36920a42
2006-05-13 14:49:33 +00:00
bsag
4c7f3409a0 # Added time zone setting to environment.rb.tmpl. It's commented out by default, but if your server is set to a different time zone than the local machine on which you access Tracks, you can set your local time zone here to have all of the dates adjusted. This setting is global for all users, and is an interim measure until I can get per-user time zone settings working. Fixes #238.
# Added config/environment.rb.tmpl and set svn:ignore on environment.rb so that your personal setting for SALT and ENV['TZ'] isn't committed to the public repository if you have commit access. You need to copy the changes in environment.rb.tmpl to your environment.rb if you already have an installation, or copy environment.rb.tmpl to environment.rb if it's a new installation. Fixes #235.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@226 a4c988fc-2ded-0310-b66e-134b36920a42
2006-04-17 10:27:48 +00:00