Rails 2.3.3.1
Update to latest Rails. A little bit of jiggery-pokery is involved, since they neglected to re-include vendored Rack in this release.
This commit is contained in:
parent
329fafafce
commit
664552ac02
257 changed files with 4346 additions and 1682 deletions
30
vendor/rails/railties/guides/rails_guides.rb
vendored
30
vendor/rails/railties/guides/rails_guides.rb
vendored
|
@ -1,17 +1,28 @@
|
|||
pwd = File.dirname(__FILE__)
|
||||
$: << pwd
|
||||
$: << File.join(pwd, "../../activesupport/lib")
|
||||
$: << File.join(pwd, "../../actionpack/lib")
|
||||
|
||||
require "action_controller"
|
||||
require "action_view"
|
||||
|
||||
# Require rubygems after loading Action View
|
||||
require 'rubygems'
|
||||
begin
|
||||
gem 'RedCloth', '>= 4.1.1'# Need exactly 4.1.1
|
||||
as_lib = File.join(pwd, "../../activesupport/lib")
|
||||
ap_lib = File.join(pwd, "../../actionpack/lib")
|
||||
|
||||
$: << as_lib if File.directory?(as_lib)
|
||||
$: << ap_lib if File.directory?(ap_lib)
|
||||
|
||||
require "action_controller"
|
||||
require "action_view"
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
gem "actionpack", '>= 2.3'
|
||||
|
||||
require "action_controller"
|
||||
require "action_view"
|
||||
end
|
||||
|
||||
begin
|
||||
require 'rubygems'
|
||||
gem 'RedCloth', '>= 4.1.1'
|
||||
rescue Gem::LoadError
|
||||
$stderr.puts %(Missing the RedCloth 4.1.1 gem.\nPlease `gem install -v=4.1.1 RedCloth` to generate the guides.)
|
||||
$stderr.puts %(Generating Guides requires RedCloth 4.1.1+)
|
||||
exit 1
|
||||
end
|
||||
|
||||
|
@ -22,7 +33,6 @@ module RailsGuides
|
|||
autoload :Indexer, "rails_guides/indexer"
|
||||
autoload :Helpers, "rails_guides/helpers"
|
||||
autoload :TextileExtensions, "rails_guides/textile_extensions"
|
||||
autoload :Levenshtein, "rails_guides/levenshtein"
|
||||
end
|
||||
|
||||
RedCloth.send(:include, RailsGuides::TextileExtensions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue