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