Changesets can be listed by changeset number.
The Git repository is here.
Changeset 25
Configured for temporary /rails/collaboa location on Alpha. Changed
database schema so 'completed' flag in 'milestones' table is an integer
rather than a boolean because there are comparisons with zero in a few
places in the code, but PostgreSQL strongly types booleans and will not
automatically or cast it or allow it to be explicitly cast. It was
simpler to change the database type to match the code.
Added a local copy of RedCloth since it didn't appear in the right
place (this appears in 'vendor'). Updated the 'syntax' library to use
more explicit 'require' paths - some of the files looked like they were
expecting 'require' to work from the directory in which the file itself
resided, but Ruby/Rails, at least on Alpha, treats them as coming from
the application root at all times.
As housekeeping, deleted spurious log files.
- Comitted by: adh
- Date: Monday July 24 22:03:51 2006 (over 18 years ago)
Affected files:
- rool/rails/collaboa/trunk/vendor/redcloth/
- rool/rails/collaboa/trunk/vendor/redcloth/bin/
- rool/rails/collaboa/trunk/vendor/redcloth/doc/
- rool/rails/collaboa/trunk/vendor/redcloth/lib/
- rool/rails/collaboa/trunk/vendor/redcloth/tests/
- rool/rails/collaboa/trunk/config/database.yml
- rool/rails/collaboa/trunk/config/repository.yml
- rool/rails/collaboa/trunk/vendor/redcloth/RedCloth.gemspec
- rool/rails/collaboa/trunk/vendor/redcloth/bin/redcloth
- rool/rails/collaboa/trunk/vendor/redcloth/doc/CHANGELOG
- rool/rails/collaboa/trunk/vendor/redcloth/doc/COPYING
- rool/rails/collaboa/trunk/vendor/redcloth/doc/README
- rool/rails/collaboa/trunk/vendor/redcloth/doc/REFERENCE
- rool/rails/collaboa/trunk/vendor/redcloth/doc/make.rb
- rool/rails/collaboa/trunk/vendor/redcloth/install.rb
- rool/rails/collaboa/trunk/vendor/redcloth/lib/redcloth.rb
- rool/rails/collaboa/trunk/vendor/redcloth/run-tests.rb
- rool/rails/collaboa/trunk/vendor/redcloth/setup.rb
- rool/rails/collaboa/trunk/vendor/redcloth/tests/code.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/hard_breaks.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/images.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/instiki.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/links.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/lists.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/markdown.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/poignant.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/table.yml
- rool/rails/collaboa/trunk/vendor/redcloth/tests/textism.yml
- rool/rails/collaboa/trunk/log/development.log
- rool/rails/collaboa/trunk/log/fastcgi.crash.log
- rool/rails/collaboa/trunk/log/production.log
- rool/rails/collaboa/trunk/log/test.log
- rool/rails/collaboa/trunk/config/environment.rb (diff)
- rool/rails/collaboa/trunk/config/routes.rb (diff)
- rool/rails/collaboa/trunk/db/schema.rb (diff)
- rool/rails/collaboa/trunk/public/dispatch.cgi (diff)
- rool/rails/collaboa/trunk/public/dispatch.fcgi (diff)
- rool/rails/collaboa/trunk/public/dispatch.rb (diff)
- rool/rails/collaboa/trunk/vendor/syntax/lib/syntax.rb (diff)
- rool/rails/collaboa/trunk/vendor/syntax/lib/syntax/convertors/abstract.rb (diff)
- rool/rails/collaboa/trunk/vendor/syntax/lib/syntax/convertors/html.rb (diff)
rool/rails/collaboa/trunk/config/environment.rb:
prev. | current | |
require File.join(File.dirname(__FILE__), 'boot') | ||
Rails::Initializer.run do |config| | ||
11 | # We don't run in the document root, so images etc. must come from | |
12 | # a non-root location too. Hijack the 'asset host' facility to get | |
13 | # helper-based links pointing in the right place. | |
14 | config.action_controller.asset_host = "/rails/collaboa" | |
15 | ||
# Skip frameworks you're not going to use | ||
config.frameworks -= [ :action_web_service, :action_mailer ] | ||
# Add additional load paths for your own custom dirs | ||
# config.load_paths += %W( #{RAILS_ROOT}/app/services ) | ||
17 | | |
22 | # Force all environments to use the same logger level | |
# (by default production uses :info, the others :debug) | ||
19 | | |
24 | config.log_level = :warn | |
# Use the database for sessions instead of the file system | ||
# (create the session table with 'rake create_sessions_table') | ||
... | ... | |
# Make Active Record use UTC-base instead of local time | ||
config.active_record.default_timezone = :utc | ||
34 | | |
39 | ||
# Use Active Record's schema dumper instead of SQL when creating the test database | ||
# (enables use of different database adapters for development and test environments) | ||
config.active_record.schema_format = :ruby | ||
... | ... | |
# See Rails::Configuration for more options | ||
end | ||
42 | ||
47 | # Add new inflection rules using the following format | |
# (all these examples are active by default): | ||
# Inflector.inflections do |inflect| | ||
# inflect.plural /^(ox)$/i, '\1en' | ||
... | ... | |
# Include your application configuration below | ||
62 | # Allow multiple Rails applications by giving the session cookie a | |
63 | # unique prefix. | |
65 | ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = 'collaboaapp_session_id' | |
66 | ||
# Make ruby use utf8 | ||
$KCODE = 'u' | ||
69 | ||
require 'jcode' | ||
61 | ||
71 | require 'syntax/lib/syntax' | |
Syntax::all().each { |syntax| Syntax::load(syntax) } | ||
require 'syntax/lib/syntax/convertors/html' | ||
require 'digest/sha1' | ||
75 | require 'redcloth/lib/redcloth' | |
# Where do we store our attachments? | ||
ATTACHMENTS_PATH = RAILS_ROOT + '/attachments' | ||
... | ... | |
# Require ActionSubversion | ||
require 'actionsubversion/lib/action_subversion' | ||
# Setup the path to our Subversion repository | ||
75 | ||
87 | ActionSubversion::Base.repository_path = REPOS_CONF[RAILS_ENV]['repos_path'].to_s |
rool/rails/collaboa/trunk/config/routes.rb:
prev. | current | |
ActionController::Routing::Routes.draw do |map| | ||
# Add your own custom routes here. | ||
# The priority is based upon order of creation: first created -> highest priority. | ||
4 | | |
4 | ||
# Here's a sample route: | ||
# map.connect 'products/:id', :controller => 'catalog', :action => 'view' | ||
# Keep in mind you can assign values other than :controller and :action | ||
8 | | |
9 | | |
11 | | |
12 | | |
9 | map.connect '/rails/collaboa/admin', :controller => 'admin/dashboard', :action => 'index' | |
10 | ||
11 | map.connect '/rails/collaboa/repository/browse/*path', | |
12 | :controller => 'repository', | |
:action => 'browse' | ||
14 | | |
14 | ||
# "Routing Error: Path components must occur last" :( | ||
16 | | |
17 | | |
16 | #map.connect '/rails/collaboa/repository/browse/*path/rev/:rev', | |
17 | # :controller => 'repository', | |
# :action => 'browse', | ||
# :rev => /\d+/ | ||
20 | | |
20 | ||
# TODO: Rework this into a general browse/view_file usable thing | ||
22 | | |
23 | | |
22 | #map.connect '/rails/collaboa/repository/file/rev/:rev/*path', | |
23 | # :controller => 'repository', | |
# :action => 'view_file', | ||
# :rev => /\d+/ | ||
27 | | |
28 | | |
27 | map.connect '/rails/collaboa/repository/file/*path', | |
28 | :controller => 'repository', | |
:action => 'view_file' | ||
30 | | |
31 | | |
32 | | |
30 | ||
31 | map.connect '/rails/collaboa/repository/revisions/*path', | |
32 | :controller => 'repository', | |
:action => 'revisions' | ||
35 | | |
36 | | |
35 | map.connect '/rails/collaboa/repository/changesets', | |
36 | :controller => 'repository', | |
:action => 'changesets' | ||
39 | | |
40 | | |
39 | map.connect '/rails/collaboa/repository/changesets/:revision', | |
40 | :controller => 'repository', | |
:action => 'show_changeset' | ||
42 | | |
43 | | |
42 | ||
43 | map.connect '/rails/collaboa/tickets', | |
:controller => 'tickets', | ||
:action => 'index' | ||
46 | | |
47 | | |
46 | ||
47 | map.connect '/rails/collaboa/tickets/new', | |
:controller => 'tickets', | ||
:action => 'new' | ||
51 | | |
51 | map.connect '/rails/collaboa/tickets/:id', | |
:controller => 'tickets', | ||
:action => 'show', | ||
:requirements => { :id => /\d+/ } | ||
56 | | |
56 | map.connect '/rails/collaboa/milestones', | |
:controller => 'milestones', | ||
:action => 'index' | ||
60 | | |
60 | map.connect '/rails/collaboa/milestones/:id', | |
:controller => 'milestones', | ||
:action => 'show' | ||
64 | | |
64 | # You can have the root of your site routed by hooking up '' | |
# -- just remember to delete public/index.html. | ||
66 | | |
67 | | |
68 | | |
66 | map.connect '/rails/collaboa/', | |
67 | :controller => 'tickets' | |
# Allow downloading Web Service WSDL as a file with an extension | ||
# instead of a file named 'wsdl' | ||
#map.connect ':controller/service.wsdl', :action => 'wsdl' | ||
# Install the default route as the lowest priority. | ||
75 | | |
74 | map.connect '/rails/collaboa/:controller/:action/:id' | |
end |
rool/rails/collaboa/trunk/db/schema.rb:
prev. | current | |
t.column "name", :string, :limit => 75 | ||
t.column "info", :text | ||
t.column "due", :date | ||
28 | | |
28 | t.column "completed", :integer, :default => 0 | |
t.column "created_at", :datetime | ||
end | ||
rool/rails/collaboa/trunk/public/dispatch.cgi:
prev. | current | |
1 | ||
1 | #!/bin/ruby | |
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) | ||
... | ... | |
require "dispatcher" | ||
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) | ||
10 | ||
11 | Dispatcher.dispatch |
rool/rails/collaboa/trunk/public/dispatch.fcgi:
prev. | current | |
1 | ||
1 | #!/bin/env ruby | |
# | ||
# You may specify the path to the FastCGI crash log (a log of unhandled | ||
# exceptions which forced the FastCGI instance to exit, great for debugging) |
rool/rails/collaboa/trunk/public/dispatch.rb:
prev. | current | |
1 | ||
1 | #!/bin/ruby | |
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) | ||
... | ... | |
require "dispatcher" | ||
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun) | ||
10 | ||
11 | Dispatcher.dispatch |
rool/rails/collaboa/trunk/vendor/syntax/lib/syntax.rb:
prev. | current | |
1 | ||
1 | require 'syntax/lib/syntax/common' | |
module Syntax | ||
rool/rails/collaboa/trunk/vendor/syntax/lib/syntax/convertors/abstract.rb:
prev. | current | |
1 | ||
1 | require 'syntax/lib/syntax' | |
module Syntax | ||
module Convertors |
rool/rails/collaboa/trunk/vendor/syntax/lib/syntax/convertors/html.rb:
prev. | current | |
1 | ||
1 | require 'syntax/lib/syntax/convertors/abstract' | |
module Syntax | ||
module Convertors |