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