Update to Rails 2.3.9 and itextomml 1.3.27
This commit is contained in:
parent
113e0af736
commit
ef30cc22df
200 changed files with 3065 additions and 1204 deletions
37
vendor/rails/railties/guides/rails_guides.rb
vendored
37
vendor/rails/railties/guides/rails_guides.rb
vendored
|
@ -1,42 +1,31 @@
|
|||
pwd = File.dirname(__FILE__)
|
||||
$: << pwd
|
||||
$:.unshift pwd
|
||||
|
||||
# Loading Action Pack requires rack and erubis.
|
||||
require 'rubygems'
|
||||
|
||||
begin
|
||||
# Guides generation in the Rails repo.
|
||||
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"
|
||||
$:.unshift as_lib if File.directory?(as_lib)
|
||||
$:.unshift ap_lib if File.directory?(ap_lib)
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
# Guides generation from gems.
|
||||
gem "actionpack", '>= 2.3'
|
||||
|
||||
require "action_controller"
|
||||
require "action_view"
|
||||
end
|
||||
|
||||
begin
|
||||
require 'rubygems'
|
||||
gem 'RedCloth', '>= 4.1.1'
|
||||
require 'redcloth'
|
||||
rescue Gem::LoadError
|
||||
$stderr.puts %(Generating Guides requires RedCloth 4.1.1+)
|
||||
$stderr.puts('Generating guides requires RedCloth 4.1.1+.')
|
||||
exit 1
|
||||
end
|
||||
|
||||
require 'redcloth'
|
||||
|
||||
module RailsGuides
|
||||
autoload :Generator, "rails_guides/generator"
|
||||
autoload :Indexer, "rails_guides/indexer"
|
||||
autoload :Helpers, "rails_guides/helpers"
|
||||
autoload :TextileExtensions, "rails_guides/textile_extensions"
|
||||
end
|
||||
|
||||
require "rails_guides/textile_extensions"
|
||||
RedCloth.send(:include, RailsGuides::TextileExtensions)
|
||||
|
||||
if $0 == __FILE__
|
||||
RailsGuides::Generator.new.generate
|
||||
end
|
||||
require "rails_guides/generator"
|
||||
RailsGuides::Generator.new.generate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue