forked from FubuMvcArchive/fubumvc-guides
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfubu_guides.rb
36 lines (29 loc) · 884 Bytes
/
fubu_guides.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ANALYTICS_ID=ENV['ANALYTICS_ID']
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
#gem ''
rescue Gem::LoadError
$stderr.puts %(Missing the RedCloth 4.1.1 gem.\nPlease `gem install -v=4.1.1 RedCloth` to generate the guides.)
exit 1
end
require 'action_controller'
require 'action_view'
require 'redcloth'
module FubuMvc
autoload :Generator, "fubumvc/generator"
autoload :Indexer, "fubumvc/indexer"
autoload :Helpers, "fubumvc/helpers"
autoload :TextileExtensions, "fubumvc/textile_extensions"
end
RedCloth.send(:include, FubuMvc::TextileExtensions)
if $0 == __FILE__
FubuMvc::Generator.new.generate
end