Sha256: 034a8425aa32277c49a353b9c4e383357f7e37ea27f6ff09b1d2969f9b047e0a
Contents?: true
Size: 692 Bytes
Versions: 3
Compression:
Stored size: 692 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 require 'hayde/generator' Dir.glob(File.join(pwd, 'tasks', '*.rb')).each { |task| require task }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hayde-0.1.5 | lib/hayde.rb |
hayde-0.1.4 | lib/hayde.rb |
hayde-0.1.3 | lib/hayde.rb |