Sha256: 6e238d820584fb23aef114862d10e06aa6b0fc360be8eb669fb82593fc114ffc
Contents?: true
Size: 779 Bytes
Versions: 3
Compression:
Stored size: 779 Bytes
Contents
pwd = File.dirname(__FILE__) $:.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") $:.unshift as_lib if File.directory?(as_lib) $:.unshift ap_lib if File.directory?(ap_lib) rescue LoadError # Guides generation from gems. gem "actionpack", '>= 3.0' end begin gem 'RedCloth', '>= 4.1.1' require 'redcloth' rescue Gem::LoadError $stderr.puts %(Generating Guides requires RedCloth 4.1.1+) exit 1 end module Hayde require 'hayde/textile_extensions' require 'hayde/generator' RedCloth.send(:include, Hayde::TextileExtensions) #Hayde::Generator.new.generate end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hayde-0.1.2 | lib/hayde.rb |
hayde-0.1.1 | lib/hayde.rb |
hayde-0.1.0 | lib/hayde.rb |