Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 16
- Log:
Configured for temporary /rails/typo location on Alpha. Updated
several layouts for RISC OS Open Limited site style. Now produces
proper "Not found" page in redirect_controller.rb. Updates to
database schema from Typo SVN (small change in the way tables are
defined, but same tables end up being defined). Set location of
SendMail in vendor/rails/actionmailer/lib/action_mailer/base.rb.
- Author:
- adh
- Date:
- Sun Jul 23 10:51:56 +0100 2006
- Size:
- 5203 Bytes
1 | # Be sure to restart your webserver when you modify this file. |
2 | |
3 | # Uncomment below to force Rails into production mode |
4 | # (Use only when you can't set environment variables through your web/app server) |
5 | # ENV['RAILS_ENV'] = 'production' |
6 | |
7 | # Bootstrap the Rails environment, frameworks, and default configuration |
8 | require File.join(File.dirname(__FILE__), 'boot') |
9 | |
10 | 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/typo" |
15 | |
16 | # Skip frameworks you're not going to use |
17 | # config.frameworks -= [ :action_web_service, :action_mailer ] |
18 | |
19 | # Add additional load paths for your own custom dirs |
20 | # config.load_paths += %W( #{RAILS_ROOT}/app/services ) |
21 | config.load_paths += %W( |
22 | vendor/rubypants |
23 | vendor/redcloth/lib |
24 | vendor/bluecloth/lib |
25 | vendor/flickr |
26 | vendor/syntax/lib |
27 | vendor/sparklines/lib |
28 | vendor/uuidtools/lib |
29 | vendor/jabber4r/lib |
30 | vendor/rails/railties |
31 | vendor/rails/railties/lib |
32 | vendor/rails/actionpack/lib |
33 | vendor/rails/activesupport/lib |
34 | vendor/rails/activerecord/lib |
35 | vendor/rails/actionmailer/lib |
36 | vendor/rails/actionwebservice/lib |
37 | ).map {|dir| "#{RAILS_ROOT}/#{dir}"}.select { |dir| File.directory?(dir) } |
38 | |
39 | # Force all environments to use the same logger level |
40 | # (by default production uses :info, the others :debug) |
41 | config.log_level = :warn |
42 | |
43 | # Use the database for sessions instead of the file system |
44 | # (create the session table with 'rake create_sessions_table') |
45 | config.action_controller.session_store = :active_record_store |
46 | |
47 | # Enable page/fragment caching by setting a file-based store |
48 | # (remember to create the caching directory and make it readable to the application) |
49 | config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" |
50 | |
51 | # Activate observers that should always be running |
52 | # config.active_record.observers = :cacher, :garbage_collector |
53 | config.active_record.observers = :content_observer, :email_notifier, :web_notifier |
54 | |
55 | # Make Active Record use UTC-base instead of local time |
56 | # config.active_record.default_timezone = :utc |
57 | |
58 | # Use Active Record's schema dumper instead of SQL when creating the test database |
59 | # (enables use of different database adapters for development and test environments) |
60 | # config.active_record.schema_format = :ruby |
61 | |
62 | # See Rails::Configuration for more options |
63 | end |
64 | |
65 | # Add new inflection rules using the following format |
66 | # (all these examples are active by default): |
67 | # Inflector.inflections do |inflect| |
68 | # inflect.plural /^(ox)$/i, '\1en' |
69 | # inflect.singular /^(ox)en/i, '\1' |
70 | # inflect.irregular 'person', 'people' |
71 | # inflect.uncountable %w( fish sheep ) |
72 | # end |
73 | |
74 | # Include your application configuration below |
75 | |
76 | # Allow multiple Rails applications by giving the session cookie a |
77 | # unique prefix. |
78 | |
79 | ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = 'typoapp_session_id' |
80 | |
81 | # Load included libraries. |
82 | require 'redcloth' |
83 | require 'bluecloth' |
84 | require 'rubypants' |
85 | require 'flickr' |
86 | require 'uuidtools' |
87 | |
88 | require_dependency 'spam_protection' |
89 | require_dependency 'migrator' |
90 | require_dependency 'rails_patch/components' |
91 | require_dependency 'rails_patch/active_record' |
92 | require_dependency 'login_system' |
93 | require_dependency 'typo_version' |
94 | require_dependency 'metafragment' |
95 | require_dependency 'actionparamcache' |
96 | $KCODE = 'u' |
97 | require_dependency 'jcode' |
98 | require_dependency 'aggregations/audioscrobbler' |
99 | require_dependency 'aggregations/delicious' |
100 | require_dependency 'aggregations/tada' |
101 | require_dependency 'aggregations/flickr' |
102 | require_dependency 'aggregations/fortythree' |
103 | require_dependency 'aggregations/magnolia' |
104 | require_dependency 'aggregations/upcoming' |
105 | require_dependency 'xmlrpc_fix' |
106 | require_dependency 'transforms' |
107 | require_dependency 'builder' |
108 | |
109 | unless Builder::XmlMarkup.methods.include? '_attr_value' |
110 | # Builder 2.0 has many important fixes, but for now we will only backport |
111 | # this one... |
112 | class Builder::XmlMarkup |
113 | # Insert the attributes (given in the hash). |
114 | def _insert_attributes(attrs, order=[]) |
115 | return if attrs.nil? |
116 | order.each do |k| |
117 | v = attrs[k] |
118 | @target << %{ #{k}="#{_attr_value(v)}"} if v # " WART |
119 | end |
120 | attrs.each do |k, v| |
121 | @target << %{ #{k}="#{_attr_value(v)}"} unless order.member?(k) # " WART |
122 | end |
123 | end |
124 | |
125 | def _attr_value(value) |
126 | case value |
127 | when Symbol |
128 | value.to_s |
129 | else |
130 | _escape(value.to_s).gsub(%r{"}, '"') # " WART |
131 | end |
132 | end |
133 | end |
134 | end |
135 | |
136 | ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!( |
137 | :long_weekday => '%a %B %e, %Y %H:%M' |
138 | ) |
139 | |
140 | ActionMailer::Base.default_charset = 'utf-8' |
141 | |
142 | if RAILS_ENV != 'test' |
143 | begin |
144 | mail_settings = YAML.load(File.read("#{RAILS_ROOT}/config/mail.yml")) |
145 | |
146 | ActionMailer::Base.delivery_method = mail_settings['method'] |
147 | ActionMailer::Base.server_settings = mail_settings['settings'] |
148 | rescue |
149 | # Fall back to using sendmail by default |
150 | ActionMailer::Base.delivery_method = :sendmail |
151 | end |
152 | end |
153 | |
154 | FLICKR_KEY='84f652422f05b96b29b9a960e0081c50' |