Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 344
- Log:
Massive changeset which brings the old, ROOL customised Instiki
version up to date, but without any ROOL customisations in this
latest checked-in version (which is 0.19.1). This is deliberate,
so that it's easy to see the changes made for the ROOL version
in a subsequent changeset. The 'app/views/shared' directory is not
part of Instiki but is kept to maintain the change history with
updated ROOL customisations, some of which involve the same files
in that same directory.
- Author:
- rool
- Date:
- Sat Mar 19 19:52:13 +0000 2011
- Size:
- 2602 Bytes
1 | ##### |
2 | # Bootstrap the Rails environment, frameworks, and default configuration |
3 | #### |
4 | |
5 | # Make sure we are using the latest rexml |
6 | rexml_versions = ['', File.join(File.dirname(__FILE__), '..', 'vendor', 'plugins', 'rexml', 'lib', '')].collect { |v| |
7 | `ruby -r "#{v + 'rexml/rexml'}" -e 'p REXML::VERSION'`.split('.').collect {|n| n.to_i} } |
8 | $:.unshift(File.join(File.dirname(__FILE__), '..', 'vendor', 'plugins', 'rexml', 'lib')) if (rexml_versions[0] <=> rexml_versions[1]) == -1 |
9 | |
10 | require File.join(File.dirname(__FILE__), 'boot') |
11 | |
12 | require 'active_support/secure_random' |
13 | |
14 | Rails::Initializer.run do |config| |
15 | |
16 | # Secret session key |
17 | # The secret session key is automatically generated, and stored |
18 | # in a file, for reuse between server restarts. If you want to |
19 | # change the key, just delete the file, and it will be regenerated |
20 | # on the next restart. Doing so will invalitate all existing sessions. |
21 | secret_file = Rails.root.join("secret") |
22 | if File.exist?(secret_file) |
23 | secret = secret_file.read |
24 | else |
25 | secret = ActiveSupport::SecureRandom.hex(64) |
26 | File.open(secret_file, 'w', 0600) { |f| f.write(secret) } |
27 | end |
28 | config.action_controller.session = { |
29 | :key => "instiki_session", |
30 | :secret => secret |
31 | } |
32 | |
33 | # Don't do file system STAT calls to check to see if the templates have changed. |
34 | #config.action_view.cache_template_loading = true |
35 | |
36 | # Skip frameworks you're not going to use |
37 | config.frameworks -= [ :action_web_service, :action_mailer ] |
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.cache_store = :file_store, "#{RAILS_ROOT}/cache" |
46 | |
47 | # Activate observers that should always be running |
48 | config.active_record.observers = :page_observer |
49 | |
50 | # Use Active Record's schema dumper instead of SQL when creating the test database |
51 | # (enables use of different database adapters for development and test environments) |
52 | config.active_record.schema_format = :sql |
53 | |
54 | File.umask(0026) |
55 | end |
56 | |
57 | # Instiki-specific configuration below |
58 | require_dependency 'instiki_errors' |
59 | |
60 | #require 'jcode' |
61 | |
62 | # Miscellaneous monkey patches (here be dragons ...) |
63 | require 'caching_stuff' |
64 | require 'logging_stuff' |
65 | require 'rack_stuff' |
66 | |
67 | #Additional Mime-types |
68 | mime_types = YAML.load_file(File.join(File.dirname(__FILE__), 'mime_types.yml')) |
69 | Rack::Mime::MIME_TYPES.merge!(mime_types) |