Changesets can be listed by changeset number.
The Git repository is here.
Changeset 349
There were various attempts to patch around Instiki's use of
Bundler, which is a really annoying "package all the gems inside
the application" piece of Rails deployment bloatware. ROOL has a
well organised set of centralised gems and needs no such thing.
These changes to boot.rb include things which are really
reversions, e.g. removing correct use of "File.join" and
replacing it with hard-coded Unix style paths, but it's known to
work as a bypass-bundler patch and is in use on the live site.
- Comitted by: rool
- Date: Saturday March 19 21:52:58 2011 (over 13 years ago)
Affected files:
rool/rails/instiki/trunk/config/boot.rb:
prev. | current | |
# Don't change this file! | ||
# Configure your app in config/environment.rb and config/environments/*.rb | ||
4 | ||
4 | RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) | |
module Rails | ||
class << self | ||
... | ... | |
end | ||
def vendor_rails? | ||
24 | | |
24 | File.exist?("#{RAILS_ROOT}/vendor/rails") | |
end | ||
def preinitialize | ||
... | ... | |
end | ||
def preinitializer_path | ||
32 | | |
32 | "#{RAILS_ROOT}/config/preinitializer.rb" | |
end | ||
end | ||
... | ... | |
class VendorBoot < Boot | ||
def load_initializer | ||
45 | | |
45 | require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" | |
Rails::Initializer.run(:install_gem_spec_stubs) | ||
Rails::GemDependency.add_frozen_gem_path | ||
end | ||
... | ... | |
end | ||
def load_rubygems | ||
85 | | |
85 | min_version = '1.3.2' | |
require 'rubygems' | ||
unless rubygems_version >= min_version | ||
$stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.) | ||
... | ... | |
private | ||
def read_environment_rb | ||
103 | | |
103 | File.read("#{RAILS_ROOT}/config/environment.rb") | |
end | ||
end | ||
end | ||
end | ||
109 | ||
110 | | |
111 | | |
112 | ||
113 | | |
114 | | |
115 | | |
116 | | |
117 | | |
118 | ||
119 | | |
120 | | |
121 | ||
122 | ||
# All that for this: | ||
Rails.boot! |