-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspree_guides.rb
37 lines (30 loc) · 892 Bytes
/
spree_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
37
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.2.3'
#gem ''
rescue Gem::LoadError
$stderr.puts %(Missing the RedCloth 4.2.3 gem.\nPlease `gem install -v=4.2.3 RedCloth` to generate the guides.)
exit 1
end
require 'action_controller'
require 'action_view'
require 'redcloth'
require 'fileutils'
module Spree
autoload :Generator, "spree/generator"
autoload :Indexer, "spree/indexer"
autoload :Helpers, "spree/helpers"
autoload :TextileExtensions, "spree/textile_extensions"
end
RedCloth.send(:include, Spree::TextileExtensions)
if $0 == __FILE__
Spree::Generator.new(ENV['OUTPUT_DIR']).generate
end